You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by raygrrr <ra...@gmail.com> on 2011/07/29 11:43:17 UTC

indexing question, please have a look :)

Hi experts,

I use lucene to only index file's last updated date and path, as normally I
just need to check what files have been modifed/added from a date range. so
I am planning to do indexing daily - but I am wondering whether there is a
better way for indexing as everytime when I do indexing I need to do it for
all the files again, is that the correct way to do indexing?

I hope my question make sense :)

Many thanks,
Ray

--
View this message in context: http://lucene.472066.n3.nabble.com/indexing-question-please-have-a-look-tp3209149p3209149.html
Sent from the Lucene - General mailing list archive at Nabble.com.

RE: indexing question, please have a look :)

Posted by raygrrr <ra...@gmail.com>.
Thanks Jason, my basic need is to search for Date and Time ranges of files.
For instance, I'd like to find all files on my local file system which were
modified in April 2011. 

My concern is that I don't know what files are new or modified when indexing
a directory. 



Many thanks for your help!

--
View this message in context: http://lucene.472066.n3.nabble.com/indexing-question-please-have-a-look-tp3209149p3214763.html
Sent from the Lucene - General mailing list archive at Nabble.com.

RE: indexing question, please have a look :)

Posted by "Sendros, Jason" <Ja...@VerizonWireless.com>.
Keeping track of modifications will have to occur outside of Lucene.
What you could do is check the file's metadata, particularly creation
date or modification date, and only index (or reindex) files based on
these values.

For example:
1. Created today: Fresh index
2. Created yesterday, modified today: reindex
3. Created yesterday, modified yesterday: no indexing needed

-----Original Message-----
From: raygrrr [mailto:raygrrr@gmail.com] 
Sent: Sunday, July 31, 2011 10:53 PM
To: general@lucene.apache.org
Subject: RE: indexing question, please have a look :)

Thanks Jason, my basic need is to search for Date and Time ranges of
files.
For instance, I'd like to find all files on my local file system which
were
modified in April 2011. 

My concern is that I don't know what files are new or modified when
indexing
a directory. 



Many thanks for your help!

--
View this message in context:
http://lucene.472066.n3.nabble.com/indexing-question-please-have-a-look-
tp3209149p3214763.html
Sent from the Lucene - General mailing list archive at Nabble.com.