xml - Refine search results -


i using sharepoint rest search api.

i asking return me specific set of results.

it searches against field called myfield. myfield multiple choice field. searching return results myfield equals a. returns result if contains (myfield = a;b;c) , if equals (myfield = a).

however, want return results equals a. not return results if equals a, others.

the query using is:

http://testurl.com/sites/mysite/_api/search/query?querytext='(country:fra)(contenttype:mycontenttype)(myfield:a)'&rowlimit=50&selectproperties='title,lastmodifiedtime,myfield'&trimduplicates=false&sortlist='lastmodifiedtime:descending' 

i have tried select refinement filters no avail:

http://testurl.com/sites/mysite/_api/search/query?querytext='(country:fra)(contenttype:mycontenttype)(myfield:a)'&rowlimit=50&selectproperties='title,lastmodifiedtime,myfield'&trimduplicates=false&sortlist='lastmodifiedtime:descending'&refinementfilters='myfield:equals("amer")' 

have tried using kql? seems if can use "=" opeartion instead of ":".

":" returns results value specified in property restriction equal property value stored in property store database, or matches individual terms in property value stored in full-text index.   "=" returns search results property value equal value specified in property restriction. note not recommend combining = operator asterisk (*) when exact matching. 

https://msdn.microsoft.com/en-us/library/office/ee558911.aspx


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -