CoreResult Webpart fetches 100 refiners eve though MaxnumberofFilters to Display is set to 15.

Respondida CoreResult Webpart fetches 100 refiners eve though MaxnumberofFilters to Display is set to 15.

  • 09 April 2012 9:22
     
     

    Hello All,

    I have extended the sharepoint core result webpart along with refinement panel and filter generator.

    Assume that i have set the maxnumberoffilterstodisplay as 15 and accurracy index is set to 50.

    When i only add my extended coreresult webpart or OOB core result webpart on the results page and when i check the query fired in the query logger the query is ok and the refiners fetched against eact category is round about 20-40 refiners.

    When i add the OOB  refinement panel webpart of the query logger is the same.

    But when i add my extended refinement panel webpart the query logger fetches 100 refiners against each category/ mapped property. Even though the max no of filters to display is set to 15 and accuracy index is set to 50.When i debugged the code under filter generator that i have extended the method

    GetRefinement() the refiment data brings the refiners based on accuracy index.

    What i want is when i am setting the max no of filters to display as 15 the core result webpart should fetch only 15 refiners not 100.

Semua Balasan