You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ba...@oracle.com on 2018/09/20 18:02:57 UTC

MultiPhraseQuery or PhraseQuery to take the synonyms into account?

Hi,-

  should i use MultiPhraseQuery or PhraseQuery to take synonyms into 
account?

Best regards

baris


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


Re: MultiPhraseQuery or PhraseQuery to take the synonyms into account?

Posted by Michael McCandless <lu...@mikemccandless.com>.
PhraseQuery can indeed be used to represent a multi-token synonym.

In fact, I mis-spoke before: MultiPhraseQuery can also represent a
multi-token synonym when the multiple tokens are all the same except in one
spot.

Mike McCandless

http://blog.mikemccandless.com


On Thu, Sep 20, 2018 at 2:32 PM baris.kazar <ba...@oracle.com> wrote:

> i should have asked this way as Mike made clear for MultiPhraseQuery:
> is PhraseQuery ok to account for synonyms?
> Best
>
> > On Sep 20, 2018, at 2:02 PM, baris.kazar@oracle.com wrote:
> >
> > Hi,-
> >
> >  should i use MultiPhraseQuery or PhraseQuery to take synonyms into
> account?
> >
> > Best regards
> >
> > baris
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: MultiPhraseQuery or PhraseQuery to take the synonyms into account?

Posted by "baris.kazar" <ba...@oracle.com>.
i should have asked this way as Mike made clear for MultiPhraseQuery:
is PhraseQuery ok to account for synonyms?
Best

> On Sep 20, 2018, at 2:02 PM, baris.kazar@oracle.com wrote:
> 
> Hi,-
> 
>  should i use MultiPhraseQuery or PhraseQuery to take synonyms into account?
> 
> Best regards
> 
> baris
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 


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