It is correct that a search string causes following query to be generated:
+(field:fac field:ace)
Hence the results... However, I fail to see how (fac OR ace) is a relevant
query, shouldn't it be
+field:fac +field:ace
instead?

What is the suggested way to change this this behaviour?

On Mon, Jul 2, 2018 at 11:47 AM Erick Erickson <erickerick...@gmail.com>
wrote:

> Take a look at two things:
> 1> the admin/analysis page. This is probably mostly a sanity check to
> insure you're seeing what you expect.
> 2> add debug=query to the query and look at the parsed query. My bet
> is that the grams are being OR'd together
>      and your search term is effectively
>
> fac OR ace
>
> Best,
> Erick
>
> On Mon, Jul 2, 2018 at 8:01 AM, Kudrettin Güleryüz <kudret...@gmail.com>
> wrote:
> > Hi,
> >
> > When using NgramTokenizerFactory with settings min ngram size=3 and max
> > ngram size=3 I get the following behaviour.
> >
> > Assume that search term is, face
> >
> > I expect the results to show documents with strings:
> > * interface or
> > * face or
> > * faceted
> >
> > but not
> > * ace or
> > * fac
> >
> > Why would I get the matches with results ace or fac? Am I missing some
> > settings somewhere? What is the suggested way to change this this
> > behaviour?
> >
> > Thank you,
>

Reply via email to