Skip to content
Jeroen Vermeulen edited this page Jul 24, 2014 · 22 revisions

Q: Indexing takes long.

On a shop with for example 50000 products, the indexing may take a while.

A: Reduce searchable attributes if possible

The way the Solarium extension works is:

  • We first let Magento built its normal Fulltext Index, takes a long time.
  • We copy this index into Solarium, takes a short time. In the future we plan to completely build our own index. You can reduce the time the Fulltext index needs by disabling Use in Quick Search for attributes which don't need to be searchable. You can do this in the Admin via Catalog > Attributes > Manage Attributes.

Q: I have an Error about QueryElevationComponent and "MA147LL/A"

Caused by: org.apache.solr.common.SolrException: Error initializing QueryElevationComponent. at org.apache.solr.handler.component.QueryElevationComponent.inform(QueryElevationComponent.java:202) at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:527) at org.apache.solr.core.SolrCore.(SolrCore.java:594) ... 34 more Caused by: java.lang.NumberFormatException: For input string: "MA147LL/A"

A: Remove examples from elevate.xml

The Solr example configs include a file elevate.xml which influences the results when searching for "foo bar" or "ipad". Please edit this file and remove the examples.


Q: How do I install a Solr server?

We often get this question. We are sorry but it is a bit outside our scope.

A: You can Google it, or ask / hire a sys admin

It highly depends on which version of what operating system you are using on your server. Solr already exists since 2004, so there is a lot of documentation how to install and configure Solr. For example if you are using Ubuntu 12, Google: How to install Apache Solr on Ubuntu 12. We do have a wiki page with an overview of the steps get Solarium Search working in Magento. If possible, you can ask your system administrator, or hire a freelancer.


Q: Error: Unknown field 'product_id'

In System >> Configuration >> CATALOG >> Solarium Search the test connects to Solr successfully, but when reindexing the catalogsearch_fulltext it returns the following error:

Error reindexing Solr: ERROR: [doc=null] unknown field 'product_id' Please check the Solr server configuration.

A: Install schema.xml and restart Solr

Please verify you took all steps described in the Installation Instructions. You probably missed step 3 or 4.

Clone this wiki locally