Re: Matching a single instance of a multivalued field

2018-06-08 Thread Tom Mortimer
Ah, that's an interesting idea - thanks Adrien! On Fri, Jun 8, 2018 at 3:54 PM Adrien Grand wrote: > Hi Tom, > > One way to solve this could be to use block joins by indexing each value in > its own document and joining the parent document using > ToParentBlockJoinQuery. > > Le ven. 8 juin 2018

Re: Matching a single instance of a multivalued field

2018-06-08 Thread Adrien Grand
Hi Tom, One way to solve this could be to use block joins by indexing each value in its own document and joining the parent document using ToParentBlockJoinQuery. Le ven. 8 juin 2018 à 16:46, Tom Mortimer a écrit : > Hi! > > I have a requirement to be able to restrict search results to a single

Matching a single instance of a multivalued field

2018-06-08 Thread Tom Mortimer
Hi! I have a requirement to be able to restrict search results to a single instance of a multivalued field. e.g. with the doc: text: [ "striped skunk", "spotted hyena" ] the queries (skunk AND striped), (spotted AND hyena) should return the document, but (striped AND hyena), (skunk AND spott