If there is a slash in keyword makeFilterQuery should wrap it in quotes like it do with space and colon.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

negon’s picture

Title: Put quotes and slashes in SolrFilterSubQuery->makeFilterQuery » Wrap slashes in quotes in SolrFilterSubQuery->makeFilterQuery
negon’s picture

broon’s picture

Version: 7.x-1.6 » 7.x-1.8
broon’s picture

I was also having trouble with a client's site which is collecting and discussing court files. These files have reference numbers with the syntax of {year}/{no}, i.e. "2010/18". Users need to be able search for these reference numbers and it's working fine with the default Drupal search @/search/node. Using the ApacheSolr search @/search/site however strips the last part and only shows results for 2010 instead of 2010/18.

Thanks to the patch provided by negon, it now works when entering the reference number @/search/site. However, when using the default search box (with ApacheSolr search set to default) it still strips the last part. Any idea how to get this working for the search box as well?