Re: ClassCastException when writing to index writer

2008-10-06 Thread Edwin Lee
tells me that there is something wrong with Lucene build file that > > causes this problem, but I have no idea what it could be. In Lucene's > > common-build.xml, I changed the 1.4 properties to 1.6 propreties but still > > to no avail. > > > >

Re: ClassCastException when writing to index writer

2008-10-06 Thread Edwin Lee
> >package that I have downloaded (some sort of incompatibility?). I will > try > >to recompile the lucene package in my own environment and see if I can > fix > >the problem. > > > > > > On Sat, Oct 4, 2008 at 2:21 AM, Edwin Lee <[EMAIL PROTE

RE: Memory eaten up by String, Term and TermInfo?

2008-10-06 Thread Edwin Lee
Hi, Probably off-topic, but just like to plug a bit on my blog post here: http://tinyurl.com/4vytcc :p (incidentally, Java GC is one of my favourite topics) It's not very detailed, but i would like to think it's a good place to start reading... Just like to point out a couple of things: 1. If yo

Re: ClassCastException when writing to index writer

2008-10-03 Thread Edwin Lee
i think, very likely, you have another copy of java.util.Vector loaded, and this one tries to be too clever with its implementation of clone (instantiate a new Vector instance) instead of delegating to its super class (Object). HTH, Edwin --- Chris Hostetter <[EMAIL PROTECTED]> wrote: > > :

Re: ClassCastException when writing to index writer

2008-10-03 Thread Edwin Lee
Hi Paul, The clone() in SegmentInfos is correct. The best practice of clone is to delegate the clone to the super class (if you look at the source code for Vector, it too delegates to its super class, which is the Object) to create a shallow copy, and then do a cloning of each of its mutable field

RE: How to Retrieve Found Term?

2008-04-22 Thread Edwin Lee
Hi Karl, Thanks for the suggestions, i would be glad to contribute back to the project. i'm not too familiar with the inner workings of Lucene though; how does such a functionality feature in a Query implementation? My naive interpretation, when i first got hold of Lucene, is that Query is wha

RE: How to Retrieve Found Term?

2008-04-20 Thread Edwin Lee
Thanks, Edwin > Date: Sat, 19 Apr 2008 22:01:17 +0200 > From: [EMAIL PROTECTED] > To: java-user@lucene.apache.org > Subject: Re: How to Retrieve Found Term? > > Edwin Lee skrev: >> Hi all, >> >> i'm using Lucene 2.3.1. What i'm trying to

How to Retrieve Found Term?

2008-04-19 Thread Edwin Lee
Hi all, i'm using Lucene 2.3.1. What i'm trying to do seems straightforward enough (to me), but i just can't find the method to do so. Let's say i'm doing a PhraseQuery of the phrase "apples and oranges" with a non-zero slop value, and it returns, e.g., 20 Hits. Because i'm using non-zero slo