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 <baris.ka...@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.ka...@oracle.com wrote: > > > > Hi,- > > > > should i use MultiPhraseQuery or PhraseQuery to take synonyms into > account? > > > > Best regards > > > > baris > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >