Wildcard queries are not analyzed, so you are getting what you type - which doesnt match what went through an analyzer and into the index. I don't think Solr has a solution for this at the moment. I think Lucene has a special analyzer with deals with this to some degree, but I have never used it.

--
- Mark

http://www.lucidimagination.com



vladimirneu wrote:
Hi all,

could somebody help me to understand why I can not search with wildcard if I
use the solr.ASCIIFoldingFilterFactory?

So I get results if I am searching for "münchen", "munchen" or "munchen*",
but I get no results if I do the search for "münchen*". The original records
contain the terms "München" and "Münchener".

The solr.ASCIIFoldingFilterFactory is configured on both sides index and
query. We are using the 1.4-dev version from trunk.

    <fieldType name="text" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
        <filter class="solr.ASCIIFoldingFilterFactory"/>
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <filter class="solr.ASCIIFoldingFilterFactory"/>
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>

Thank you very much!

Regards,

Vladimir



Reply via email to