Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Combine Inner Hits Using MongoDB in Elasticsearch?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 506
    Answer it

    I currently have a dataset that features a nested datatype in products, these are all listed within different vendors. I have various queries that check for search terms within the nested products array, ideally I want to be able to combine all the inner hits so that I can sort on such things as score rankings and price. At the moment the search results come back on a per document basis. Is it possible to combine inner hits in elasticsearch so that I get just a list of all the matching products?

     

    The reason I'm using the nested type and not child/parent mappings is because I'm currently synchronizing MongoDB with ElasticSearch and using mongo-connector as the bridge which doesn't support parent/child mappings. I've looked into alternatives such as mongoosastic but it too doesn't provide child/parent mappings :/

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: