Turning off Partial Matches with 12.5 CF9/10 Full Text Indexing

This article only applies to version 12.5 and earlier, and is specific to CF9/10 using Solr for full text indexing.


In version 12.5 and early, Solr collections are used to allow for full text indexing of documents uploaded to the intranet. By default, stemming is enable, which means searches for "controller" will return matches in documents with "control", or searches for "ravens" will return matches in documents with "raven".


You can turn of stemming (or partial matches) by doing the following:

Edit a file in this location:

Within this file, there is a entry called <fieldType name="text" class="solr.textField" positionIncrementGap="100>. (Don't be fooled by the entries found higher up that look like <fileType name="text_en", we want the one that looks exactly like the image linked below.)

Backup this file first, and then remove the line:
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt">

This is the line highlighted in the image below.

Once you save the changes, restart the Coldfusion Solr Service. No need to delete/optimize collections.
Try searching for "controller".

After this change, there should be no stemming of words associated with "Full Text" searching. Ie. "controller" won't match "control" and "fruits" won't match "fruit", etc.

Have more questions? Submit a request


Article is closed for comments.