Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If there is a slash in keyword makeFilterQuery should wrap it in quotes like it do with space and colon.
Comment | File | Size | Author |
---|---|---|---|
#2 | apachesolr-wrap-keywordswithslashes-in-quotes-2291489-1.patch | 1 KB | negon |
Comments
Comment #1
negon CreditAttribution: negon commentedComment #2
negon CreditAttribution: negon commentedHere's a patch
Comment #3
broonComment #4
broonI 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 for2010
instead of2010/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?