Hi,

We are using a CommonGrams filter for both indexing and querying. We
provide a list of words that should be treated as a common gram. In the
list the following words exist:

- new
- york

When we do queries like:

"new amsterdam"~3
"old york"~3
"new york"~3

all give not the expected results. After further investigation, it seems
like that the CommonGramsQuery filter should not be applied for proximity
searches where you want to have this applied for normal searches.

When we remove the CommonGramsQuery filter out of the config and run the
queries again, it works as expected.

Any suggestions on how to overcome this?

Thanks,
Sjoerd

Reply via email to