search filters not filtering smart search results

Marcel Guldemond asked on May 16, 2016 20:50

We are trying to use a smart search on a page that has a set of custom page types under it. The search is supposed to filter and show those child pages of the custom page type in the results webpart.

I put in the web part ID of the smart search dialog that's on the same page, but none of the filters we added are having any search effect. The only that successfully filters is a text search using the smart search dialog text box.

UPDATE

I should have been more specific: the filters we're trying to add are dropdown select lists, and should be filtering against values in custom fields on the specific page type that we're trying to show. The set up of the select options looks correct in the html, so we seem to be missing something on how to get it connected to the smart search properly.

One of the select options:

<option value="ProjectRegion:(Asia Pacific)">Asia Pacific</option>

where ProjectRegion is the name of the pagetype's field that we want to test against, and 'Asia Pacific' is the correct value.

Is there any way to debug the query that is being generated by the system, or some way to debug where it's failing? Or is there a setting on the SmartSearchDialog or Filter that we're missing?

Any tips on how to trouble shoot this would be very helpful, thanks. Marcel

Recent Answers


Roman Hutnyk answered on May 16, 2016 23:02

If you want to limit search results by path use Path field in the Page filter section of the Smart search results web part, so need to use extra filter.

0 votesVote for this answer Mark as a Correct answer

Marcel Guldemond answered on May 17, 2016 03:02

Hi Roman, your answer has made me realize that I didn't specify in enough detail what we're trying to do, so I've modified my question.

Thanks, Marcel

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on May 17, 2016 03:50 (last edited on May 17, 2016 14:04)

Option looks correct. Is ProjectRegion field marked as Content & Searchable (can't be Tokenized) under search fields tab of the page type? Is filter auto postback property of the filter web part checked?

0 votesVote for this answer Mark as a Correct answer

Marcel Guldemond answered on May 17, 2016 15:36

Yes, ProjectRegion is marked as Content and Searchable, and the filters are all set to auto postback, so the page submits when an option is changed.

Is there a setting on the Smart Search Results webpart that's missing, or is the Smart Search Dialog supposed to handle all of the filters on the page?

thanks, Marcel

0 votesVote for this answer Mark as a Correct answer

Marcel Guldemond answered on June 20, 2016 17:32

Hi Roman, I figured out what was the problem: the Search Dialog's 'Result Webpart ID' field needs to be filled in with the ID of the search results webpart. I didn't see this mentioned in the documentation and it isn't really obvious.

thanks, Marcel

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.