Search code examples
apisearchsolrdrupal-7drupal-modules

How to Fix the "No active batch" Error for Search API


I try integration solr search on tomcat for my project but have some problems like :

I use search api and solr search and when i try index nodes i have error :

No active batch.

How i can fix it(solr connection work)?


Solution

  • first you need to check if solr search service (tomcat) is on, and running

    url to check -> http://localhost:8983/solr, (right path you can find in tomacat/solr config files) on some servers link might be like this http://localhost:8080/solr/

    if ok, go to admin/config/search/apachesolr/settings/solr/edit

    and enter a working link to solr server field, thats all

    next go to admin/config/search/apachesolr

    there will be button "Index all queued content"

    also on Search settings page admin/config/search/settings

    you need to set use solr as default search module