Re: adding a document using curl

2011-03-04 Thread Marc SCHNEIDER
Hi,

Could you please post exactly what you tried?

Regards,

On Thu, Mar 3, 2011 at 12:31 PM, Ken Foskey kfos...@tpg.com.au wrote:


 I have read the various pages and used Curl a lot but i cannot figure out
 the correct command line to add a document to the example Solr instance.

 I have tried a few things however they seem to be for the file on the same
 server as solr,  in my case I am pushing the document from a windows machine
 to Solr for indexing.

 Ta
 Ken



adding a document using curl

2011-03-03 Thread Ken Foskey


I have read the various pages and used Curl a lot but i cannot figure out 
the correct command line to add a document to the example Solr instance.


I have tried a few things however they seem to be for the file on the same 
server as solr,  in my case I am pushing the document from a windows machine 
to Solr for indexing.


Ta
Ken 



Re: adding a document using curl

2011-03-03 Thread Markus Jelsma
Here's a complete example
http://wiki.apache.org/solr/UpdateXmlMessages#Passing_commit_parameters_as_part_of_the_URL

On Thursday 03 March 2011 12:31:11 Ken Foskey wrote:
 I have read the various pages and used Curl a lot but i cannot figure out
 the correct command line to add a document to the example Solr instance.
 
 I have tried a few things however they seem to be for the file on the same
 server as solr,  in my case I am pushing the document from a windows
 machine to Solr for indexing.
 
 Ta
 Ken

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350


Re: adding a document using curl

2011-03-03 Thread Ken Foskey
On Thu, 2011-03-03 at 12:36 +0100, Markus Jelsma wrote:
 Here's a complete example
 http://wiki.apache.org/solr/UpdateXmlMessages#Passing_commit_parameters_as_part_of_the_URL

I should have been clearer.   A rich text document,  XML I can make work
and a script is in the example docs folder

http://wiki.apache.org/solr/ExtractingRequestHandler

I also read the solr 1.4 book and tried samples in there,   could not
make them work.

Ta


 On Thursday 03 March 2011 12:31:11 Ken Foskey wrote:
  I have read the various pages and used Curl a lot but i cannot figure out
  the correct command line to add a document to the example Solr instance.
  
  I have tried a few things however they seem to be for the file on the same
  server as solr,  in my case I am pushing the document from a windows
  machine to Solr for indexing.
  
  Ta
  Ken
 





Re: adding a document using curl

2011-03-03 Thread pankaj bhatt
Hi All,
   is there any Custom open source SOLR ADMIN application like what
lucid imagination provides in its distribution.
   I am trying to create thing, however thinking it would be a
reinventing of wheel.

   Request you to please redirect me, if there is any open source
application that can be used.
   Waiting for your answer.

/ Pankaj Bhatt.


Re: adding a document using curl

2011-03-03 Thread Gary Taylor

As an example, I run this in the same directory as the msword1.doc file:

curl 
http://localhost:8983/solr/core0/update/extract?literal.docid=74literal.type=5; 
-F file=@msword1.doc


The type literal is just part of my schema.

Gary.


On 03/03/2011 11:45, Ken Foskey wrote:

On Thu, 2011-03-03 at 12:36 +0100, Markus Jelsma wrote:

Here's a complete example
http://wiki.apache.org/solr/UpdateXmlMessages#Passing_commit_parameters_as_part_of_the_URL

I should have been clearer.   A rich text document,  XML I can make work
and a script is in the example docs folder

http://wiki.apache.org/solr/ExtractingRequestHandler

I also read the solr 1.4 book and tried samples in there,   could not
make them work.

Ta






Re: adding a document using curl

2011-03-03 Thread Gora Mohanty
On Thu, Mar 3, 2011 at 5:15 PM, Ken Foskey kfos...@tpg.com.au wrote:
 On Thu, 2011-03-03 at 12:36 +0100, Markus Jelsma wrote:
 Here's a complete example
 http://wiki.apache.org/solr/UpdateXmlMessages#Passing_commit_parameters_as_part_of_the_URL

 I should have been clearer.   A rich text document,  XML I can make work
 and a script is in the example docs folder

 http://wiki.apache.org/solr/ExtractingRequestHandler

 I also read the solr 1.4 book and tried samples in there,   could not
 make them work.
[...]

Please provide details on what exactly is not working for you, and the
corresponding error message from the Solr logs. E.g., something like
I tried posting ABC document to Solr, using XYZ commands, and
include the part from the Solr logs relating to the exception that you
get. After that, further details might be needed, but without the above
it is nigh impossible to guess at what you are trying.

Regards,
Gora


Re: adding a document using curl

2011-03-03 Thread Gora Mohanty
On Thu, Mar 3, 2011 at 5:31 PM, pankaj bhatt panbh...@gmail.com wrote:
 Hi All,
       is there any Custom open source SOLR ADMIN application like what
 lucid imagination provides in its distribution.
       I am trying to create thing, however thinking it would be a
 reinventing of wheel.

       Request you to please redirect me, if there is any open source
 application that can be used.
       Waiting for your answer.
[...]

Please do not hijack an existing thread, but start a new one if
you want to discuss a new topic. On Hoss' behalf :-)
http://people.apache.org/~hossman/#threadhijack

Regards,
Gora


Re: adding a document using curl

2011-03-03 Thread Jayendra Patil
If you are using the ExtractingRequestHandler, you can also try using
the stream.file or stream.url.

e.g. curl 
http://localhost:8080/solr/core0/update/extract?stream.file=C:/777045.zipliteral.id=777045literal.title=Testcommit=true;

More detailed explaination @
http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Content-Extraction-Tika

The literal prefix attributes with normal fields and the content
extracted from the document is stored in the text field by default

Regards,
Jayendra

On Thu, Mar 3, 2011 at 7:16 AM, Gary Taylor g...@inovem.com wrote:
 As an example, I run this in the same directory as the msword1.doc file:

 curl
 http://localhost:8983/solr/core0/update/extract?literal.docid=74literal.type=5;
 -F file=@msword1.doc

 The type literal is just part of my schema.

 Gary.


 On 03/03/2011 11:45, Ken Foskey wrote:

 On Thu, 2011-03-03 at 12:36 +0100, Markus Jelsma wrote:

 Here's a complete example

 http://wiki.apache.org/solr/UpdateXmlMessages#Passing_commit_parameters_as_part_of_the_URL

 I should have been clearer.   A rich text document,  XML I can make work
 and a script is in the example docs folder

 http://wiki.apache.org/solr/ExtractingRequestHandler

 I also read the solr 1.4 book and tried samples in there,   could not
 make them work.

 Ta