My search query is

/_api/search/query?querytext='*'&selectproperties='PreferredName,OriginalPath,WorkEmail,SipAddress,Department,Path,PictureURL,JobTitle,AccountName,BaseOfficeLocation,'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'&refinementfilters='PreferredName:("Tar*")'

This works fine. Now I want to add another filter in refinementFilters such as Department"("Dev*").

How can I do this?

I've tried this

refinementfilters = 'PreferredName:("kumar*") and Department:("dev*")'

But this did not work.

有帮助吗?

解决方案

I have found the way...

this should be

refinementfilters = 'and(PreferredName:("kumar*"),Department:("dev*"))'

其他提示

To apply multiple filters via refinementfilters property, your query will be:

/_api/search/query?querytext='*'&selectproperties='PreferredName,OriginalPath,WorkEmail,SipAddress,Department,Path,PictureURL,JobTitle,AccountName,BaseOfficeLocation,'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'&refinementfilters='PreferredName:and("kumar*", "dev*")'

Ref: Multiple types refinementfilters

许可以下: CC-BY-SA归因
scroll top