It should match. My guess is that you might not reusing the same positions
as set by the analysis chain when creating the phrase query? Can you show
us how you build the phrase query?

On Fri, Jan 10, 2020 at 9:24 AM 小鱼儿 <ctengc...@gmail.com> wrote:

> I use SmartChineseAnalyzer to do the indexing, and add a document with a
> TextField whose value is a long sentence, when anaylized, will get 18
> terms.
>
> & then i use the same value to construct a PhraseQuery, setting slop to 2,
> and adding the 18 terms concequently...
>
> I expect the search api to find this document, but it returns empty.
>
> Where am i wrong?
>


-- 
Adrien

Reply via email to