Problem/Motivation
The "Solr" option in query handler is not present
Steps to reproduce
Configure search with search_api_solr
Install the search_api_best_bets module
Add the Search api best bets field to content type
Configure processor
Tick the required field
In query processor, solr option is unavailable
Proposed resolution
Considering the module supports solr request handler, it should appear in dropdown
Remaining tasks
User interface changes
Add the Solr option
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2023-05-24 155132.png | 15.21 KB | abhijoshi2k |
Issue fork search_api_best_bets-3362382
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3362382-unable-to-select
changes, plain diff MR !21
Comments
Comment #2
smustgrave commentedIs your solr server up and running without any errors?
Was not able to replicate but know if the server isn't working it may not appear.
Comment #3
smustgrave commentedComment #4
johnlutzI am seeing this using Acquia Search module on acquia servers. I debugged and the issue seems to be that the name of the backend that returns in getAvailableQueryHandlersByBackend is 'acquia_search_solr'.
Drupal 10.2.2
Search api 8.x-1.31
Search api solr 4.3.2
Search api best bets 2.0.3
Acquia search 3.1.10
Will post a patch shortly that adds that as a backend for the Solr queryhandler. That fixed for me anyways and it seemed to work just fine.
Comment #6
johnlutzComment #7
smustgrave commentedSo surprised this would be working there's a function call in generateSolrItemId thats specific to search_api_solr.
Comment #10
smustgrave commentedWas against it at first but change seems small enough and non-disruptive went ahead and added to 3.0.x branch.
Comment #12
nicholassThank you this also fixed our issue on Acquia Search hosting, where we had the same issue and could not select the Solr queryhandler.