Hello.

I made this query:
http://localhost:8983/solr/select/?q=suggestion:ipod+nano+80*

and response contains the following doc:
-------------------------------------------------------------
<doc>
     <str name="id">
          04adea06fcfdc939feec63799045076c
     </str>
     <str name="suggestion">
          apple ma045 for ipod 80gb nano
     </str>
     <date name="timestamp">
          2008-10-25T16:50:48.703Z
     </date>
</doc>
-------------------------------------------------------------

Then I made this query (the "g" letter is added):
http://localhost:8983/solr/select/?q=suggestion:ipod+nano+80g*
and I  expect to see the same doc in response, but response was empty.

In first moment I thought that this strange behaviour is caused by
SynonymFilter, but I checked the type of field "suggestion", and it is
quite simple, and the filter chain doesn't contain SynonymFilter:

--------------------------------------------------------------
    <fieldType name="suggestion" class="solr.TextField">
        
        <analyzer type="index">
            <tokenizer class="WhitespaceTokenizerFactory" />
            <filter class="solr.StopFilterFactory" 
words="suggestion_stopwords.txt" ignoreCase="true"/>
        </analyzer>

        <analyzer type="query">
            <tokenizer class="WhitespaceTokenizerFactory" />
            <filter class="solr.LowerCaseFilterFactory" />
        </analyzer>

    </fieldType>
--------------------------------------------------------------

Any ideas about reasons of this strange behaviour?

-- 
Aleksey Gogolev
developer, 
dev.co.ua
Aleksey

Reply via email to