Skip to content
jeroenvermeulen edited this page Oct 20, 2014 · 22 revisions

Q: Product X is not showing in search results

We received some questions from users who are able to find most of the products via Solarium Search, but some don't show up.

A: Please check these things:

  • Check if there is be a redirect configured via the Admin: Catalog > Search Terms which changes the results
  • The product's Visibility needs to be set to Catalog,Search or Search. Also check the setting for the specific store view.
  • The attribute which contains the value you search for needs to have Use in Quick Search enabled
  • Edit and save the product once
  • Search for another string which is found in the same product
  • Do a full reindex of the Catalog Search Index.
  • Last resort: Check if you can find the product using Magento's native search after disabling Solarium

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 improve this by completely building 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.

Please note: an Apache webserver is not the same as a Solr search server, you probably need both.


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.