Description
The caching of ReversedWildcardFilterFactory in SolrQueryParser looks broken.
Here's the current code:
ReversedWildcardFilterFactory fac = leadingWildcards.get(fieldType); if (fac == null && leadingWildcards.containsKey(fac)) { return fac; }
That doesn't quite make sense - fac will never be returned, as leadingWildcards will never contain a null key. I think this is probably what was intended:
ReversedWildcardFilterFactory fac = leadingWildcards.get(fieldType); if (fac != null) { return fac; }
Attachments
Issue Links
- relates to
-
SOLR-2438 Case Insensitive Search for Wildcard Queries
- Closed