Feature Pack 5 or later

Enabling interim fix JR54149

Interim fix JR54149 provides an enhancement to avoid returning a smaller result set when the Solr minimum match option is used with synonyms.

If you are on Feature Pack 5 or later, to enable the enhancement, you need to update the SearchResultsDisplay.jsp file.

Before you begin

Ensure that the latest cumulative interim fix is installed for the Feature Pack that you are on.

Install the interim fix for JR54149.

Procedure

If you are on Feature Pack 5 or Feature Pack 6, complete the following two steps.
  1. In the JR54149 interim fix package that you downloaded (.pak), find the SearchResultsDisplay.jsp file.
    Note: If you cannot browse the .pak file, change the file extension to .zip and extract the file.
  2. Merge the updates that are in the SearchResultsDisplay.jsp file with your local SearchResultsDisplay.jsp file for the store that you are using.
    For example, your local copy might reside in Store_archivedir/storedir/Layouts.
If you are on Feature Pack 7 or Feature Pack 8, complete the following steps.
  1. Open your existing, local SearchResultsDisplay.jsp file.
    For example, your local copy might reside in Store_archivedir/storedir/Layouts.
  2. Find the code that determines the logic when there are zero or more than one result.
    <%-- If we are here, then we have either 0 results or more than 1 result --%>
  3. Add the following code declaration.
    <c:set var="urlSearchType" value="${searchType}"/>
        <c:if test="${empty urlSearchType}" >
        <c:set var="urlSearchType" value="${WCParam.searchType}"/>
    </c:if>
  4. Add the <wcf:param name="searchType" value="${urlSearchType}"/> search type to your views.
    For example,
    
    <wcf:url var="CategoryNavigationResultsViewURL" value="CategoryNavigationResultsView" type="Ajax">
       <wcf:param name="langId" value="${langId}"/>
        <wcf:param name="storeId" value="${storeId}"/>
        <wcf:param name="catalogId" value="${catalogId}"/>
        <wcf:param name="pageSize" value="${pageSize}"/>
        <wcf:param name="sType" value="SimpleSearch"/>						
        <wcf:param name="categoryId" value="${WCParam.categoryId}"/>		
        <wcf:param name="searchType" value="${urlSearchType}"/>	
        <wcf:param name="metaData" value="${metaData}"/>	
        <wcf:param name="resultCatEntryType" value="${WCParam.resultCatEntryType}"/>	
        <wcf:param name="filterFacet" value="${WCParam.filterFacet}"/>
        <wcf:param name="manufacturer" value="${WCParam.manufacturer}"/>
    </wcf:url>
    
    <wcf:url var="CategoryNavigationResultsViewContentURL" value="CategoryNavigationResultsContentView" type="Ajax">
     <wcf:param name="langId" value="${langId}"/>
     <wcf:param name="storeId" value="${storeId}"/>
     <wcf:param name="catalogId" value="${catalogId}"/>
     <wcf:param name="pageSize" value="${pageSize}"/>
     <wcf:param name="sType" value="SimpleSearch"/>						
     <wcf:param name="categoryId" value="${WCParam.categoryId}"/>		
     <wcf:param name="searchType" value="${urlSearchType}"/>	
     <wcf:param name="metaData" value="${metaData}"/>	
     <wcf:param name="resultCatEntryType" value="${WCParam.resultCatEntryType}"/>	
     <wcf:param name="filterFacet" value="${WCParam.filterFacet}"/>
     <wcf:param name="manufacturer" value="${WCParam.manufacturer}"/>
    </wcf:url>