On 8/16/2011 11:23 AM, Erick Erickson wrote:
The problem with anything "automatic" is that I don't see how it could know
which fields in the document to map DB columns to. Unless you had
fields that exactly matched column names, it would be iffy...
I assume DIH actually does something like this, but don't know any way
of having SolrJ automagically do this.
At root these kinds of things don't generalize well, but that doesn't mean
that there's not a good case for doing this.
In my case, the Solr field names are in perfect sync with the database
field names. My DIH config doesn't mention any fields by name, it just
passes them as-is and lets the schema handle everything. I'm perfectly
OK with handling everything myself in my code, but if someone had
already invented the wheel, no sense in designing a new one. :)
Thanks for all your help, Erick.
Shawn