Re: Comparing arrays

2014-09-25 Thread Anne Veling
I suppose you could simply create a bool search with should clauses on all of the values, like query: { bool: [ should: { term: {array: this}}, should: { term: {array: that}}, should: { term: {array: other}} ] } If you want you can use the minimum_should_match field too, or use a

Re: Comparing arrays

2014-09-25 Thread vineeth mohan
Hello Tim , The default similarity already have this logic in it , but then am sure there are other logics too applied for default similarity. I am not sure how to use this function logic alone for scoring. But then , in worst case you can do as follows , but am sure there should exist and

Re: Comparing arrays

2014-09-24 Thread Tim Uckun
On Tuesday, September 23, 2014 2:18:35 PM UTC+12, Tim Uckun wrote: I have documents with an array field. The array contains unique elements only. In this case the data is strings and but it could be numbers. I want to search for documents using this array field. Ideally I would like to