Switches Query Elevation on or off for your Opensolr Index: the results you pin to the top, or exclude, for a search.
https://opensolr.com/solr_manager/api/elevation_toggleemail and api_key of your account, as GET or POST parameters: Authentication.01 · Parameters
core_nameRequiredThe name of your index.
enableRequiredyes or no.
02 · Example
curl -s "https://opensolr.com/solr_manager/api/elevation_toggle?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_index&enable=yes"
03 · Answer
{ "status": true, "msg": [ "Added QueryElevationComponent to solrconfig.xml", "Created elevate.xml", "Core reloaded" ] }
msg lists what was changed. With yes, what is missing is added to solrconfig.xml, search.xml and elevate.xml, and the index reloads. With no, only the switch is turned off.
04 · Errors
Invalid enable value — must be yes or noHTTP 200enable is missing or wrong.
ERROR_NOT_CORE_OWNERHTTP 200The index is not yours.
Could not read solrconfig.xmlHTTP 200The configuration of the index could not be read. Try again.
ERROR_AUTHENTICATION_FAILEDHTTP 403The email and API key do not match.
ERROR_RATE_LIMIT_PER_MINUTEHTTP 429Too many calls. Wait for the Retry-After seconds: Rate limits.
05 · Related
Pin and exclude results in the Control Panel: Pin results, Exclude results.
Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.