[ https://issues.apache.org/jira/browse/LUCENE-4369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453151#comment-13453151 ]
Erick Erickson commented on LUCENE-4369: ---------------------------------------- Anything with "Raw" is good. The problem with "Keyword" or "Untokenized" or "Unanalyzed" in the name is that it rather assumes that the user is familiar with what those terms mean in Lucene. If they're experienced enough to understand _that_, they're less likely to fall into this error in the first place. We could do something that removes it from consideration unless people dig. I understand it's a general field, but how about something like "Identifier" (I'm not too keen on that name actually). I'm reaching for something that is "naturally" thought of as a type suitable for <uniqueKey> fields but requires one to dig a bit before using it for other fields. OK, an idea out of left field, why do we have a "string" as a type anyway? Does it make any sense to just remove it and have people use KeywordTokenizer when they want this behavior? I'm ready for _this_ idea to be shot down in flames <G>.... I suppose in the Solr world, we could just remove the "string" type from schema.xml and provide an example <fieldType> that was only KeyworTokenized and avoid a world of confusion for many users. > StringFields name is unintuitive and not helpful > ------------------------------------------------ > > Key: LUCENE-4369 > URL: https://issues.apache.org/jira/browse/LUCENE-4369 > Project: Lucene - Core > Issue Type: Bug > Reporter: Robert Muir > Attachments: LUCENE-4369.patch > > > There's a huge difference between TextField and StringField, StringField > screws up scoring and bypasses your Analyzer. > (see java-user thread "Custom Analyzer Not Called When Indexing" as an > example.) > The name we use here is vital, otherwise people will get bad results. > I think we should rename StringField to MatchOnlyField. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org