Experimenting with this module. I set up a basic Drupal 7.22 installation with only the default modules and settings, as well as the Search API, Entity and Search API Solr modules. I also configured Solr using the default settings and set up socat to monitor the traffic between Drupal and Solr.

With this setup, I am able to successfully index my documents, clear my index, etc. I can also query my Solr index directly (http://localhost:8080/solr/select) and it correctly shows the nodes I have indexed. socat shows the network traffic and indicates no problems.

However, when I try to search using the search field on the homepage, it defaults to the database search instead (no traffic detected by socat). Looking at admin/config/search/settings, I only see "Node" and "User" as the Active search modules, and Node is set to the default. This differs from the apachesolr module, which shows up here and allows users to set it as the default.

Originally I had assumed that the Search API would automatically determine that the Solr search should be used instead, but now I feel like there is either A) a bug in the software, or B) I'm missing a step somewhere.

Filing this as a documentation error because I think (B) is more likely; I didn't see this issue raised by anyone else, so I'm guessing there is a missing step somewhere. Requesting some insight on this. Thanks,

Rob

Comments

drunken monkey’s picture

Project: Search API Solr » Search API

The Search API module doesn't replace the core search functionality, and without additional modules there is no way offered for actually searching. If you are using the Search API (no matter whether with Solr or with another backend) it is suggested to deactivate core's "Search" module, as the Search API is designed to completely replace it and doesn't integrate with it or use it in any way.

See the handbook for creating searches with the Search API.

Rob Sears-1’s picture

Thanks, that was really helpful. Disabling the core Search module and setting up Search API Pages worked.

Rob Sears-1’s picture

Status: Active » Closed (works as designed)
stevegmag’s picture

Issue summary: View changes

How do you set up a simple search field and button that can replace the default site search? I want to put a search block in the header and submit it to the search page.

Also, how do you not show all element on the search page as as the initial page state? (besides making the filter required)