You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Olivier Dutrieux (Commented) (JIRA)" <ji...@apache.org> on 2012/03/01 10:21:59 UTC

[jira] [Commented] (SOLR-2438) Case Insensitive Search for Wildcard Queries

    [ https://issues.apache.org/jira/browse/SOLR-2438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219939#comment-13219939 ] 

Olivier Dutrieux commented on SOLR-2438:
----------------------------------------

I try it yesterday the 3.6-SNAPSHOT and I remark something strange :

||raw query||parsed query||comment||
|name:LéCTROD\*|name:lectrod\*|fill good|
|name:\*LéCTROD|name:lectrod|{color:red} that remove the wildcard !!!{color} |
|name:\*LéCTROD\*|name:lectrod|{color:red} that remove all wildcards !!!{color} |

I would like to know if it's normal that if the wildcard is on the first position on the raw query, the wildcard is remove on the parsed query ?

{code:title=schema.xml|borderStyle=solid}
<types>
	<fieldtype name="text_fr" class="solr.TextField">
		<analyzer type="index">
			<tokenizer class="solr.StandardTokenizerFactory"/>
			<filter class="solr.StandardFilterFactory"/>
			<filter class="solr.ASCIIFoldingFilterFactory"/>
			<filter class="solr.LowerCaseFilterFactory"/>
		</analyzer>
		<analyzer type="query">
			<tokenizer class="solr.StandardTokenizerFactory"/>
			<filter class="solr.StandardFilterFactory"/>
			<filter class="solr.ASCIIFoldingFilterFactory"/>
			<filter class="solr.LowerCaseFilterFactory"/>
		</analyzer>
		<analyzer type="multiterm">
			<tokenizer class="solr.StandardTokenizerFactory" />
			<filter class="solr.StandardFilterFactory"/>
			<filter class="solr.ASCIIFoldingFilterFactory"/>
			<filter class="solr.LowerCaseFilterFactory"/>
		</analyzer>
	</fieldtype>
</types>

<fields>
	<field name="name" type="text_fr" indexed="true" stored="true" multiValued="true"/>
</fields>
{code}


Duto


                
> Case Insensitive Search for Wildcard Queries
> --------------------------------------------
>
>                 Key: SOLR-2438
>                 URL: https://issues.apache.org/jira/browse/SOLR-2438
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Peter Sturge
>            Assignee: Erick Erickson
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2438-3x.patch, SOLR-2438-3x.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438.patch, SOLR-2438_3x.patch
>
>
> This patch adds support to allow case-insensitive queries on wildcard searches for configured TextField field types.
> This patch extends the excellent work done Yonik and Michael in SOLR-219.
> The approach here is different enough (imho) to warrant a separate JIRA issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org