Solr features not available
An Opensolr Index runs Apache Solr with almost every feature it ships. A few features can read files, reach other indexes or run code on the server, so they are off on Opensolr, on every Solr version it runs. This page lists them, with what to use instead.
01 · At a glance
| Feature | On Opensolr | Use instead |
|---|---|---|
| Schema API writes | Changes through /schema are refused. Reading the schema works. | Edit schema.xml or upload your schema files. |
| Streaming expressions | /stream, /sql, /graph and /export with expr are refused. | The plain /export, faceting and your own code. |
| Replication backup and restore | command=backup, restore, restorestatus and deletebackup are refused. | Opensolr backups, in the panel or by API. |
| Changing log levels | Not possible. | The error log of the index in the panel. |
| Script update processors | Removed from the configuration and refused. | Prepare documents in your own code. |
| Joins across indexes | fromIndex on another index is refused. | Joins inside one index. |
| Remote streaming | stream.url and stream.file are refused. | Send the content in the request. |
| XML query parser | {!xmlparser} is refused. | The standard, dismax and edismax parsers, or the JSON Query DSL. |
| Data Import Handler (DIH) | Every request to it is refused. | Send your data to /update. |
| XSLT and Velocity writers | wt=xslt and wt=velocity are not available. | wt=json or wt=xml, formatted in your code. |
| Tika: MATLAB and ISA-Tab files | Not extracted. | Every other format extracts as usual. |
02 · Schema API writes
Requests that change the schema through the Schema API are refused: adding, replacing or deleting fields, field types, dynamic fields and copy fields, and changing managed synonyms or stopwords through /schema/analysis. Reading works: GET /solr/YOUR_INDEX/schema and /schema/fields answer as usual.
Change the schema in the files instead: edit schema.xml in the Configuration tab, or upload your configuration files. The word lists are files too: synonyms.txt, stopwords.txt and protwords.txt. Steps: Edit a file and Upload a ZIP.
03 · Streaming expressions
The /stream, /sql and /graph handlers answer every request with 403 “streaming expressions are disabled”, under any name. /export refuses a request that carries expr.
The plain export works: /export with fl and sort streams every matching document. For counts and groups use faceting; to combine results, run the queries from your own code.
04 · Replication backup and restore
The backup and restore commands of the replication handler (command=backup, restore, restorestatus, deletebackup) are refused with 403. Replication itself works as usual.
Use Opensolr backups: create, schedule, download and restore them in the Backup tab of the control panel, or from your own code. Steps: Backups and API: Create backup.
05 · Changing log levels
Log levels cannot be changed on an Opensolr Index. The errors of your index are in its error log: Error log.
06 · Script update processors
StatelessScriptUpdateProcessorFactory and ScriptUpdateProcessorFactory do not run. They are removed from your configuration when you save or upload it, with the update chains left without a processor, and a request that would reach one is refused.
Prepare your documents in your own code before you send them. The other update processors of Solr work as usual. Every rule: Upload rules.
07 · Joins across indexes
A join that reads another index is refused with 403: fromIndex in {!join} and in the score join, a [subquery] on another index, and the cross collection join. A fromIndex setting in a configuration is removed on upload.
Joins inside one index work: {!join from=parent_id to=id} with no fromIndex, or with fromIndex set to the index itself. To join two sets of data, put them in the same index, or run two queries from your own code.
08 · Remote streaming
stream.url and stream.file are refused on every request, whatever the configuration of the index says: Solr does not read files or addresses for you.
Send the content in the request instead: as the body of the request, as a file upload, or in stream.body.
09 · XML query parser
The XML query parser is refused, under any name: {!xmlparser}, defType=xmlparser, or a custom <queryParser> name that points at it.
Write the same query with the standard, dismax or edismax parser, or with the JSON Query DSL.
10 · Data Import Handler (DIH)
Every request to the Data Import Handler is refused, under any handler name. Apache removed DIH from Solr 9, so newer versions do not have it at all.
Read the rows from your database in your own code and send them to /update as JSON, XML or CSV, or with a client library such as SolrJ, Solarium or pysolr. Example: DataImport Handler (DIH) Disabled on Opensolr.
11 · XSLT and Velocity response writers
wt=xslt is refused, and the Velocity writer (wt=velocity) is not available. XSLT stylesheets and Velocity templates are not written when you upload them.
Ask for wt=json or wt=xml and build the page or the format you need in your own code.
12 · Tika: MATLAB and ISA-Tab files
Text extraction with Tika does not parse MATLAB (.mat) and ISA-Tab files, neither as documents nor inside other documents. Every other format extracts as before.