FAQ & API Documentation

Select a category on the left, to get your answers quickly

Drupal - Search API Opensolr
Opensolr, is Drupal-Ready with, the Search API Opensolr Module.
Extends the main Search API Solr
 module and provides functionality for connecting and managing Solr using the Opensolr services.
Download NowRegister for a free 15 days trial

 

Drupal 6.x Known issue:

Looking at solrconfig_extra.xml you will find stuff like this:

<str name="accuracy">0.5</str>
<str name="maxEdits">2</str>
<str name="minPrefix">1</str>
<str name="maxInspections">5</str>
<str name="minQueryLength">4</str>
<str name="maxQueryFrequency">0.01</str>
<str name="thresholdTokenFrequency">.01</str>

You will have to change it to stuff like this:

<int name="maxEdits">2</int>
<int name="minPrefix">1</int>
<int name="maxInspections">5</int>
<int name="minQueryLength">4</int>
<float name="maxQueryFrequency">0.01</float>
<float name="thresholdTokenFrequency">.01</float>

I hope it's obvious why...
And please  try to find more occurrences of integers and floats being defined as strings, in the drupal config files... I'm sure there must be more erors like these, in other configs for other solr versions as well in drupal.

When uploading your Drupal config files you will probably sometimes notice an error about: "Cannot perform reload core", and then something about a WriteLock.

NOTE: This also contains very important information about how to connect your Opensolr Index to Drupal.

You can also follow this screenshot to guide you through the Drupal setup:

 

Opensolr Drupal Connection

Just make sure that you have uploaded the solr config files that your drupal module has provided for you.
To upload your files, simply head on to your OpenSolr control panel, click on your index name, and then click on the Config Files Editor tab.

Once there, you should be able to see a dialog like this:

NOTE: Your files have to be inside of a valid ZIP archive.

After the upload, you will receive upload confirmation messages for each file inside your ZIp archive.
In case of an error, you wil receive the full java error stack-trace, so that you can easily identify the errors inside your configuration files.

We recommend you use a JSON Prettyfier extension for your browser. Preferably you could use one of chrome's extenstions for that.