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.
When changing fq params to use q.alt the generated query no longer works correctly using Solr 6.6.0. This causes incorrect results to be shown when performing faceted searches with no query supplied.
For example: (source:website) (place:France)
works with Solr 5.4.1 but doesn't work with Solr 6.6.0.
A fix using "AND" to join the converted fq params is in the attached patch. Tested and works with both Solr 5.4.1 and 6.6.0.
Comment | File | Size | Author |
---|---|---|---|
#4 | fix-q.alt-for-solr-6.6.0-2896504-4.patch | 468 bytes | hitfactory |
| |||
#2 | q.alt-not-working-with-solr-6.6.0-2896504.patch | 468 bytes | n_e_ |
|
Comments
Comment #2
n_e_ CreditAttribution: n_e_ commentedComment #3
n_e_ CreditAttribution: n_e_ commentedComment #4
hitfactory CreditAttribution: hitfactory commentedRan into this upgrading an old Solr install from 3.6.5 to 6.6.0.
Fix in the original patch works as expected.
Attaching updated patch that works with latest 7.x-1.x-dev.
Comment #5
RoSk0Tested on Apache Solr v7.4 works like a charm. Thank you for the patch!
Cross linking with #2972851: Solr 7 integration as this two issues are must to properly support Solr 6 and 7.
Comment #6
Ada Hernandez CreditAttribution: Ada Hernandez at MTech, LLC commented+1
Comment #8
japerryFixed!