[
https://issues.apache.org/jira/browse/SOLR-2438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13150207#comment-13150207
]
Yonik Seeley commented on SOLR-2438:
------------------------------------
bq. QueryParserBase.lowercaseExpandedTerms[...] Where did that come from anyway?
Legacy. Solr has never used it.
bq. It almost seems like a flag on the <field> definition as Peter suggested is
a more robust way of going about things.
Since there's normally only one right way, making it configurable (from the
users point of view) isn't optimal.
That could be the job of the factory though!
We could add flags to the factory to say "this filter should be run for prefix
queries, etc", or a method to return that meta-data.
Then an analyzer could be built that only included the right filters for the
type query (prefix, wildcard, etc).
Another related alternative is to have the factory actually do the processing
on the term. Something like
{code}
public enum QueryType { PREFIX, WILDCARD, ... }
public String LowerCaseFilterFactory.processQueryTerm(String queryTerm,
QueryType queryType) {
return queryTerm.toLowerCase(Locale.US); // Uhhh, what locale returns the
same values as Character.toLowerCase()?
}
{code}
> 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
> Attachments: SOLR-2438.patch, SOLR-2438.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: [email protected]
For additional commands, e-mail: [email protected]