>From the query
http://localhost:8080/solr/select?q=idxPartition%3ASOMEPART%20AND%20srcANYSTRStrCI:%22mixcase%20or%20lower%22&debugQuery=on

Debug info attached


-----Original Message-----
From: Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS] 
[mailto:timothy.j.har...@nasa.gov] 
Sent: Wednesday, January 13, 2010 11:28 AM
To: solr-user@lucene.apache.org
Subject: RE: case-insensitive string type

I considered that, but I'm also having the issue that I can't get an exact 
match as case insensitive either.

-----Original Message-----
From: Rob Casson [mailto:rob.cas...@gmail.com] 
Sent: Wednesday, January 13, 2010 11:26 AM
To: solr-user@lucene.apache.org
Subject: Re: case-insensitive string type

from http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters

    "On wildcard and fuzzy searches, no text analysis is performed on
the search word."

i'd just lowercase the wildcard-ed search term in your client code,
before you send it to solr.

hth,
rob

On Wed, Jan 13, 2010 at 2:18 PM, Harsch, Timothy J. (ARC-TI)[PEROT
SYSTEMS] <timothy.j.har...@nasa.gov> wrote:
> Hi I have a field:
>
> <field name="srcANYSTRStrCI" type="string_ci" indexed="true" stored="true" 
> multiValued="true" />
>
> With type definition:
>                <!-- A Case insensitive version of string type  -->
>                <fieldType name="string_ci" class="solr.StrField"
>                        sortMissingLast="true" omitNorms="true">
>                        <analyzer type="index">
>                                <tokenizer 
> class="solr.KeywordTokenizerFactory"/>
>                                <filter class="solr.LowerCaseFilterFactory" />
>                        </analyzer>
>                        <analyzer type="query">
>                                <tokenizer 
> class="solr.KeywordTokenizerFactory"/>
>                                <filter class="solr.LowerCaseFilterFactory" />
>                        </analyzer>
>                </fieldType>
>
> When searching that field I can't get a case-insensitive match.  It works as 
> if it is a regular string, for instance I can do a prefix query and so long 
> as the prefix matches the case of the value it works, but if I change the 
> prefix case it doesn't
>
> Essentially I am trying to get case-insensitive matching that supports wild 
> cards...
>
> Tim Harsch
> Sr. Software Engineer
> Dell Perot Systems
> (650) 604-0374
>
>
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">62</int><lst name="params"><str name="debugQuery">on</str><str name="q">idxPartition:SOMEPART AND srcANYSTRStrCI:"mixcase or lower"</str></lst></lst><result name="response" numFound="0" start="0"/><lst name="debug"><str name="rawquerystring">idxPartition:SOMEPART AND srcANYSTRStrCI:"mixcase or lower"</str><str name="querystring">idxPartition:SOMEPART AND srcANYSTRStrCI:"mixcase or lower"</str><str name="parsedquery">+idxPartition:SOMEPART +srcANYSTRStrCI:mixcase or lower</str><str name="parsedquery_toString">+idxPartition:SOMEPART +srcANYSTRStrCI:mixcase or lower</str><lst name="explain"/><str name="QParser">LuceneQParser</str><lst name="timing"><double name="time">31.0</double><lst name="prepare"><double name="time">31.0</double><lst name="org.apache.solr.handler.component.QueryComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.FacetComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.MoreLikeThisComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.HighlightComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.StatsComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.DebugComponent"><double name="time">0.0</double></lst></lst><lst name="process"><double name="time">0.0</double><lst name="org.apache.solr.handler.component.QueryComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.FacetComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.MoreLikeThisComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.HighlightComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.StatsComponent"><double name="time">0.0</double></lst><lst name="org.apache.solr.handler.component.DebugComponent"><double name="time">0.0</double></lst></lst></lst></lst>
</response>

Reply via email to