Вопрос

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 с атрибуция
Не связан с sharepoint.stackexchange
scroll top