Info: This article can be used for Solr 4, Solr 6, and Solr 7.
The following sections provide solutions to common problems when working with Solr.
Changing the port
Port xxxx is already used, how do I change the port?
For Solr 4:
Do one of the following:
- Tomcat: Open <tomcat path>/conf/server.xml. Search for <Connector port=’xxxx’ and change this to the desired port.
- Jetty: Open <jetty path>/etc/server.xml. Search for <Set name=”port”><SystemProperty name=”jetty.port” default=”xxxx”/></Set> and change this to the desired port.
For Solr 6:
Start Solr from the command line with a different port:
<solr_install_location>/bin/solr start -p <NEW_PORT>
No results returned
I fill in an ‘a’ in the search field in Content Station, but I don’t get any results. I am sure though that I have content containing an ‘a’.
Analysis: The Solr installation contains a file name stopwords.txt. All words that are listed in that file are not indexed.
Solution: Make sure that the stopwords.txt file does not contain any phrases that should be excluded from the indexing process.
Everything seems to be fine: all objects are indexed, Solr is running, the Health Check page says everything is okay and I fill in text that should give results. But still I do not receive any results, let alone facets.
Try re-indexing the objects in Enterprise Server.
When searching on terms with accents, no results are returned.
Make sure that the URIEncoding=”UTF-8” setting is included in the <tomcat path>/conf/server.xml file.
Entering a search term shorter than 4 characters or longer than 15 characters, no result is returned.
In case of a long search term you can split the term in two separate terms, each shorter than 15 characters.
Another solution can be to do the followng:
- For Solr 4: Change the schema.xml. Look for <filter class=”solr.NGramFilterFactory” minGramSize=”4” maxGramSize=”15”/> and adjust the minimum and maximum values. Re-index your database afterwards.
- For Solr 6: Change the configuration. For more information, see Configuring Solr to control the search results in Enterprise 10.
Objects not indexed
Issue: The Health Check page shows OK but objects are not indexed.
Analysis: The Solr plug-in is probably not installed or enabled.
Solution: Verify the Enterprise Server Plug-ins page.
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
Please sign in to leave a comment.