1 Reply Latest reply: Sep 13, 2013 8:41 AM by Nitin Khare RSS

    How to Dissable Multisite in SearchFormHandlers

    saminda konkaduwa

      Hi,

       

      I am using SearchFormHandler in-order to read specific items based on search key word.

      It returns only few items. But there are lots of items.

       

      I have enabled logging-debug in product item-descriptor at /atg/commerce/catalog/ProductCatalog.

       

      I have seen My search query has addition siteId parameters with AND operator.

      It returns few items even i used /atg/dynamo/droplet/multisite/SiteContextDroplet in JSP page result page.

      We can eliminate multi-site search using SiteContextDroplet when we are not using SearchFormHandler.

       

      Does anyone know how to handle this issue when we use SearchFormHandler ?

       

       

      My DSP form page :

      ==================

      <dsp:input bean="/lk/dialog/wow/merchant/ProductSearchFormHandler.keywordInput" type="text" required="true"/>

      <dsp:input type="hidden" bean="/lk/dialog/wow/merchant/ProductSearchFormHandler.successURL" value="list_products.jsp"/>

      <dsp:input type="submit" value="search" bean="/lk/dialog/wow/merchant/ProductSearchFormHandler.search"/>

       

       

      list_products.jsp

      ============

       

      <%@ taglib uri="/dspTaglib" prefix="dsp"%>

      <dsp:page>

      <dsp:form action="merchant_portal_view_deals.jsp" method="post">

      <dsp:droplet name="/atg/dynamo/droplet/multisite/SiteContextDroplet">

          <dsp:param name="emptySite" value="false" />

          <dsp:oparam name="output">

          <select name="search_all-filter" iclass="atg_form_list merchants_selectproduct">

          <dsp:droplet name="/atg/dynamo/droplet/ForEach">

              <dsp:param name="array" bean="/lk/dialog/wow/merchant/ProdufctSearchFormHandler.searchResults" />

              <dsp:oparam name="empty">

                      There is no product found.

              </dsp:oparam>

                <dsp:oparam name="output">

                      <option value=<dsp:valueof param="element.id"/>>

                          <dsp:valueof param="element.displayName"/>

                      </option>

              </dsp:oparam>

              <dsp:oparam name="outputStart">                           

              </dsp:oparam>               

              <dsp:oparam name="outputEnd">

                  <tr>

                      <td><input type="submit" value="search" class="atg_button"/></td>

                  </tr>               

              </dsp:oparam>

          </dsp:droplet>

       

          </select>   

          </dsp:oparam>

      </dsp:droplet>   

      </dsp:form>

      </dsp:page>

       

       

       

       

      ProductSearchFormHandler.properties

      ============================

       

      # /lk/dialog/wow/merchant/ProdufctSearchFormHandler

      #Fri Sep 13 14:20:05 IST 2013

      $class=atg.repository.servlet.SearchFormHandler

      $description=SearchFormHandler

      $scope=global

      adminServletOutputStreamEncoding=UTF-8

      adminServletUseServletOutputStream=false

      advancedSearchPropertyRanges=

      advancedSearchPropertyValues=

      allowEmptySearch=true

      allowRefine=false

      allowWildcards=true

      checkForValidSession=false

      currentResultPageNum=1

      deferForwardsAndRedirects=false

      displayName=displayName

      doAdvancedSearch=false

      doHierarchicalSearch=false

      doKeywordSearch=true

      doTextSearch=false

      enableCountQuery=false

      endIndex=0

      includeDisabledSites=true

      includeInactiveSites=true

      itemTypes=product

      keywordInput=

      logListeners=/atg/dynamo/service/logging/LogQueue,/atg/dynamo/service/logging/ScreenLog

      loggingDebug=false

      loggingError=true

      loggingInfo=true

      loggingTrace=false

      loggingWarning=true

      maxResultsPerPage=-1

      maxRowCount=-1

      messagePort=FormSubmission

      messageType=atg.das.FormSubmission

      repositories=/atg/commerce/catalog/ProductCatalog

      restorableForm=false

      resultSetSize=0

      sendMessages=false

      startIndex=0

      toLowerCaseKeywords=false

      toUpperCaseKeywords=false

      useForwards=false

      useIncludesForKeywordQueryOnMultiProperties=false

       

       

       

       

       

      saminda konkaduwa