سؤال

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