2

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.

1
  • Refinement filters does not accept string? Commented Jul 15, 2020 at 13:39

2 Answers 2

6

I have found the way...

this should be

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

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

2
  • You do not understand the question. kumar will be fintered in PreferredName and dev in Department. not both in preferredName Commented Oct 13, 2016 at 13:36
  • ok,.. Congrats that you found the solution Commented Oct 14, 2016 at 4:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.