Re: Lucene custom scoring / analyzer

2021-03-17 Thread Charlie Hull
I think you'll need a SpanQuery with the inOrder flag set: https://lucene.apache.org/core/8_8_1/core/org/apache/lucene/search/spans/SpanNearQuery.html Charlie On 17/03/2021 10:30, Vlad Smirnovskiy wrote: Hello! I`d like to do something like that: When I add a document and some text is going wi

Lucene custom scoring / analyzer

2021-03-17 Thread Vlad Smirnovskiy
Hello! I`d like to do something like that: When I add a document and some text is going with (e.g.) quotes it should mean that this text has to be exactly in the query. Better with an examples - text: green "blue apple" juice query : blue apple - result: hit. query : blue apple juice - result: h