You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by poojasreejith <po...@pivotsys.com> on 2007/10/25 19:35:07 UTC

lucene indexing doubts

hi,

Can anyone of you guide me, how to index into an already indexed folder.
Right now, I am deleting the indexed info and running the indexer again. I
dont want to do that. I want a method, how to append into the same folder
when new files are indexed. 

Is it possible? I couldn't find any solution for it.


Pooja
-- 
View this message in context: http://www.nabble.com/lucene-indexing-doubts-tf4692435.html#a13412076
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Re: lucene indexing doubts

Posted by Karl Wettin <ka...@gmail.com>.
26 okt 2007 kl. 06.31 skrev poojasreejith:

> I have a folder which contains  the indexed files. so, suppose if i  
> want to add one more indexed data into it, without deleting the  
> whole folder and performing  the indexing for all the files again.  
> I want it to do only that one file and add the index in the index  
> folder.

I'm sorry, I still have a hard time understanding what you are asking.

Is this the Lucene folder you are speaking of? Do you want to merge  
it with another index? Then take a look at the addIndexes methods in  
IndexWriter.

Or does this folder of yours simply contain files you have created an  
index of? You want to drop files in this folder and then figure out  
what files has been added since the last time you updated the index?  
Can you use the file timestamps? Index the filenames and search for  
them?


-- 
karl

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


Re: lucene indexing doubts

Posted by poojasreejith <po...@pivotsys.com>.
hi,
 thanks for your response. I think you hanven't got what my question is? I
will explain with an example. I have a folder which contains  the indexed
files. so, suppose if i want to add one more indexed data into it, without
deleting the whole folder and performing  the indexing for all the files
again. I want it to do only that one file and add the index in the index
folder. 

karl wettin-3 wrote:
> 
> 
> 25 okt 2007 kl. 19.35 skrev poojasreejith:
> 
>>
>> Can anyone of you guide me, how to index into an already indexed  
>> folder.
>> Right now, I am deleting the indexed info and running the indexer  
>> again. I
>> dont want to do that. I want a method, how to append into the same  
>> folder
>> when new files are indexed.
> 
> I'm not really sure I understand your question.
> 
> Are you looking for the IndexWriter.deleteDocument method?
> <http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/index/ 
> IndexWriter.html#updateDocument(org.apache.lucene.index.Term,% 
> 20org.apache.lucene.document.Document)>
> 
> Are you looking for a delta, what has been changed in the filesystem  
> since your last update? If you have no way of checking this, what  
> about iterating all files and searching for their filename? Of course  
> you will need to index the file name too.
> 
> I hope this helps.
> 
> 
> -- 
> karl
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/lucene-indexing-doubts-tf4692435.html#a13420712
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Re: lucene indexing doubts

Posted by Karl Wettin <ka...@gmail.com>.
25 okt 2007 kl. 19.35 skrev poojasreejith:

>
> Can anyone of you guide me, how to index into an already indexed  
> folder.
> Right now, I am deleting the indexed info and running the indexer  
> again. I
> dont want to do that. I want a method, how to append into the same  
> folder
> when new files are indexed.

I'm not really sure I understand your question.

Are you looking for the IndexWriter.deleteDocument method?
<http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/index/ 
IndexWriter.html#updateDocument(org.apache.lucene.index.Term,% 
20org.apache.lucene.document.Document)>

Are you looking for a delta, what has been changed in the filesystem  
since your last update? If you have no way of checking this, what  
about iterating all files and searching for their filename? Of course  
you will need to index the file name too.

I hope this helps.


-- 
karl

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