Exclude subfolders in REST search

Options
I can specify a folder's id in the OTLocation parameter and I get valid search results, but it performs a deep search of everything beneath the folder I specify. I would like to search only the folder I specify.

I see that the user interface has a checkbox for "Exclude subfolders" so know the search engine has the ability, I just can't seem to find the magic syntax to make it happen.


Tagged:

Comments

  • Turn on search logs (wantSearchLogs=TRUE), run the query in the GUI without the checkbox checked, then with the checkbox checked.  The search logs will show you exactly what queries are being sent to the search engine.
    Cheers...
  • Great suggestion, John, do you happen to know if this change requires a restart to take effect?  Thus far I'm not seeing any changes when I query the logs.
  • Never mind, John, I started getting log output a bit later and it helped greatly.  Thanks again!