Speak UI - SearchPanel config setting

214 Views Asked by At

I am currently working in Speak Ui .I need to display all child of Root which belongs from some specific template . For that I am using "SearchPanel Config" to do template and root setting . After doing this setting I noticed its not talking template setting from "SearchPanel Config" and displaying all Items . I am new to speak UI . Please help me .

1

There are 1 best solutions below

6
Wesley Lomax On

When you say "not taking the template" are the results not filtered as you expect?

When configuring your Search Panel Config template you should add the required item ids in the Root and Template fields.

Search Panel Config

You then need to edit the properties of the SearchDataSource rendering

SearchDataSource

To set the SearchConfigItemId to the SearchPanelConfig item you previously edited using the TreeList to select the required config item.

SearchConfigItemId

Search Config Tree List

You can verify the appropriate configuration is being passed by checking the Network Tab in your browser to see the calls being made by your SPEAK component.

You should see - [hostname]-/item/v1/sitecore/shell?search=&searchConfig=%7BC01B6B84-4D24-4214-B663-52902F43F113%7D&sc_content=master&language=en where the searchConfig parameter is the value of the SearchConfigItemId you previously set

Additionally look in your Sitecore log files and verify what the query being passed to the search index is, see below for an example of mine.

21376 08:35:37 INFO Query - (((_path:(7cc230f160a84d979c06c738a1334c6e) AND _language:(en)) AND _templatename:("Your Template Name")) AND -__hidden:(1)) 21376 08:35:37 INFO Serialized Query - ?q=(((_path:(7cc230f160a84d979c06c738a1334c6e) AND _language:(en)) AND _templatename:("Your Template Name")) AND -__hidden:(1))&rows=500&fl=*,score&fq=_indexname:(sitecore_master_index)&sort=_name asc