Re: Searching Subversion comments:

2010-03-08 Thread Jacob Rhoden
I am not trying to evangelise git, but more just curious if you guys have ever looked at switching to a distributed source control system. The branching / merging capabilities mean you really don't have to use patches to collect changes from non trusted parties. See this google tech talk if you

Re: Lucene as a primary datastore

2010-01-20 Thread Jacob Rhoden
>> For additional commands, e-mail: java-user-h...@lucene.apache.org >> >> > > - > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...

Re: Hopfully simple question constructing BooleanQuery

2009-12-14 Thread Jacob Rhoden
Exactly what I was trying to do. Thanks. On 15/12/2009, at 4:25 PM, TCK wrote: How about the following? BooleanQuery bq1 = new BooleanQuery(); bq1.add(new PrefixQuery(new Term("heading",word)),BooleanClause.Occur.SHOULD); bq1.add(new PrefixQuery(new Term("attribute",word)),BooleanClause.Occur.

Hopfully simple question constructing BooleanQuery

2009-12-14 Thread Jacob Rhoden
es plus all records where "subject_id" matches. How do I make it return documents that match "heading" or "attribute" within the "subject_id" subset? Kind regards, Jacob Rhoden Information Technology Services, The University of Melbourne Email: jrho...@unimelb.edu.au Phone: +61 3 8344 2884 Mobile: +61 4 1095 7575

Re: Can Lucene unite multiple instances run as one ?

2009-11-15 Thread Jacob Rhoden
to smaller indexes and use a group of machines to work as one is more flexible and faster compare to one huge ram machine. Any suggestions ? beside more rams. 2009/11/16 Jacob Rhoden : Not sure how large your index is, but it might be easier (if possible to increase your memory) than to develo

Re: Can Lucene unite multiple instances run as one ?

2009-11-15 Thread Jacob Rhoden
Not sure how large your index is, but it might be easier (if possible to increase your memory) than to develop a fairly complicated alternative strategy. On 16/11/2009, at 2:12 PM, Wenbo Zhao wrote: Hi, all I'm facing a large index, on a x86 win platform which may not have big enough jvm h

Re: Wrapping IndexSearcher so that it is safe?

2009-11-12 Thread Jacob Rhoden
On 13/11/2009, at 9:19 AM, Michael McCandless wrote: On Wed, Nov 11, 2009 at 7:33 PM, Jacob Rhoden > wrote: The source code for SearcherManager is even downloadable for free: http://www.manning.com/hatcher3/LIAsourcecode.zip The example source code does some things that is beyond my le

Re: Wrapping IndexSearcher so that it is safe?

2009-11-12 Thread Jacob Rhoden
On 12/11/2009, at 8:42 PM, Michael McCandless wrote: On Wed, Nov 11, 2009 at 7:33 PM, Jacob Rhoden wrote: The source code for SearcherManager is even downloadable for free: http://www.manning.com/hatcher3/LIAsourcecode.zip The example source code does some things that is beyond my level

Re: Wrapping IndexSearcher so that it is safe?

2009-11-11 Thread Jacob Rhoden
lass is considerably more extensive and handles the edge cases as I remember it Best Erick On Wed, Nov 11, 2009 at 5:41 PM, Jacob Rhoden wrote: I knew I would have overlooked something, thanks for the help! On 12/11/2009, at 9:21 AM, Uwe Schindler wrote: simply do not catch a

Re: Wrapping IndexSearcher so that it is safe?

2009-11-11 Thread Jacob Rhoden
I knew I would have overlooked something, thanks for the help! On 12/11/2009, at 9:21 AM, Uwe Schindler wrote: simply do not catch and rethrow the IOException, instead put release in a finally block and let the IOException automatically go upwards. this.retain();

Wrapping IndexSearcher so that it is safe?

2009-11-11 Thread Jacob Rhoden
I am pondering a way to allow closing of an index searcher and releasing the pointer to it so that it automatically cleans up by itself when all threads stop using the index searcher. Inspired by the Objective C retain/release model, what do you think about this? Basically when threads star

How to safely close Index objects?

2009-11-10 Thread Jacob Rhoden
Hi Guys, Given a class with two static variables, is the following safe? ie If I call "close" while something else is using the objects, do the objects simply hold a flag saying they need to be destroyed once the objects are finished being used, or do they not track if anything is current

Multiple threads under tomcat

2009-11-10 Thread Jacob Rhoden
Apologies if this info is already somewhere, but google cant find it (: I am assuming the following code is completely thread safe: // Called from a servlet when a user action results in the index needing to be updated public static void rebuildIndex() { FSDirectory dir = new NIOFSDirecto