Re: Why read past EOF

2012-02-02 Thread superruiye
eg,I implement IndexDeletionPolicy and the onCommit(): public void onCommit(List commits) { // Note that commits.size() should normally be 2 (if not // called by onInit above): int size = commits.size(); long present = System.

Re: Why read past EOF

2012-02-02 Thread superruiye
Thanks,you suggest me to creat a my IndexDeletionPolicy,I check KeepOnlyLastCommitDeletionPolicy.onCommit,it invoke CommitPoint.delete(),but it only : deleted = true; commitsToDelete.add(this); ,and the delete index file operation in other place. Is it useful that I postpone invoke

Re: PayloadNearQuery and AveragePayloadFunction

2012-02-02 Thread Peter Keegan
I don't quite follow what you're doing, but is it possible that your payloads are not on the desired terms when you indexed them? The first explanation shows that the matching document contained "luteinizing hormone" in both fields 'AbstractText' and 'AbstractTitle'. The average payload value was '

Re: Join between indexes

2012-02-02 Thread Arnon Mazza
Thanks, that's a very nice feature.   Would it also enable joining on the docId level, meaning that part of a document is kept in some index and another part of the same document is kept in another index ?   In the example that was given in the articles & comments link, that could be for instanc

RE: lucene-3.0.3

2012-02-02 Thread Prasad KVSH
Hi Everybody, lucene-3.0.3. will handle outlook files, DOCX and .EXLX files while searching a text?? We have taken indexfiles.java and searchfiles.java from lucene-3.0.3\src folder, it is working fine for PDF, txt, doc, excel, java, CSV files. Thanks Prasad

PayloadNearQuery and AveragePayloadFunction

2012-02-02 Thread shyama
Hi List Apologies for such a long message. I have tried to include everything, that you might need to know to answer my question. I am having difficulties understanding how or what AveragePayloadFunction is doing. Here is my example Title:Human|9 pineal|5 luteinizing hormone receptors. Text:The

Re: When does Query Parser do its analysis ?

2012-02-02 Thread Paul Taylor
On 02/02/2012 07:27, Doron Cohen wrote: In my particular case I add album catalogsno to my index as a keyword field , but of course if the cat log number contains a space as they often do (i.e. cad 6) there is a mismatch. Ive now changed my indexing to index the value as 'cad6' r