indexing from bowser

2013-12-16 Thread Nutan
how to index pdf,doc files from browser?

this query is used for indexing :
curl
http://localhost:8080/solr/document/update/extract?literal.id=12commit=true;
-Fmyfile=@C:\solr\document\src\test1\Coding.pdf

but i need to index from browser, as we do for delete:
http://localhost:8080/solr/document/update?stream.body=deletequeryid:3/query/deletecommit=true

When i try to index using this:
http://localhost:8080/solr/document/update/extract?literal.id=12commit=true;
-Fmyfile=@C:\solr\document\src\test1\Coding.pdf

the document does not get indexed.

Is there any query to index from browser,using html url??



--
View this message in context: 
http://lucene.472066.n3.nabble.com/indexing-from-bowser-tp4106889.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: indexing from bowser

2013-12-16 Thread Koji Sekiguchi

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=12commit=true;
-Fmyfile=@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=12commit=true;
-Fmyfile=@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?

koji
--
http://soleami.com/blog/automatically-acquiring-synonym-knowledge-from-wikipedia.html


Re: indexing from bowser

2013-12-16 Thread Gora Mohanty
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=12commit=true;
 -Fmyfile=@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=12commit=true;
 -Fmyfile=@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


Re: indexing from bowser

2013-12-16 Thread Nutan
ok thanks,
but is there any other way where -F is not used?

I am creating a api in vc++ and to link to solr i am using libcurl,for this
to work the string is the url,
eg: 
curl_easy_setopt(curl,
CURLOPT_URL,http://localhost:8080/solr/document/select?q=*%3A*wt=jsonindent=truefl=id;);
 

so for indexing i need a url.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/indexing-from-bowser-tp4106889p4106900.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: indexing from bowser

2013-12-16 Thread Gora Mohanty
On 16 December 2013 16:50, Nutan nutanshinde1...@gmail.com wrote:

 ok thanks,
 but is there any other way where -F is not used?

 I am creating a api in vc++ and to link to solr i am using libcurl,for this
 to work the string is the url,
 eg:
 curl_easy_setopt(curl,
 CURLOPT_URL,http://localhost:8080/solr/document/select?q=*%3A*wt=jsonindent=truefl=id;);
[...]

If you can do a post using curl from the command line, you can
add --libcurl file to get a libcurl example written to file. Please
see the curl man page for details.

Regards,
Gora