Logo Help Center

Configuring Solr to control the search results in Enterprise 9

Configuring Solr to control the search results in Enterprise 9

The search mechanism of Solr is a powerful and complex tool and it can take some time to get it configured in such a way that users are able to easily find the files that they are after.

In this article we will highlight some of the main aspects to take note of and provide examples and links for further reading.

Tokens

As explained in Understanding the Solr Search functionality in Enterprise Server, Solr handles data by using 'tokens'.

Example: The following sentence:

"Please, email john.doe@foo.com by 03-09, re: m37-xq."

is split into the following tokens:

"Please", "email", "john.doe@foo.com", "by", "03-09", "re", "m37-xq"

The default token length varies between 4 and 15 characters.

Also, Solr by default removes characters such as underscores or dashes from the words that are indexed.

Example: "wi-fi" is indexed as "wi" and "fi".

From this, we can conclude that:

  • The more tokens exist, the more search results can be returned (potentially too many to be practical).
  • Terms shorter than 4 characters will be ignored. For terms that are longer than 15 characters, only the first 15 characters are included.

  • When a user enters a search phrase that contains underscores or dashes, no results are displayed.

To resolve these issues, we can:

Additional configuration settings

The examples provided above are just a few of the many possible solutions for getting better search results. Which of these solutions you need for your scenario depends on many factors (such as the type of characters used in file names and the length of file names, both typically controlled by file naming conventions).

Correctly configuring Solr for your environment requires a good understanding of the concepts used by Solr and an awareness of the available settings that can be configured.

We therefore advise to go through the Solr documentation, such as Analyzers, Tokenizers, and Token Filters.

Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.