Add a field called "source" in schema.xml and value would be your table names.
Rgds AJ On 15-Sep-2013, at 5:38, Baskar Sikkayan <baskar....@gmail.com> wrote: > Hi, > I am new to Solr and trying to use Solr java client instead of using the > Data handler. > Is there any configuration i need to do for this? > > I got the following sample code. > > SolrInputDocument doc = new SolrInputDocument(); > > doc.addField("cat", "book"); > doc.addField("id", "book-" + i); > doc.addField("name", "The Legend of the Hobbit part " + i); > server.add(doc); > server.commit(); // periodically flush > > I am confused here. I am going to index 3 different tables for 3 different > kind of searches. Here i dont have any option to differentiate 3 kind of > indexes. > Am i missing anything here. Could anyone please shed some light here? > > Thanks, > Baskar.S