You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alex (JIRA)" <ji...@apache.org> on 2014/07/07 11:33:34 UTC

[jira] [Updated] (SOLR-6226) Query "starts with" doesn't work on some fields with same type

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

Alex updated SOLR-6226:
-----------------------

    Summary: Query "starts with" doesn't work on some fields with same type  (was: Query "starts with" doesn't work on all fields with same type)

> Query "starts with" doesn't work on some fields with same type
> --------------------------------------------------------------
>
>                 Key: SOLR-6226
>                 URL: https://issues.apache.org/jira/browse/SOLR-6226
>             Project: Solr
>          Issue Type: Bug
>         Environment: jetty server
>            Reporter: Alex
>             Fix For: 4.7
>
>
> I've got field type called "text_lcase" (you can find details below)
>         <fieldType name="text_lcase"    class="solr.TextField"                                  positionIncrementGap="100">
>             <analyzer type="index">
>                 <tokenizer class="solr.StandardTokenizerFactory"/>
>                 <filter class="solr.LowerCaseFilterFactory"/> <!-- lowercases everything -->
>             </analyzer>
>             <analyzer type="query">
>                 <tokenizer class="solr.StandardTokenizerFactory"/>
>                 <filter class="solr.LowerCaseFilterFactory"/>
>             </analyzer>
>         </fieldType>
> So I use this field type for name and email. Before email field had type string.  I reindexed solr, for some reasons it worked fine for a while but stopped working again.
> Example of queries:
> name:John* (works on all fields have got this value or if it starts with this value)
> email:example@hotmail.com* ( doesn't work)
> email:example@hotmail.com ( works)
> email:example@hotmail* (doesn't work)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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