lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otis Gospodnetic (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SOLR-1303) Wildcard queries on fields with LowerCaseFilterFactory not being lowercased.
Date Wed, 22 Jul 2009 21:25:14 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Otis Gospodnetic resolved SOLR-1303.
------------------------------------

    Resolution: Invalid

I think that's due to wildcard queries not being analyzed (and thus lowercased to match your
indexed tokens).  Explanation is in the Lucene FAQ Wiki page.

> Wildcard queries on fields with LowerCaseFilterFactory not being lowercased.
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-1303
>                 URL: https://issues.apache.org/jira/browse/SOLR-1303
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Matt Schraeder
>            Priority: Minor
>
> I have a field defined as follows:
>     <fieldType name="keyword" class="solr.TextField" sortMissingLast="true" omitNorms="true">
>       <analyzer>
>         <tokenizer class="solr.KeywordTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory" />
>         <filter class="solr.TrimFilterFactory" />
>       </analyzer>
>     </fieldType>
>     <field name="reviews" type="keyword" index="true" stored="true" multiValued="true"
/>
> The data being index is a single letter followed by a space, a +,-,M, or A ... so basically
two characters.
> When I do the following queries:
>     reviews: K+
>     reviews: k+
> I get results as expected. However, when I replace the + in the query with a * or ?,
then the uppercase version no longer works, only the lowercase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message