SOLR Index - deleted file

Does anyone know how to index a remote file using SOLR? I tried the following

curl http://localhost:8983/solr/update/extract?literal.id=rem1&uprefix=attr_&fmap.content=body&commit=true" -F stream.url=http://fakesite.com

no luck.

Local host equivalent

curl http://localhost:8983/solr/update/extract?literal.id=rem1&uprefix=attr_&fmap.content=body&commit=true" -F "stream.url=http://duke.edu/web/aepi/"

works great.

Thank! djs22

+3
source share
1 answer

For security reasons, remote streaming is disabled by default. From the Solr wiki :

If streaming is enabled, you need to make sure that Solr is as secure as it should be. When streaming is enabled, the "stream.url" parameters will go to the remote site and download the Content. Similarly, "stream.file" will read the file on disk.

Disabled streaming by default configured from solrconfig.xml

 <requestParsers enableRemoteStreaming="false" ... />
+4
source

All Articles