lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cocula Remi" <rcoc...@sopragroup.com>
Subject RE: need info for database based Lucene but not flat file
Date Tue, 27 Apr 2004 10:21:48 GMT
As lucene implements its own concept of document it is not dedicated to index a particular
type of data source.
It's up to you to write a tool that is able to browse your database and then submit the data
as Lucene documents to the Lucene indexer.

For example if your database contains a "customer" entity and you want to index all informations
about these customers, you can create a module that will perform a select on the customer
table an for each row  returned create un Lucene Document and then add it to the indexWriter.
It is recommended that your Lucene Document contains a keyword Field  that represent the unique
id of a customer in the database.

As a first step you should be familiar with the concept of Document and Field. See Lucene
short intro documentation.


-----Message d'origine-----
De : Yukun Song [mailto:yukunix@mooter.com]
Envoyé : mardi 27 avril 2004 02:35
À : lucene-user@jakarta.apache.org
Objet : need info for database based Lucene but not flat file


As known, currently Lucene uses flat file to store information for
indexing. 

Any people has idea or resources for combining database (Like MySQL or
PostreSQL) and Lucene instead of current flat index file formats?

Regards,

Yukun Song



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


---------------------------------------------------------------------
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