Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.
How to limit Search results via API
in API
Hello,
We would like to limit the results to searching the title and description of the event, so that a keyword result will result in the most relevant result.
How could we limit the search results?
1
Answers
Hi Gino,
We do not currently have a way to limit our search results using either the SOAP or REST API to only search title and description. All of the search endpoints in our APIs will search through all of the available indexed information (including speech and character recognition) when returning the search results for sessions.
Please let me know if you have any other questions.
Thanks,
Kevin
You can use the
query
parameter along with thefield
parameter in the API request. Here's an example of how you can achieve this:GET /search
endpoint of the Panopto API to perform the search. Include thequery
parameter to specify the search keyword and thefield
parameter to restrict the search to the title and description fields.Here's an example API request:
In this example, replace
keyword
with the actual search keyword you want to use. Thetitle,description
value for thefield
parameter instructs the API to only search in the title and description fields of the events.