Using the Minimum Match Default Search Criteria

The “50% minimum match” is the default search configuration with “fresh” installations of Locator .

By “fresh” we mean an installation that was not performed over an existing, previous Locator version.  

The result of this change is that when users perform a search, at least 50% of the terms entered for the search, must exist in the document in order for the document to be included in the search results. 

For installations that have been upgraded to 2.4 from a previous ViaWorks release, this change will not be made to the default configuration and the previous search behavior, a match on any of the terms entered, will remain.  


This was done so as to not to confuse existing Locator users with changes in their search results.  However, we feel the new behavior is better, and after educating the Locator users, we encourage Locator administrators to make the change to the new search behavior.

Perform the following steps if you wish to modify a Locator server configuration that has been upgraded from a ViaWorks/Locator release prior to 2.4, to use the 50% minimum match default search criteria. 

1.  For version 2.8 or older: Edit the file “solrconfig.xml”.  By default, it will reside in the "ProgramData\VirtualWorks\ViaWorks\Solr\ViaWorks\conf" folder but this may have been changed during installation.
     For version 2.9 or newer: Edit the file “solrconfig.xml”.  By default, it will reside in the "ProgramData\ayfie\Locator\Solr\Locator\conf" folder but this may have been changed during installation.

2. Scroll down within the file until you reach the section:

<requestHandler name="/select" class="solr.SearchHandler">

Within the <lst name=”defaults”> subsection you will see the following line:

<str name=”mm”>1</str>

3. Edit the line, replacing the “1” with “-50%”, so it looks like the following:

<str name=”mm”>-50%</str>

4. After editing the line and saving the file, you will need to restart the ayfie Locator Index Service.

ayfie