[jira] Commented: (LUCENE-639) [PATCH] Slight performance improvement for readVInt() of IndexInput

2006-08-01 Thread Johan Stuyts (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-639?page=comments#action_12424769 ] Johan Stuyts commented on LUCENE-639: - Yonik, I think it is possible to make a reasonable assumption about the distribution of the vints. Lucene stores deltas

[jira] Updated: (LUCENE-639) [PATCH] Slight performance improvement for readVInt() of IndexInput

2006-08-01 Thread Johan Stuyts (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-639?page=all ] Johan Stuyts updated LUCENE-639: Attachment: ReadVIntPerformanceMain.java Source for performance test. > [PATCH] Slight performance improvement for readVInt() of IndexInput > -

[jira] Updated: (LUCENE-639) [PATCH] Slight performance improvement for readVInt() of IndexInput

2006-08-01 Thread Johan Stuyts (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-639?page=all ] Johan Stuyts updated LUCENE-639: Attachment: readVInt performance results.pdf Results of running the test. > [PATCH] Slight performance improvement for readVInt() of IndexInput > -

[jira] Created: (LUCENE-643) Error when tried to index with IndexWriter on Luncene 2.0

2006-08-01 Thread sherin george (JIRA)
Error when tried to index with IndexWriter on Luncene 2.0 - Key: LUCENE-643 URL: http://issues.apache.org/jira/browse/LUCENE-643 Project: Lucene - Java Issue Type: Bug Affects Versi

Re: The handle is invalid

2006-08-01 Thread Erik Hatcher
On Jul 31, 2006, at 11:34 PM, zhu jiang wrote: When I query, I got this exception:The handle is invalid. What should I do? You should give us a much more complete error message, including the stack trace. :) Erik -

[jira] Commented: (LUCENE-643) Error when tried to index with IndexWriter on Luncene 2.0

2006-08-01 Thread Grant Ingersoll (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-643?page=comments#action_12424828 ] Grant Ingersoll commented on LUCENE-643: Can you please provide more information? Line numbers for the stack trace, the code used to setup. A nice JUnit

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Hi Erik, I use multi-threads to add lots of documents while querying. At the begining,the query result is right, but after a while, when I query again, the exception thrown.Here is the stack trace: java.io.IOException: invalid handle at java.io.RandomAccessFile.seek(Native Method) at org.apac

Re: The handle is invalid

2006-08-01 Thread Simon Willnauer
Could be the "java.lang.IllegalArgumentException: Argument cannot be null" the cause of your problem. Rootcauses of exceptions are always the bottom aren't they? simon On 8/1/06, zhu jiang <[EMAIL PROTECTED]> wrote: Hi Erik, I use multi-threads to add lots of documents while querying. At

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Hi Simon, I have stepped into the program. The cause of the null argument is that when I get the hits object after one query, the method of Hits.id throws exceptions. The essential cause is the invalid handle. What should I do? 2006/8/2, Simon Willnauer <[EMAIL PROTECTED]>: Could be the "j

Re: [jira] Commented: (LUCENE-639) [PATCH] Slight performance improvement for readVInt() of IndexInput

2006-08-01 Thread Chris Hostetter
: Yonik, I think it is possible to make a reasonable assumption about the : distribution of the vints. Lucene stores deltas between document IDs : instead of document IDs, and I guess (no data available) most : frequencies will be below 128. perhaps the best way to identify what "typical" assumpt

[jira] Commented: (LUCENE-643) Error when tried to index with IndexWriter on Luncene 2.0

2006-08-01 Thread Hoss Man (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-643?page=comments#action_12425105 ] Hoss Man commented on LUCENE-643: - also please bear in mind that if you are having dificulty getting somethign to work that you think should be fairly straight for

Re: The handle is invalid

2006-08-01 Thread Erik Hatcher
Are you perhaps closing IndexReader or IndexSearcher before or while navigating Hits? Erik On Aug 1, 2006, at 1:05 PM, zhu jiang wrote: Hi Erik, I use multi-threads to add lots of documents while querying. At the begining,the query result is right, but after a while, when I quer

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Yep, I close the IndexReader before navigating Hits. Isn't it permitted? 2006/8/2, Erik Hatcher <[EMAIL PROTECTED]>: Are you perhaps closing IndexReader or IndexSearcher before or while navigating Hits? Erik On Aug 1, 2006, at 1:05 PM, zhu jiang wrote: > Hi Erik, > >I use multi-t

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Hi Erik, It is really beacause of the IndexReader. I correct it and it's OK now. Thank a lot! Best Regards, Jiang 2006/8/2, zhu jiang <[EMAIL PROTECTED]>: Yep, I close the IndexReader before navigating Hits. Isn't it permitted? 2006/8/2, Erik Hatcher <[EMAIL PROTECTED]>: > Are you perha