Re: need info for database based Lucene but not flat file

2004-04-27 Thread Erik Hatcher
There is a Berkeley DB implementation of Lucene's Directory in the 
jakarta-lucene-sandbox repository.

	Erik

On Apr 26, 2004, at 8:35 PM, Yukun Song wrote:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: need info for database based Lucene but not flat file

2004-04-27 Thread Cocula Remi
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:[EMAIL PROTECTED]
Envoyé : mardi 27 avril 2004 02:35
À : [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need info for database based Lucene but not flat file

2004-04-27 Thread Doug Cutting
Yukun Song wrote:
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?
A few folks have implemented an SQL-based Lucene Directory, but none has 
yet been contributed to Lucene.  Hopefully one will be soon.

For some discussion of this, see messages on SQLDirectory in the mail 
archives:

http://nagoya.apache.org/eyebrowse/SearchList?listId=listName=lucene-user%40jakarta.apache.orgsearchText=SQLDirectorydefaultField=subjectSearch=Search

Doug

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: need info for database based Lucene but not flat file

2004-04-27 Thread Incze Lajos
On Tue, Apr 27, 2004 at 09:15:05AM -0700, Doug Cutting wrote:
 Yukun Song wrote:
 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?
 
 A few folks have implemented an SQL-based Lucene Directory, but none has 
 yet been contributed to Lucene.  Hopefully one will be soon.
 
 For some discussion of this, see messages on SQLDirectory in the mail 
 archives:
 
 http://nagoya.apache.org/eyebrowse/SearchList?listId=listName=lucene-user%40jakarta.apache.orgsearchText=SQLDirectorydefaultField=subjectSearch=Search
 
 Doug

Could anybody summarize what would be the technical pros/cons of a DB-based
directory over the flat files? (What I see at the moment is that for some
- significant? - perfomence penalty you'll get an index available over the
network for multiple lucene engines -- if I'm right.)

incze

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need info for database based Lucene but not flat file

2004-04-27 Thread Doug Cutting
Incze Lajos wrote:
Could anybody summarize what would be the technical pros/cons of a DB-based
directory over the flat files? (What I see at the moment is that for some
- significant? - perfomence penalty you'll get an index available over the
network for multiple lucene engines -- if I'm right.)
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1344168

Doug

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: need info for database based Lucene but not flat file

2004-04-27 Thread Incze Lajos
On Tue, Apr 27, 2004 at 02:46:22PM -0700, Doug Cutting wrote:
 Incze Lajos wrote:
 Could anybody summarize what would be the technical pros/cons of a DB-based
 directory over the flat files? (What I see at the moment is that for some
 - significant? - perfomence penalty you'll get an index available over the
 network for multiple lucene engines -- if I'm right.)
 
 http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1344168
 
 Doug

Thanks.

incze

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]