lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Index Builder
Date Mon, 06 Mar 2006 01:20:47 GMT

: I had a feeling that was the case.  So, I was thinking I could write a
: driver program that takes in my files and then calls the API directly.
: Is this doable?  How do you guys do it on your live site?  Do you do it
: all through HTTP requests or through a driver that calls the API?  I
: think I would prefer the API calls for bulk loading.  Where should I
: look for these?

Once upon a time, I agrued for having an robust update API, and a way to
write "updater plugins" that would run within the Solr JVM ... and I was
talked out of it in favor doing everything over HTTP.  So yeah ... that's
what I do: build/update entirely over HTTP.

>From what i remember of the internal update API, you could probably write
a new subclass of UpdateHandler that you register in the solrconfig.xml
which pulled most of the data from wherever you want -- but it would still
need to be triggered by (minimal) "<add>" messages over HTTP.

alternately, you could write your own Servlet with load-on-startup="true"
that used the internal update methods directly.




-Hoss


Mime
View raw message