Re: SpanNearQuery, Multiple Fields

2016-05-12 Thread Daniel Bigham
For some reason I had it in my head that the sub-parts of a boolean query had to either be terms or phrases, but I now see that they can be a generic Query, so your suggestion might work nicely. I had since discovered DisjunctionMaxQuery, which might also work... Anyway, thanks very much for

Re: SpanNearQuery, Multiple Fields

2016-05-12 Thread Alan Woodward
Try adding your multiple SpanNearQuery objects to a BooleanQuery? Alan Woodward www.flax.co.uk On 12 May 2016, at 20:35, Daniel Bigham wrote: > I'm very interested in SpanNearQuery, because it allows for quite powerful > phrasal searching. > > However, unlike BooleanQuery, there doesn't seem