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

CommentFileSizeAuthor
Screenshot 2023-05-24 155132.png15.21 KBabhijoshi2k
Command icon 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:

Comments

abhijoshi2k created an issue. See original summary.

smustgrave’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Is 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.

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)
johnlutz’s picture

Status: Closed (outdated) » Active

I 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.

johnlutz’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Needs work

So surprised this would be working there's a function call in generateSolrItemId thats specific to search_api_solr.

  • smustgrave committed ac0c13df on 3.0.x
    Issue #3362382 by johnlutz: Unable to select Solr as query handler
    
smustgrave’s picture

Version: 2.0.2 » 3.0.x-dev
Status: Needs work » Fixed

Was against it at first but change seems small enough and non-disruptive went ahead and added to 3.0.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nicholass’s picture

Thank you this also fixed our issue on Acquia Search hosting, where we had the same issue and could not select the Solr queryhandler.