lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (Commented) (JIRA)" <>
Subject [jira] [Commented] (SOLR-2438) Case Insensitive Search for Wildcard Queries
Date Tue, 15 Nov 2011 02:52:52 GMT


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

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

> Case Insensitive Search for Wildcard Queries
> --------------------------------------------
>                 Key: SOLR-2438
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message