Facetsearchtools

Hi all,
am working ipad application in ATG 10.1.0, facing a problem, didn't get the array of FacetSearchTools.facets. in crs its working. in adapter module its not working. In ATG10.0.3 its working both crs and ipad application, after migration to ATG10.1.0 am facing.
<json:array name="categories">
*<dsp:getvalueof var="facetHolders" bean="FacetSearchTools.facets"/>*
<c:forEach var="currentFacetHolder" items="${facetHolders}">------->its not going inside the for loop
<dsp:param name="currentFacetHolder" value="${currentFacetHolder}"/>
<dsp:getvalueof var="facetName" vartype="java.lang.String" param="currentFacetHolder.facet.label"/>
<dsp:getvalueof var="facetId" vartype="java.lang.String" param="currentFacetHolder.facet.id"/>
<dsp:getvalueof var="facetProperty" param="currentFacetHolder.facet.refinementElement.property"/>
<c:if test="${facetProperty != 'ancestorCategories.$repositoryId'}">
<%@include file="facetCategory.jspf" %>
</c:if>
</c:forEach>
</json:array>
http://localhost:8180/crs/storeus/adapter/facetSearchProductsForCategory.jsp?csf=Price%20High-Low&q_pageNum=&q_facetTrail=&repositoryId=cat170017
Response:
"err": "",
"categoryId": "cat170017",
"addFacet": "",
"facetTrail": "trail=9004:cat170017",
"removeFacet": "",
"appliedFacetTrail": "9004:cat170017",
"sort": "numprop",
"facets": [
"categories": [
here category is not getting
"products": [
{ // *here gettingĀ  products*
"numResults": "7",
"q_pageNum": "",
"pagesAvailable": "1",
"viewAll": "true",
"docSort": "numprop"
normal keyword serach is working in ipad application. eg: shirt
same functionalities in crs, its getting the array of facets
please suggest some points
thanks in advance

The search server returns the results in the form of groups. You can notice the groupCount value in the xml is set to 100. The value of the groupCount is determined by setting the responseNumberSettings property in the QueryRequest component.
responseNumberSettings=\
prop=100,\
perProp=1,\
doc=100,\
perDoc=1
You can notice here that the value of the doc property is set to 100. It indicates maximum number of document result groups to return. I believe this is the reason why you are only seeing 100 results though the total number of products are more. You can tweak this property in the QueryRequest component and try.
<ATGDir>\DCS\Search\Query\config\config\atg\commerce\search\catalog\QueryRequest.properties.

Similar Messages

  • FacetSearchTools.facets

    Hi all,
    am working ipad application in ATG 10.1.0, facing a problem, didn't get the array of FacetSearchTools.facets. in crs its working. in adapter module its not working. In ATG10.0.3 its working both crs and ipad application, after migration to ATG10.1.0 am facing.
    <json:array name="categories">
    *<dsp:getvalueof var="facetHolders" bean="FacetSearchTools.facets"/>*
    <c:forEach var="currentFacetHolder" items="${facetHolders}">------->its not going inside the for loop
    <dsp:param name="currentFacetHolder" value="${currentFacetHolder}"/>
    <dsp:getvalueof var="facetName" vartype="java.lang.String" param="currentFacetHolder.facet.label"/>
    <dsp:getvalueof var="facetId" vartype="java.lang.String" param="currentFacetHolder.facet.id"/>
    <dsp:getvalueof var="facetProperty" param="currentFacetHolder.facet.refinementElement.property"/>
    <c:if test="${facetProperty != 'ancestorCategories.$repositoryId'}">
    <%@include file="facetCategory.jspf" %>
    </c:if>
    </c:forEach>
    </json:array>
    same functionalities in crs, its getting the array of facets
    please suggest some points
    thanks in advance

    Thank you Lisa, I'll get that updated ASAP.
    Marina

  • Search response returning 100 items for all searches

    Hi,
    In ATG 10 Search, I see wierd behavior while displaying the value of FacetSearchTools.searchResponse.
    Case #1 : total no. of products < 100 , responseCount = correct value AND all products displayed by paginating
    Case #2 : total no. of products > 100 , responseCount = 100 AND only 100 products listed in the pagination
    In the below XML total items is 617 but responseCount=100.(Sending the part of XML due to limited characters)
    Any guess on this issue?
    Thanks in advance!
    Mani
    <answer printer="Java" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" id="0004670052" time="1340746281659" sorting="property" sortProp="string:$repositoryId:1" docSetSort="none" mode="and" strategy="normal" refineMax="50" refineMin="0" refineMinVal="2" refineTop="500" refineDebug="true" autospell="true" highlight="false" minScore="0" pageNum="0" pageSize="15" maxRelatedSets="0" docSort="relevance" docSortOrder="descending" docSortCase="true" docSortPropVal="first" responseCount="100" groupCount="100" docCand="738" docMax="754" docMin="754" ansCand="4737" ansMax="5203" ansMin="5203" ansPool="500"> <question>maps</question> <userquestion>maps</userquestion> <info>unknown rank config: cfg7004|</info> <documentSets> <and> <or name="base"> <and> <strprop name="catalogs.$repositoryId" op="equal" case="true">masterCatalog</strprop> <strprop name="catalogs.$repositoryId" op="equal" case="true">masterCatalog</strprop> </and> </or> <or name="refinement"> <numprop name="isSearchable" op="equal">1.0</numprop> </or> </and> </documentSets> <spelling> <term text="maps" offset="1" length="4"></term> </spelling> <parserOptions> <language>english</language> <propertyMapping>price,childSKUs.price@salePrices,childSKUs.price@listPrices</propertyMapping> </parserOptions> <response contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" score="995.0" id="0" answerGroup="1" type="ANCESTORCATEGORIES.DISPLAYNAME" field="17" sortprop="1020300"> <text score="99.49" name="ANCESTORCATEGORIES.DISPLAYNAME" goto="466">Maps</text> <document contextID="352:466.470" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" goto="466" hdoc="352" size="0" docset="/Solutions"> <_url>atgrep:/CustomProductCatalog/product/1020300?catalog=masterCatalog&amp;locale=en_US</_url> <timestamp>0</timestamp> <properties> <meta name="$itemDescriptor.itemDescriptorName" content="product"></meta> <meta name="$repository.repositoryName" content="CustomProductCatalog"></meta> <meta name="$repositoryId" content="1020300"></meta> </properties> </document> </response> <response contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" score="995.0" id="1" answerGroup="2" type="ANCESTORCATEGORIES.DISPLAYNAME" field="18" sortprop="315"> <text score="99.49" name="ANCESTORCATEGORIES.DISPLAYNAME" goto="609">Maps</text> <document contextID="1377:609.613" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" goto="609" hdoc="1377" size="0" docset="/Solutions"> <_url>atgrep:/CustomProductCatalog/product/315?catalog=masterCatalog&amp;locale=en_US</_url> <timestamp>0</timestamp> <properties> <meta name="$itemDescriptor.itemDescriptorName" content="product"></meta> <meta name="$repository.repositoryName" content="CustomProductCatalog"></meta> <meta name="$repositoryId" content="315"></meta> </properties> </document> </response> <response contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" score="995.0" id="2" answerGroup="3" type="ANCESTORCATEGORIES.DISPLAYNAME" field="19" sortprop="810"> <text score="99.48" name="ANCESTORCATEGORIES.DISPLAYNAME" goto="631">Maps</text> <document contextID="2709:631.635" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" goto="631" hdoc="2709" size="0" docset="/Solutions"> <_url>atgrep:/CustomProductCatalog/product/810?catalog=masterCatalog&amp;locale=en_US</_url> <timestamp>0</timestamp> <properties> <meta name="$itemDescriptor.itemDescriptorName" content="product"></meta> <meta name="$repository.repositoryName" content="CustomProductCatalog"></meta> <meta name="$repositoryId" content="810"></meta> </properties> </document> </response> <response contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" score="995.0" id="3" answerGroup="4" type="ANCESTORCATEGORIES.DISPLAYNAME" field="20" sortprop="1023051"> <text score="99.48" name="ANCESTORCATEGORIES.DISPLAYNAME" goto="578">Maps</text> <document contextID="2735:578.582" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" goto="578" hdoc="2735" size="0" docset="/Solutions"> <_url>atgrep:/CustomProductCatalog/product/1023051?catalog=masterCatalog&amp;locale=en_US</_url> <timestamp>0</timestamp> <properties> <meta name="$itemDescriptor.itemDescriptorName" content="product"></meta> <meta name="$repository.repositoryName" content="CustomProductCatalog"></meta> <meta name="$repositoryId" content="1023051"></meta> </properties> </document> </response> <response contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" score="995.0" id="4" answerGroup="5" type="ANCESTORCATEGORIES.DISPLAYNAME" field="21" sortprop="1020339"> <text score="99.48" name="ANCESTORCATEGORIES.DISPLAYNAME" goto="674">Maps</text> <document contextID="506:674.678" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" goto="674" hdoc="506" size="0" docset="/Solutions"> <_url>atgrep:/CustomProductCatalog/product/1020339?catalog=masterCatalog&amp;locale=en_US</_url> <timestamp>0</timestamp> <properties> <meta name="$itemDescriptor.itemDescriptorName" content="product"></meta> <meta name="$repository.repositoryName" content="CustomProductCatalog"></meta> <meta name="$repositoryId" content="1020339"></meta> </properties> </document> </response> <response contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" score="995.0" id="5" answerGroup="6" type="ANCESTORCATEGORIES.DISPLAYNAME" field="21" sortprop="1074529"> <text score="99.47" name="ANCESTORCATEGORIES.DISPLAYNAME" goto="680">Maps</text> <document contextID="1198:680.684" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" goto="680" hdoc="1198" size="0" docset="/Solutions"> <_url>atgrep:/CustomProductCatalog/product/1074529?catalog=masterCatalog&amp;locale=en_US</_url> <timestamp>0</timestamp> <properties> <meta name="$itemDescriptor.itemDescriptorName" content="product"></meta> <meta name="$repository.repositoryName" content="CustomProductCatalog"></meta> <meta name="$repositoryId" content="1074529"></meta> </properties> </document> </response> <response contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" score="995.0" id="6" answerGroup="7" type="ANCESTORCATEGORIES.DISPLAYNAME" field="17" sortprop="1072016"> <text score="99.47" name="ANCESTORCATEGORIES.DISPLAYNAME" goto="455">Maps</text> <document contextID="2737:455.459" contentID="ec58cd16-eb6c-44a1-8e93-cf4c3ba5a4e8" goto="455" hdoc="2737" size="0" docset="/Solutions"> <_url>atgrep:/CustomProductCatalog/product/1072016?catalog=masterCatalog&amp;locale=en_US</_url> <timestamp>0</timestamp> <properties> <meta name="$itemDescriptor.itemDescriptorName" content="product"></meta> <meta name="$repository.repositoryName" content="CustomProductCatalog"></meta> <meta name="$repositoryId" content="1072016"></meta> </properties> </document> </response>
    .

    The search server returns the results in the form of groups. You can notice the groupCount value in the xml is set to 100. The value of the groupCount is determined by setting the responseNumberSettings property in the QueryRequest component.
    responseNumberSettings=\
    prop=100,\
    perProp=1,\
    doc=100,\
    perDoc=1
    You can notice here that the value of the doc property is set to 100. It indicates maximum number of document result groups to return. I believe this is the reason why you are only seeing 100 results though the total number of products are more. You can tweak this property in the QueryRequest component and try.
    <ATGDir>\DCS\Search\Query\config\config\atg\commerce\search\catalog\QueryRequest.properties.

  • Trying to make multiple facet/selections work

    I'm assigned a task of making ATG Commerce Reference Store use alternatives in faceted search filtering.
    What do I mean:
    Suppose I have facet "Color" with values "Red", "Green" and "Indigo". I'm located in some top-level category.
    And I filter search results by clicking on "Red" facet value in navigation panel. Search is requested with facetTrail string like: "9004:cat70002:1002:Red".
    But resulting FacetTrail object does not contain information about facet values "Green" and "Indigo".
    Documentation says:
    The search engine filters all facets unless the refinement configuration specifies otherwise. To disable
    filtering of an individual facet, you add the faceting property to the filterProperties array property of
    the /atg/commerce/search/refinement/RefinementConfigurationXMLGenerator component.
    By default, this property is set to:
    filterProperties=\
            ancestorCategories.$repositoryId,\
            ancestorCategories.displayName If you have additional facets that you do not want to be filtered, add the faceting properties to this array.
    For example:
    filterProperties+=paperSizesI added all available in CRS filterProperties in RefinementConfigurationXMLGenerator object as instructed, like so:
    filterProperties+=price,childSKUs.size,childSKUs.color,childSKUs.woodFinish,features.displayNameBut, sadly, this had no effect.
    I'm checking for multiple facet values by running:
    <c:forEach var="currentFacetValue" items="${facetTrail.facetValues}">
        <dsp:getvalueof var="facetId" vartype="java.lang.String" value="${currentFacetValue.facet.id}" />
        <dsp:getvalueof var="facetValue" value="${currentFacetValue.value}" />
        <dsp:valueof value="${facetId}" />
        <c:forEach items="${facetValue}" var="currentMultiValue">
            <dsp:valueof value="${currentMultiValue}" />
        </c:forEach>
    </c:forEach>,where I got $facetTrail object by running:
    <dsp:droplet name="CommerceFacetTrailDroplet">
        <dsp:param name="trail" bean="FacetSearchTools.facetTrail" />
        <dsp:param name="refineConfig" param="catRC" />
        <dsp:oparam name="output">
          <dsp:getvalueof var="facetTrail" param="facetTrail"/>
        </dsp:oparam>
    </dsp:droplet>----------------
    There were some related questions, but they didn't help:
    Search 10.0.1 - Multi facet issue. - no answer given
    multiple facet selection, with OR combination - I re-did the indexing from BCC, but it did nothing back.
    So, how do I get required result? Have I misconfigured something? Or I simply searching results in the wrong place?
    Edited by: 927222 on Apr 13, 2012 5:48 AM

    Ok..so if i get it right here
    your facet trail after selecting red color is coming as "9004:cat70002:1002:Red"
    which means that you are telling search engine to bring all search results that are in cat70002 and of color Red.
    Now why would refinements contain green and indigo.
    Coz when you are in top category your facet trail would be "9004:cat70002", which will say that bring me all results under category cat70002, and which will contain results of Red, Green and Indigo too if they are present.
    By clicking on a color you are basically narrowing your search.

  • Search 10.0.1 - Multi facet issue.

    Hello,
    I am trying to get multi facets operational on storefront and as mentioned in the documentation, I configured filterProperties of RefinementConfigurationXMLGenerator.properties component with the properties to avoid filtering the results for non-selected items. and business has the need to display the matchingDocsCount against the Facet displayed on WEB. Also, FacetSearchTools.properties is configured for not skipping the facet values already in trail (skipValuesAlreadyInTrail=false).
    However, filterProperties does not seems to have taken effect. ATG search response does not contain all the facets against an element; response contain only the facets selected + contained in the products fetched by search. For instance, Color facet has 3 values - Red, Blue & Black. On selecting Black, we are expecting ATG search to return all 3 facet values based on filterProperties configuration.
    can anyone suggest with regards to what additional configurations missed or needed or pointers to get this fixed??
    Many thanks in advance.
    Suresh

    Hi Suresh,
    Can you explain with some example what exactly we are tying to active ?.
    I worked on this component. this component's filtered properties is meant to return all the possible values for that facet.
    eg :
    if we have a product having 3 child skies with 3(r,b,g) colors and we selected a 'r' then in the facets it will return all the values. if we don't configure the color facet in filter properties we will get only 'r' in the search response as facet values for the color.
    -- RAVI K.

Maybe you are looking for

  • Slow Perforamnce while executing the customizing program

    HI All My Prd server hardware are consist of 2 itanium processor, 8gb ram and 20gb pagefile with the 500 GB SAN Storage for the datadisk. I have almost 250 users on my PRD server over the 8 branches with the WAN connectivity. I have been set the 15 w

  • Anyone connected a Samsung BD-C6500 blu ray to Airport Extreme?

    Hi all I have reached the end of my rope trying to this to work. I have gotten the blu ray to see the network, and get to gateway ping - but then nothing. I read that the apple extreme password is not quite up to snuff so I increased the length of th

  • 8800 Problems, don't know if it's early 2008 or 1st Generation

    Okay I feel like an idiot! Any help would be appreciated. I just recently bought a refurb Mac Pro 3.0GHz Quad Xeon with the ATI1900X installed. I want to upgrade to the Nvidia card but I don't know how to tell if it's a 1st Generation or an Early 200

  • Fully Color Managed Application (using calibrated monitor profiles)

    Hi, I'm new to JAVA 2D so I may be missing something obvious - apologies if I am, but I've been trawling the API and web to try and solve this for many hours - so any help would be much appreciated! I'm trying to write an application to open a JPEG w

  • Run tool.. and stop on mouse and keyboard movements!!

    Hello frnds, I would like to share a problem with all of you..!!.. and need some advice!! I have a tool "optimizer" which takes a hell lot of time in optimizing images.. I have to pass some arguments to it.. (the optimizer script.. and output path)..