I have the following-like URL:
https://fback.example.com/s/search.json?collection=mycollection&query=!showall&num_ranks=1000&profile=_default&..&meta_fac=Science
I only want to have results that have fac=“Science” exact value only, I don’t want to match e.g. “Humanities & Social Sciences” because it has “Science” in the string. However, I’m seeing results with this included.
How do I just query on fac=“Science” only?
The only way you’ll be able to do this is to make use of the query boundary operators - $++.
Think of these as a special type of quote.
If you search for meta_fac=$++ Science $++ you should get what you want.
meta_fac=$++ Science $++
Note you’ll need to appropriate encode (e.g. URL encode if you dump that into a URL param)