Re: deleting with sorting and max document

2011-09-15 Thread v . sevel
Hi, our application is indexing our logging events as documents. when the index reaches a limit, I want to delete the oldest 1 million events. since the number of events per day changes on a day to day basis, I cannot just delete blindly the last 3 days for instance. based on your different inp

Re: Converting from TermAttribute to CharTermAttribute

2011-09-15 Thread Paul Taylor
On 15/09/2011 11:12, Uwe Schindler wrote: Hi, In your incrementToken method, you differs in both implementations: The original one uses setTermBuffer(), but the new one only resizes the buffer, but never changes it. Thankyou, now working, changed to @Override public boolean incrementToken

RE: Converting from TermAttribute to CharTermAttribute

2011-09-15 Thread Uwe Schindler
Hi, In your incrementToken method, you differs in both implementations: The original one uses setTermBuffer(), but the new one only resizes the buffer, but never changes it. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Origin

Converting from TermAttribute to CharTermAttribute

2011-09-15 Thread Paul Taylor
Have updated from Lucene 3.0 to lucene 3.1 an dnow getting various deprecations that Im trying to move I change this filter class and now my test are failing, anybody able to see what Im missing please Paul package org.musicbrainz.search.analysis; import org.apache.lucene.analysis.TokenFilt

Re: use QueryTermExtractor for RangeQueries

2011-09-15 Thread Simon Willnauer
Hey, do you use the query you passed to rewrite to extract the terms or the query returned from rewrite? you should do it like this: Query q = ... q = indexSearcher.rewrite(q); ... simon On Thu, Sep 15, 2011 at 6:02 AM, S Eslamian wrote: > I have an instance of IndexSearcher and then call r