From: <ma...@ga...> - 2005-02-21 09:06:03
|
Okay, thanks. The solution with two indexes sounds good. Updates will be made to "shadow index" and every now and then you switch indexes. I would use this for a web app, so I'd use an app-wide index. If I use in-memory indexes, for open IndexSearchers would I still have to wait for them to be closed, or can I just assign the "shadow-index" being the new app-wide index? Maybe I am thinking to complicated here ;-) > I think you can't... > ... but there is remote possibility I might be wrong, since I haven't > fully explored the entire source code yet. ;) > > anyway, > What you might need to do is find-delete (preferably by PK Keyword > identifier) the document that has changed and then Add new document > with new data. I used the procedure described in: > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=luc...@ja...&msgNo=6300 > > In addition, you also might wish to use RAMDirecotry for updates and > then "flush-combine" it on disk (or any other appropriate permanent > storage) index using: > AddIndexes(new Directory[] {oldIndexStorage, updateIndexStorage}) > method of new IndexWritter. > > Regards, > Ivan > > On Sun, 20 Feb 2005 14:18:51 +0100 (CET), ma...@ga... <ma...@ga...> > wrote: >> Alright thanks, >> >> I see how this works for new documents but what if a document (in my >> case >> database field) has changed. >> >> Can I tell dotlucene that a specific document (marked by some >> identifier, >> probably the PK of the db-field) has changed? >> >> Grtz, Max >> >> >> > You can. >> > >> > When Lucene index is built, you may delete and add documents to it as >> > you deem necessary. You may also Index.Optimize() every now or >> > then,... just to cleanup files a bit and compact everything in a >> > single index file. >> > >> > Regards, >> > Ivan >> > >> > On Fri, 18 Feb 2005 22:04:01 +0100 (CET), ma...@ga... >> <ma...@ga...> >> > wrote: >> >> Hi, >> >> >> >> I just downloaded the sample app and would like to use the dll to >> >> enhance >> >> my "No-Fulltext-Database" with dotlucene... >> >> >> >> Does anybody have some example code on how to accomplish this? >> >> >> >> For example, I want to store html-texts in the db, so I would have to >> >> index the extracted plain text of these texts with dotlucene and >> store >> >> the >> >> PrimaryKey of the database-field somewhere with the index >> information. >> >> >> >> On subsequent updates of the database I would have to update the >> index >> >> as >> >> well. >> >> Can I update the index for individual documents? >> >> >> >> Any help would be appreciated... >> >> >> >> Thanks, Max >> >> >> >> ------------------------------------------------------- >> >> SF email is sponsored by - The IT Product Guide >> >> Read honest & candid reviews on hundreds of IT Products from real >> users. >> >> Discover which products truly live up to the hype. Start reading now. >> >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> >> _______________________________________________ >> >> Dotlucene-developer mailing list >> >> Dot...@li... >> >> https://lists.sourceforge.net/lists/listinfo/dotlucene-developer >> >> >> > >> > >> > -- >> > [House-of-IX] -- Ivan Vedic Ai >> > ___________________________________ >> > Chief Engineer - Information Technology >> > dept: NegEntropic Continuum Dynamics >> > spec: Systems Engineering >> > ------------------------------------------------------------- >> > .:: ved...@gm... >> > .:: +386 40 202382 >> > >> > >> > ------------------------------------------------------- >> > SF email is sponsored by - The IT Product Guide >> > Read honest & candid reviews on hundreds of IT Products from real >> users. >> > Discover which products truly live up to the hype. Start reading now. >> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> > _______________________________________________ >> > Dotlucene-developer mailing list >> > Dot...@li... >> > https://lists.sourceforge.net/lists/listinfo/dotlucene-developer >> > >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Dotlucene-developer mailing list >> Dot...@li... >> https://lists.sourceforge.net/lists/listinfo/dotlucene-developer >> > |