Re: Update lucene index

2010-10-11 Thread Anshum
ParallelReader though theoretically sounds useful, I doubt if how much the overhead of maintaining and synchronizing the document ids would be. I haven't used it so far, perhaps someone who's used the ParallelReader for such a purpose on production environment/scale may help you. -- Anshum Gupta h

Re: Update lucene index

2010-10-11 Thread Nilesh Vijaywargiay
Anshum, Yea, I would like to do what you mentioned. The source won't be available at later time and also other reason I understand is that if I delete and add a document, it would get a different ID and would return inconsistent results later if I search index built on this documents. Does that mak

Re: Update lucene index

2010-10-11 Thread Anshum
So what you essentially want is still being able to update a document. To update a particular field in the lucene doc, you'd need to mark that field as updated/deleted and create a new document with new field information (that somehow gets merged while searching or gets taken care of in a similar m

Update lucene index

2010-10-11 Thread Nilesh Vijaywargiay
Hi Group, I understand that the process of updating a document in lucene index is to delete the document and add it again. But I do not want to delete the document. I was thinking of a approach where I can create a new index with only the fields I want to update. And then may be I can some how me

Re: Why Lucene in Action, 2nd Edition isn't available on sale (new) on Amazon UK?

2010-10-11 Thread Ian Lea
I don't know why Amazon don't have it new. You can buy it from Blackwell's. http://bookshop.blackwell.co.uk/jsp/id/Lucene_in_Action/9781933988177 -- Ian. On Tue, Oct 12, 2010 at 6:24 AM, Paolo Castagna wrote: > Hi, > I am curious. Do you know why the book Lucene in Action, Second Edition > i

Re: integrating RAMDirectory in FSDirectory or other way round

2010-10-11 Thread Ian Lea
Start by reading the javadocs for RAMDirectory. -- Ian. On Tue, Oct 12, 2010 at 6:39 AM, wrote: > > I am also having a similar requirement .But its other way round. > > Basically ,I have indexes in FSDirectory and which is transferred to > another machine on regular basis. But now for the rea

Re: integrating RAMDirectory in FSDirectory or other way round

2010-10-11 Thread suman.holani
I am also having a similar requirement .But its other way round. Basically ,I have indexes in FSDirectory and which is transferred to another machine on regular basis. But now for the reason of faster searches, it would be better to copy the indexes onto RAM. (RAMDirectory). Not sure of how it c

Why Lucene in Action, 2nd Edition isn't available on sale (new) on Amazon UK?

2010-10-11 Thread Paolo Castagna
Hi, I am curious. Do you know why the book Lucene in Action, Second Edition is not available on sale (as new) on Amazon UK? http://www.amazon.co.uk/Lucene-Action-Michael-McCandless/dp/1933988177 Do you know where else I could buy it in UK? Thank you, Paolo --

integrating RAMDirectory in FSDirectory

2010-10-11 Thread Yakob
well actually I am doing a kind of a thesis regarding information retrieval.and my tutor wanted me to be able to create a program that firstly index a document in memory using RAMDirectory and then flushing it to disk using FSDirectory periodically. I was having a hard time implementing it in my so

Re: flushing index

2010-10-11 Thread Erick Erickson
It's a good idea to start a new thread when asking a different question, see: http://people.apache.org/~hossman/#threadhijack I have to ask why you want to integrate the RAM directory. If you're using it to speed up indexing, you're probably making

Re: flushing index

2010-10-11 Thread Yakob
On 9/29/10, Erick Erickson wrote: > Nope, never used jNotify, so I don't have any code handy... > > Good luck! > Erick > so I did try JNotify but there is seems to be some bug in it that I find it hards to integrate in my lucene source code.so I had to try a looping option instead. http://stacko

Re: Build environment

2010-10-11 Thread Pradeep Singh
It worked with Ant 1.7.1 and maven-ant-tasks 2.0.10 and it actually built everything - lucene, solr and analyzers (with ant generate-maven-artifacts at the root). I had to add uniqueVersion="false" in artifact:deploy for the macro m2-deploy in lucene/common-build.xml to stop generating new artifact

RE: Build environment

2010-10-11 Thread Uwe Schindler
Use ant 1.7.x, 1.8 is not backwards compatible and parts of Lucene Build don't work (redefinition of property data types in 1.8,...). With this version the recent Maven-for-Ant 2.0.10 version should work. Please note that Lucene trunk does not build maven artifacts for the modules folder. Nor doe