lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Jha <shanuu....@gmail.com>
Subject Re: Solr Java Client
Date Sun, 15 Sep 2013 02:32:53 GMT
Question is not clear to me.  Please be more elaborative in your query. Why do u want to store
index to DB tables?

Rgds
AJ

On 15-Sep-2013, at 7:20, Baskar Sikkayan <baskar.sks@gmail.com> wrote:

> How to add index to 3 diff tables from java ...
> 
> 
> On Sun, Sep 15, 2013 at 6:49 AM, Amit Jha <shanuu.jha@gmail.com> wrote:
> 
>> 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.sks@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
>> 

Mime
View raw message