Writing and searching same time

2006-11-29 Thread Java Programmer
Hello, I have trouble with writing and searching on lucene index same time, all I did so far is making a class which has 2 methods: private String indexLocation; public void addDocument(int id,String title, String body) throws IOException{ IndexWriter indexWriter = new

[ANN]VTD-XML 1.8

2006-11-29 Thread Jimmy Zhang
Version 1.8 of VTD-XML is now released. The new features are: ·XMLModifier is a easy to use class that takes advantage of the incremental update capability offered by VTD-XML ·XPath built-in functions are now almost complete ·This release added encoding support for

Re: Writing and searching same time

2006-11-29 Thread Simon Willnauer
On 11/29/06, Java Programmer [EMAIL PROTECTED] wrote: Hello, I have trouble with writing and searching on lucene index same time, all I did so far is making a class which has 2 methods: private String indexLocation; public void addDocument(int id,String title, String body) throws IOException{

Cached Hits / closing IndexSearcher after add/delete w/IndexModifier

2006-11-29 Thread Eric Brown
I'm using lucene as a backend for my webservices that provide add, remove and search operations. When I add or remove documents via IndexModifier, I believe I'm supposed to close the IndexSearcher I use for query requests. However, I cache Hits and I believe the javadocs indicate closing

RE: Syns2Index utility: version of Lucene and Java

2006-11-29 Thread Risov, Maria
Chris, Thanks so much both for the pointer and the sanity check! Oddly enough, I read the same Syns2Index piece of documentation as you suggested very early in the search process. What I did get wrong was the actual download package, not realizing that *.java and *.class files would not be

Re: Cached Hits / closing IndexSearcher after add/delete w/IndexModifier

2006-11-29 Thread Yonik Seeley
On 11/29/06, Eric Brown [EMAIL PROTECTED] wrote: I'm using lucene as a backend for my webservices that provide add, remove and search operations. When I add or remove documents via IndexModifier, I believe I'm supposed to close the IndexSearcher I use for query requests. However, I cache Hits

Re: Cached Hits / closing IndexSearcher after add/delete w/IndexModifier

2006-11-29 Thread Eric Brown
Hi Yonik, On Nov 29, 2006, at 11:16 AM, Yonik Seeley wrote: On 11/29/06, Eric Brown [EMAIL PROTECTED] wrote: [snip] Also, should I keep one IndexModifier open for the life of my service/ application or should I open and close it when I get new requests to add or remove documents? (I don't

Re: Cached Hits / closing IndexSearcher after add/delete w/IndexModifier

2006-11-29 Thread Yonik Seeley
On 11/29/06, Eric Brown [EMAIL PROTECTED] wrote: IndexModifier currently has very low performance with mixed adds and deletes. You can keep the same one over the lifetime of the app though. Assuming I call flush() after every operation (they won't be that frequent), if I don't call close()

Re: Cached Hits / closing IndexSearcher after add/delete w/IndexModifier

2006-11-29 Thread Yonik Seeley
On 11/29/06, Yonik Seeley [EMAIL PROTECTED] wrote: On 11/29/06, Eric Brown [EMAIL PROTECTED] wrote: IndexModifier currently has very low performance with mixed adds and deletes. You can keep the same one over the lifetime of the app though. Assuming I call flush() after every operation

Re: Cached Hits / closing IndexSearcher after add/delete w/IndexModifier

2006-11-29 Thread Mark Miller
If you haven't seen the following option you might want to check it out. It uses reference counting to keep track of writers/searchers/etc(I think solr does as well). Has worked great for everything I have thrown at it other than need some tweaks to its multisearcher support. Also is a good

Re: BUG ? - lucene multisearcher / sorting

2006-11-29 Thread Daniel Naber
On Tuesday 28 November 2006 23:09, Kai R. Emde wrote: we have one problem with the sort routine. We use the multisearcher function over severall index. Does that also happens when you're not using MultiSearcher? Could you post a small test case that demonstrates this problem? To my knowledge,

Re: Caused by: java.io.IOException: The handle is invalid

2006-11-29 Thread Michael McCandless
Michael McCandless wrote: Van Nguyen wrote: I'm running this on Windows 2003 server (NTFS). The Java VM version is 1.5.0_06. This exception is not consistent, but it is not intermittent either. It does not throw it at any particular point while rebuilding the index, but it will throw this