Hi Shawn.

Unles you are doing complex pre-processing before indexing, you may want to
have a look at:
http://wiki.apache.org/solr/DataImportHandler#Usage_with_RDBMS

That should take care of it without any coding.

You may need to periodically do a HTTP GET to trigger the import.


Arcadius.

On Mon, Aug 15, 2011 at 11:25 PM, Shawn Heisey <s...@elyograg.org> wrote:

> Is there a simple way to get all the fields from a jdbc resultset into a
> bunch of SolrJ documents, which I will then send to be indexed in Solr?  I
> would like to avoid the looping required to copy the data one field at a
> time.  Copying it one document at a time would be acceptable, but it would
> be nice if there was a way to copy them all at once.
>
> Another idea that occurred to me is to add the dataimporter jar to my
> project and leverage it to do the heavy lifting, but I will need some
> pointers about what objects and methods to research.  Is that a reasonable
> idea, or is it too integrated into the server code to be used with SolrJ?
>
> Can anyone point me in the right direction?
>
> Thanks,
> Shawn
>
>


-- 
W: www.menelic.com
---

Reply via email to