MultiReader.isCurrent() wrong behavior

2006-08-30 Thread Volodymyr Bychkoviak
StandardAnalyzer(), create); Document document = new Document(); document.add(new Field(data, string, Store.YES, Index.TOKENIZED)); iw.addDocument(document); iw.close(); } } //-end -TestMultiReaderIsCurrent.java -- -- regards, Volodymyr Bychkoviak

[jira] Commented: (LUCENE-415) Merge error during add to index (IndexOutOfBoundsException)

2006-06-22 Thread Volodymyr Bychkoviak (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-415?page=comments#action_12417314 ] Volodymyr Bychkoviak commented on LUCENE-415: - Yonik, is this right code? if (file.length() == 0) { // This can happen if there was a previous crash

[jira] Commented: (LUCENE-415) Merge error during add to index (IndexOutOfBoundsException)

2006-06-22 Thread Volodymyr Bychkoviak (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-415?page=comments#action_12417315 ] Volodymyr Bychkoviak commented on LUCENE-415: - moreover FSDirectory.createDirectory() which calls FSIndexOutput constructor already has a check for file

[jira] Commented: (LUCENE-521) Documents do not get added from RAMDirectory to FSDirectory if documents is less than 10.

2006-03-16 Thread Volodymyr Bychkoviak (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-521?page=comments#action_12370737 ] Volodymyr Bychkoviak commented on LUCENE-521: - You are not closing indexWriter. IndexWriter should be closed to flush cached documents... Documents do not get

[jira] Commented: (LUCENE-521) Documents do not get added from RAMDirectory to FSDirectory if documents is less than 10.

2006-03-16 Thread Volodymyr Bychkoviak (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-521?page=comments#action_12370740 ] Volodymyr Bychkoviak commented on LUCENE-521: - you are not closing ramWriter. It also should be closed. 10 is default value of maxBufferedDocs. i.e. number

Re: getting rid of 'empty' segments

2006-01-20 Thread Volodymyr Bychkoviak
we should not only delete segment but remove it from index structure (i.e. SegmentInfos). Volodymyr Bychkoviak wrote: followup: in SegmentReader.doCommit() we can add check if (deletedDocs.count()==deletedDocs.size()) { //delete this segment } deleting segment can be done by code

Re: getting rid of 'empty' segments

2006-01-19 Thread Volodymyr Bychkoviak
SegmentReader use this code? Does it all make sense? Volodymyr Bychkoviak wrote: if index is updated continuously then in some moment we will have one or more segments in index that have all documents deleted. As long as deleting happens in IndexReader can we delete such 'empty' segments

IndexWriter.addIndexes(Directory[] dirs)

2005-12-12 Thread Volodymyr Bychkoviak
functionality Patch attached here to discuss it first (should I post it directly to jira?) -- regards, Volodymyr Bychkoviak Index: D:/programming/projects/componence/lucene-dev/src/java/org/apache/lucene/index/IndexWriter.java

[jira] Commented: (LUCENE-476) BooleanQuery add public method that returns number of clauses this query

2005-12-05 Thread Volodymyr Bychkoviak (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-476?page=comments#action_12359321 ] Volodymyr Bychkoviak commented on LUCENE-476: - sorry for unfinished description add public method getClausesCount() to BooleanQuery that returns number

[jira] Updated: (LUCENE-476) BooleanQuery add public method that returns number of clauses this query

2005-12-05 Thread Volodymyr Bychkoviak (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-476?page=all ] Volodymyr Bychkoviak updated LUCENE-476: Attachment: BooleanQuery.diff BooleanQuery add public method that returns number of clauses this query

Re: [jira] Commented: (LUCENE-476) BooleanQuery add public method that returns number of clauses this query

2005-12-05 Thread Volodymyr Bychkoviak
Type: Improvement Components: Search Reporter: Volodymyr Bychkoviak Attachments: BooleanQuery.diff BooleanQuery add public method getClausesCount() that returns number of clauses this query. current ways of getting clauses count are: 1). int clausesCount = booleanQuery.getClauses

[jira] Created: (LUCENE-475) RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently.

2005-12-01 Thread Volodymyr Bychkoviak (JIRA)
Type: Improvement Components: Store Reporter: Volodymyr Bychkoviak recently I found that RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently. files from source index are read entirely intro memory as single byte array which is after all is thrown away

[jira] Commented: (LUCENE-475) RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently.

2005-12-01 Thread Volodymyr Bychkoviak (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-475?page=comments#action_12359036 ] Volodymyr Bychkoviak commented on LUCENE-475: - Oh, I didn't described my solution... Solution is simle: use 1k buffer to copy files from source index to ram files

Re: missing class in svn

2005-11-17 Thread Volodymyr Bychkoviak
be remove for now. Luc -Original Message- From: Volodymyr Bychkoviak [mailto:[EMAIL PROTECTED] Sent: donderdag 17 november 2005 11:46 To: java-dev@lucene.apache.org Subject: Re: missing class in svn I found problem. Iterable is part of 1.5 jdk but AFAIK lucene is compatible with 1.4

Question about BooleanQuesry.maxClauseCount

2005-11-09 Thread Volodymyr Bychkoviak
appropriate value inside application but if I want to test same query in Luke I get TooManyClausesException. -- regards, Volodymyr Bychkoviak