How to add more than one refinementFilters in a search query
-
09-12-2020 - |
Вопрос
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*")'
Не связан с sharepoint.stackexchange