lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jie Gao <>
Subject Strange behaviour of ttf function query
Date Thu, 17 Sep 2015 12:12:42 GMT

I've found a very strange behaviour for ttf function query.

I can understand that ttf should be based on full-text query.

My query analyser is configured as follows:
                     <analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="false"
words="stopwords.txt" enablePositionIncrements="true" />
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true" />
<filter class="solr.ASCIIFoldingFilterFactory"/>

When i query a term "D blooms" via
I got the result 0. However, in my text, there is 1 occurrence.

Then, i changed the term to lower case, i can got 10632 occurrences which
is exactly the same as the occurrences of "blooms".

Next, when i comment out solr.StopFilterFactory, I can get the result 1
occurrence for "d blooms", which is correct as expected.

So, my question is that if the query analyser apply to ttf function query,
why lowercase filter  (or the whole pipeline) don't apply so as to allow me
to query with upper case?

Notes, full-text query for this field don't have this problem.

any idea ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message