lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atri Sharma <a...@apache.org>
Subject Re: PhraseQuery
Date Fri, 24 Jan 2020 17:55:57 GMT
PhraseQuery enforces the order of terms specified and needs an exact
match of order of terms unless slop is specified.

When appending terms, term pos numbers need to be incremental in the builder

On Fri, Jan 24, 2020 at 11:15 PM <baris.kazar@oracle.com> wrote:
>
> Hi,-
>
>   how do i enforce the order of sequence of terms in the PhraseQuery
> builder?
>   Lucene docs are very hard to understand in terms of api descriptions.
>
> https://lucene.apache.org/core/6_5_0/core/org/apache/lucene/search/PhraseQuery.html
> Best regards
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


-- 
Regards,

Atri
Apache Concerted

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message