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.
\Drupal\search_api_solr\Solr\SolrHelper tries to preg_match on \Solarium\QueryType\Select\Query\FilterQuery. We need to pass getQuery so it has a string.
Comment | File | Size | Author |
---|---|---|---|
#6 | warning_preg_match_-2776083-6.patch | 995 bytes | mglaman |
#2 | warning_preg_match_-2776083-2.patch | 807 bytes | mglaman |
Comments
Comment #2
mglamanThis removes the error and passes "FIELD:VALUE" to preg_match.
Comment #3
mkalkbrennerThanks for the patch!
As pointed out in https://www.drupal.org/node/2744733#comment-11366957 we don't have any test coverage for location / spatial searches at all. That has to be changed.
What do you think? Can you provide some test code, potentially based on https://www.drupal.org/node/2744733#comment-11454099 ?
Comment #4
mglamanYeah, I'll give it a shot. I'm working on a personal product, and I'll need the test coverage. Might be next weekend, however.
Comment #5
mkalkbrennerThat would be great!
Comment #6
mglamanHaven't had time for testing. But re-rolling because patch fails. Again, filter query does not have a __toString method so we need to manually invoke this method.
Comment #7
mkalkbrennerIt seems like the patch is already included in the latest patch for #2744733: Add location as a supported DataType for SearchApiSolrBackend. That's the patch that will be committed as soon there's some test coverage.
Please got ahead in that single issue. Thanks for reporting!