Intervals and Highlighter

2021-04-27 Thread Jean Morissette
Hi all, I'm using highlighter with TermQuery and RegexQuery and everything works well. As soon as I try to use IntervalQuery, the highlighter returns no fragment. Does someone know if IntervalQuery is supported with Highlighter / QueryScorer? Thanks, Jean

Re: How to ignore a match if a given keyword is before/after another given keyword?

2021-04-27 Thread Jean Morissette
> > Le dim. 25 avr. 2021 à 18:43, Jean Morissette > a > écrit : > > > Thank you for your answer. > > > > The problem with this solution is that it excludes documents which > contain > > both positive and negative positive matches. > > > > For e

Re: How to ignore a match if a given keyword is before/after another given keyword?

2021-04-25 Thread Jean Morissette
ne? Thanks, Jean On Thu, 15 Apr 2021 at 01:33, Aditya Varun Chadha wrote: > maybe you want (abstractly): > > bool(must(term("f", "positive"), mustNot(phrase("f", "negative positive", > slop=1))) > > On Thu, Apr 15, 2021 at 7:27 AM Jean M

How to ignore a match if a given keyword is before/after another given keyword?

2021-04-14 Thread Jean Morissette
Hi all, Does someone know if it's possible to search documents containing a given keyword only if this keyword is not followed or preceded or another given keyword? Thanks, Jean

Re: How to create a query to search for 2 words separated by 0-3 gaps?

2021-04-14 Thread Jean Morissette
hin(Intervals.term(word2), 3, Intervals.term(word1))) > > to search for word2 that appears within 3 positions of word1 > > Best > Patrick > > Jean Morissette 于2021年3月31日周三 下午9:00写道: > > > Does someone know how to create a query for searching 2 words separated > by > > 0, 1, 2 or 3 gaps? > > > > Thanks > > >

How to create a query to search for 2 words separated by 0-3 gaps?

2021-03-31 Thread Jean Morissette
Does someone know how to create a query for searching 2 words separated by 0, 1, 2 or 3 gaps? Thanks