You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2014/07/07 17:14:35 UTC
[jira] [Resolved] (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 ]
Erick Erickson resolved SOLR-6226.
----------------------------------
Resolution: Invalid
Please raise issues like this on the user's list first before raising a JIRA. If it turns out to be a bug and not user error, we can re-open this JIRA.
string it tokenized entirely differently from StandardTokenizer. In fact string isn't tokenized at all. I suspect that's the root of your issue. The admin/analysis page will help you become familiar with the differences.
> 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