lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pasha Bizhan" <fc...@ok.ru>
Subject RE: Lucene wiht Database??
Date Wed, 15 Oct 2003 20:15:22 GMT
Hi,

> From: Garg Raman (SDinc) [mailto:ramang@smartdatainc.com] 

> My problem is I can't found the method on How to Integrate 
> Lucene with a Database table. Please give any advice. Thanks 
> in Advance

You can store the unique id in the index. Also you can store in the
index all info for results.
For example(sorry for C# syntax):

 Field.UnIndexed("id", id );
 Field.UnIndexed("title",title_str);
 Field.UnIndexed("description",description_str);
 Field.Text("value",completeValue);

We search by "value field" and show "title" and "description" fields in
results without database connection.
Also we have "see detail" link with "id" field as  parameter of link. 
Example:
Title: Lucene
Descriptoon: The full text search engine
Detail: http://lucene.net/detail?value=12345

12345 - document id from database.

We do not store real value int the index, only index it.

Pasha
http://www.sourceforge.net/projects/lucenedotnet



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message