Hi Anshum, Thanks so much for the quick response! I think that pretty much covers it. I was worried that having to delete the document and re-add it simply because a date field has been updated would make my indexing quite slow.
Seems however that's not something I'll have to worry about. Thanks so much! Anshum-2 wrote: > > Hi Marquin, > So you have a field that you want to sort on, well thats pretty much a > straight task in lucene. > > <snip> > Sort sort = new Sort(); > sort.setSort(<sort field>, true/false); > </snip> > > http://lucene.apache.org/java/2_3_1/api/org/apache/lucene/search/Sort.html > * It would not really be taxing and frequent updates could be handled > smoothly. > * About updating a single field, there's no way to do so, you'd have to > you > delete and add a document. > * About creating a delta index, I've tried that approach and it kinda > works, > but then a lot also depends on your implementation and application setup. > Also, to clarify what I just mentioned, there's not really a way to create > a > field based split index in lucene, instead you might consider keeping all > updated docs on a seperate index and use a multisearcher or something to > search on the delta plus core index while searching (and also have a merge > policy for the delta to be merged with the core). > Hope this clarifies the doubt to some extent. :) > > > -- > Anshum Gupta > Naukri Labs! > http://ai-cafe.blogspot.com > > The facts expressed here belong to everybody, the opinions to me. The > distinction is yours to draw............ > > > On Sat, Aug 22, 2009 at 10:06 AM, marquinhocb > <marquinh...@hotmail.com>wrote: > >> >> Hello everyone. New here to Lucene, amazing product, but takes some time >> to >> wrap my head around it all heh. >> >> So I have a basic question regarding indices. I have a "document" with >> various fields (content, post date, last viewed). The majority of these >> fields are quite constant, but clearly the last viewed field would be >> updated quite often. I would like to be able to sort by "last viewed". >> >> My questions are: >> >> 1) Will it be taxing to Lucene if I have to constantly re-index a >> document >> just because the "last viewed" date has been updated? >> 2) Is there any way to just update the single field, so that the entire >> index doesn't have to be rebuilt? (I believe the answer to this one is >> "no") >> 3) Is there any sort of delta trick that can be done so that the "last >> viewed" property can be created in a separate index? >> >> Thanks in advance! >> -- >> View this message in context: >> http://www.nabble.com/Lucene-index-question-tp25090565p25090565.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> >> > > -- View this message in context: http://www.nabble.com/Lucene-index-question-tp25090565p25096044.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org