Bug #6299
searching for words with capitals e.g.: 'streetMap' yields results
Status: | Rejected | Start date: | 2010-02-01 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
TYPO3 Version: | Has patch: | |||
PHP Version: | Tags: |
Description
Searching for words with capitals e.g.: 'streetMap' yields results for 'street-map' and not 'streetmap'.
Should the query be lowercased before being sent to solr?
History
#1 Updated by Ingo Renner over 5 years ago
Michiel Roos wrote:
Searching for words with capitals e.g.: 'streetMap' yields results for 'street-map' and not 'streetmap'.
Should the query be lowercased before being sent to solr?
To me that rather sounds like an issue with the query analysis on Solr's side. As you can define how to process content when indexing, so you can for incoming queries. This can be done per field. So in general the query entered by the user should not be modified as you can define what to do with it, differentiated by field, on Solr's side. Generally lowercasing the terms can lead to different problems. You can apply the lowercase filter in Solr's schema.xml instead.
Also try the query analyser in Solr's admin interface, that tells you what's going on with your configuration.