Lucene's SpanNearQuery.Builder.addGap(int) serves an important search criteria. Especially with slop=0, it acts as arbitrary gap between two clauses just like the gaps created by removal of stop words in a phrase search. ES does not provide a similar Java API. Infact, even the lucene's way of introducing a gap in phrase search by PhraseQuery.Builder.add(Term term, int gap), used after filtering stop words, is missing in ES. Have I overlooked any existing ES way of introducing such behaviour?
chandan_singh (Chandan Singh) #1
system (system) #2
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.