Git Product home page Git Product logo

scaleset-search's People

Contributors

christopherlakey avatar talford avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

scaleset-search's Issues

Support searching across multiple fields in Mongo with defaultField

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.

Convert into multi-project build with separate jars for each backend

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.

Issue in fetching Object Id from mongodb

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.

Support negated boolean queries in Mongo

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.