On 4/10/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
> I'm refactoring a command-line application that indexes RDF data to
> index into Solr rather than directly into a Lucene index.
>
> In looking at the code, it looks like it'd be difficult to do this
> without actually doing an HTTP POST.  Or is there a clean way to
> leverage Solr's infrastructure without POSTing into it?  I don't even
> need Solr running while indexing.  Is this possible easily?  If so
> what API should I be using?

See the DocumentBuilder class for creating lucene Document objects
using the Solr schema.

You could add these Document objects to a Lucene index yourself, or
instantiate a SolrCore, and get it's UpdateHandler.

Hmmm, it looks like there isn't a getUpdateHandler() on the SolrCore...
So two options:
  - add a SolrCore.getUpdateHandler() method
  - add a SolrCore.update(UpdateCommandc cmd) method

-Yonik

Reply via email to