Re: Term offsets for highlighting

2010-04-24 Thread Koji Sekiguchi
Hi Steve, is there a way to access a TermVector containing only matched terms, or is my previous approach still the So you want to access FieldTermStack, I understand. The way to access it, I wrote it at previous mail: You cannot access FieldTermStack from FVH, but I think you can create it

Re: Reopening a Searcher for each request

2010-04-24 Thread Ivan Liu
like this? public synchronized IndexSearcher newIndexSearcher() { try { // semaphore.acquire(); if (null == indexSearcher) { Directory directory = FSDirectory.open(new File(Config.DB_DIR+/rssindex)); indexSearcher = new IndexSearcher(IndexReader.open(directory, true)); } else {

Re: HTMLStripReader, HTMLStripCharFilter

2010-04-24 Thread Robert Muir
On Fri, Apr 23, 2010 at 4:48 PM, Justin cry...@yahoo.com wrote: Just out of curiousity, why does LUCENE-1377 have a minor priorty? https://issues.apache.org/jira/browse/LUCENE-1377 Don't people index, filter, search HTML, perhaps more than any other format? Rest assured we are working on

Re: Indexing and Searching fields that have unique values

2010-04-24 Thread Ivan Liu
I think Anshum is right。 And may your range is too big and is sorting 2010/4/23 Anshum ansh...@gmail.com Hi Ravi, Adding to what Erick said, you could do index the numbers as numeric fields instead of strings. This should improve things for you by a considerable amount. P.S: I'm talking

Re: Reopening a Searcher for each request

2010-04-24 Thread Samarendra Pratap
No! It's not like this in my code. This code opens an IndexReader every time I call newIndexSearcher(). In my code it is sometime like - IndexReader[] irs; // irs is a global array containing IndexReaders which are opened when the application starts . . IndexSearcher[]