VuFind

Wildcard searches are case-sensitive

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.0RC2
  • Fix Version/s: Wishlist
  • Component/s: Search
  • Labels:
    None

Description

Wildcard searches in VuFind are currently case sensitive. That is, if you do a search for "test*" you get results, but if you do a search for "Test*", you do not get results.

This is because Lucene bypasses the filter factories when applying wildcards, so wildcard searches don't get run through the LowerCaseFilterFactory in order to become consistent with index values.

For more details, see:

http://wiki.apache.org/lucene-java/LuceneFAQ#Are_Wildcard.2C_Prefix.2C_and_Fuzzy_queries_case_sensitive.3F

The solution for this problem would be to have VuFind perform the lowercasing of wildcarded terms prior to calling Solr. Doing this without interfering with uppercase boolean operators or causing problems in index fields that do not use the LowerCaseFilterFactory could get complicated.

Activity

Hide
Demian Katz added a comment -
A related problem (with exactly the same cause) is that accented characters cause problems in wildcard searches.
Show
Demian Katz added a comment - A related problem (with exactly the same cause) is that accented characters cause problems in wildcard searches.
Hide
Demian Katz added a comment -
This Solr JIRA ticket may solve the problem:

https://issues.apache.org/jira/browse/SOLR-218

Once resolved, we can take advantage of lowercaseExpandedTerms in VuFind.
Show
Demian Katz added a comment - This Solr JIRA ticket may solve the problem: https://issues.apache.org/jira/browse/SOLR-218 Once resolved, we can take advantage of lowercaseExpandedTerms in VuFind.
Hide
Demian Katz added a comment -
Here's an even more promising forthcoming Solr feature:

https://issues.apache.org/jira/browse/SOLR-2438

Sounds like it should be available in Solr 3.6 (two minor versions away as of this writing).
Show
Demian Katz added a comment - Here's an even more promising forthcoming Solr feature: https://issues.apache.org/jira/browse/SOLR-2438 Sounds like it should be available in Solr 3.6 (two minor versions away as of this writing).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: