at a minimum you need to specify the q parameter like
but you could also use a wildcard operator:
or a near operator:
To use scope you specify a semicolon delimited list of sources like:
The start parameter is used in conjunction with the count parameter for paging like this query, which returns results 101-200:
I hope that helps!
Thanks for the info Chad.
Do I need to explicitly tag something as a "SeachSource" somehow? If I run a basic query such as:
I get an empty response like:
If I run a search/sources query:
I also get an empty json response. If I explicitly try to search my PI server like this:
"Message": "Search source not found",
I feel that these might be related and that I am missing something...
Thanks Marcos, this makes a lot of sense. It turns out that I don't even have Indexed Search! I just assumed that it had been installed with the PI Web API kit. I guess I assumed incorrectly.
Learned something new today!
It's indeed a bit odd that e.g. Pi CoreSight installs the PI Web API and the search crawler, but to use the search capabilities of the Web API you need to download the crawler separately.
I'd at least expect it to be listed as a system prerequisite for the PI Web API that if you need search, you need the crawler...