On 16 December 2013 16:30, Koji Sekiguchi <k...@r.email.ne.jp> wrote: > > Hi, > > (13/12/16 19:46), Nutan wrote: >> >> how to index pdf,doc files from browser? > > > I think you can index from browser. > > If you said that > >> this query is used for indexing : >> curl >> "http://localhost:8080/solr/document/update/extract?literal.id=12&commit=true" >> -F"myfile=@C:\solr\document\src\test1\Coding.pdf" > > > curl works for you but > >> When i try to index using this: >> http://localhost:8080/solr/document/update/extract?literal.id=12&commit=true" >> -F"myfile=@C:\solr\document\src\test1\Coding.pdf >> >> the document does not get indexed. > > > browser doesn't work for you, why don't you look into Solr log and > compare the logs between when you using curl and browser?
No, this will not work by loading the URL into a browser, as with the -F option, curl is emulating a POST for a form filled in by the user. One must use curl, or a similar tool, for this. Regards, Gora