scaleset / scaleset-search Goto Github PK
View Code? Open in Web Editor NEWJava object model for representing query requests in REST protocols.
License: Apache License 2.0
Java object model for representing query requests in REST protocols.
License: Apache License 2.0
Hi,
I am facing issue in getting object Id from mongoDB in ResultsConverter initialize method.Getting null in Id
As an alternative to full-text search in Mongo when searching against the default field, support mapping the query to multiple fields inside an $or query.
Consider a query like Fred Flinstone
. If default field is name
then the resulting Mongo query will be:
{
$or :[
{"name":"Fred"},
{"name":"Flinstone"}
]
}
If you want to search across both firstName and lastName without using a full-text index, then we could generate a similar but more complex query:
{
$or :[
{
$or: [
{"firstName":"Fred"},
{"lastName":"Fred"}
]
},
{
$or: [
{"firstName":"Flinstone"},
{"lastName":"Flinstone"}
]
}
}
Aside from internal changes, this will also likely require a change to SchemaMapper to return a list of values for defaultField instead of a single value.
Currently the project is published as a single maven artifact with dependencies for Elasticsearch, Mongo and Dynamodb specified as provided.
This update will convert the project into a maven multi-project build with separate modules for API, Elasticsearch, Mongo and DynamoDB. Dependencies will likely remain as provided but will only be specified on the appropriate subproject.
Hi,
I am facing issue in getting object Id from mongoDB in ResultsConverter initialize method.Getting null in Id.
Default serialization of object mapper is not converting it to string.
Looks like a bad join implementation. Is it worth adding guava as a dependency?
Example: -(Fred Flinstone)
when using defaultField = text
and default operator = OR
should map into:
{"$and":[{"text":{"$ne":"Fred"}},{"text":{"$ne":"Flinstone"}}]}
Using De Morgan's law, NOT (Fred OR Flinstone)
=> NOT Fred AND NOT Flinstone
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.