On Sat, Feb 26, 2011 at 9:10 PM, Derek Werthmuller
<dwert...@ctg.albany.edu> wrote:
> I've been working on this for a while an seem to hit a wall.  The error
> messages aren't complete enought to give guidance why importing a sample
> docbook document
> into solr is not working.
> I'm using the curl tool to post the xml file and receive a non error message
> but the document count doesn't increase and the *:* returns no results
> still.
[...]

Which curl tool? The post.sh included with Solr? You refer to a postfile.sh
below.

Unless I am missing something, it seems like you are trying to post
a standard XML file to Solr. You cannot do that. There are two ways
to proceed:
* Reformat the XML into Solr's format. See the .xml documents in
  the example/exampledocs directory of your Solr distribution, or see, e.g.,
  http://www.xml.com/pub/a/2006/08/09/solr-indexing-xml-with-lucene-andrest.html
* Write a DataImportHandler script with an XPathEntityProcessor. Please
  see http://wiki.apache.org/solr/DataImportHandler
> Load command results.
>
> $ ./postfile.sh
[...]

This is not the problem here, but the standard Solr post.sh takes filenames
to be posted as command-line arguments.

Regards,
Gora

Reply via email to