Re: Extract terms not by reader, but by documents

2007-09-06 Thread Mike Klaas
On 6-Sep-07, at 11:48 AM, Grant Ingersoll wrote: On Sep 6, 2007, at 1:32 PM, Rafael Rossini wrote: Karl, I´m aware of IndexReader.getTermFreqVector, with this I can get all terms of a document, but I want all terms of a document that matched a query. Grant, Yes, I think I understand.

Re: Search performance question

2007-09-06 Thread Mike Klaas
On 6-Sep-07, at 4:41 AM, makkhar wrote: Hi, I have an index which contains more than 20K documents. Each document has the following structure : field : ID (Index and store) typical value - "1000" field : parameterName(index and store) typical value

Re: Java Heap Space -Out Of Memory Error

2007-09-06 Thread Sebastin
The problem in my pplication are as follows: 1.I am not able to see the updated records in my index store because i instantiate IndexReader and IndexSearcher class once that is in the first search.further searches use the same IndexReaders(5 Directories) and IndexSearcher with di

Re: Extract terms not by reader, but by documents

2007-09-06 Thread Grant Ingersoll
On Sep 6, 2007, at 1:32 PM, Rafael Rossini wrote: Karl, I´m aware of IndexReader.getTermFreqVector, with this I can get all terms of a document, but I want all terms of a document that matched a query. Grant, Yes, I think I understand. You want to know what terms from your query matched i

Re: Extract terms not by reader, but by documents

2007-09-06 Thread Rafael Rossini
Karl, I´m aware of IndexReader.getTermFreqVector, with this I can get all terms of a document, but I want all terms of a document that matched a query. Grant, >Yes, I think I understand. You want to know what terms from your >query matched in a given document. Yep, that´s what I want. In the co

highlight only some terms from query string?

2007-09-06 Thread newbieoflucene
When user inputs some terms to query by lucene, I want to only high light some terms in some fields I specified. Is it possible? For example: The record has 3 fields: Name, Title, Desc. and user search terms are: willas, SE, self des. how can I set only the terms [willas] and [SE] high lighted in

Re: Search performance question

2007-09-06 Thread Grant Ingersoll
Have a look at http://wiki.apache.org/lucene-java/BasicsOfPerformance Are you opening the IndexSearcher every time you search, even when no documents have changed? -Grant On Sep 6, 2007, at 7:41 AM, makkhar wrote: Hi, I have an index which contains more than 20K documents. Each docu

Re: Search performance question

2007-09-06 Thread Mark Miller
Your not expecting too much. On cheap hardware I watch searches on over 5 mil + docs that match every doc come back in under a second. Able to post your search code? makkhar wrote: Hi, I have an index which contains more than 20K documents. Each document has the following structure : fiel

Search performance question

2007-09-06 Thread makkhar
Hi, I have an index which contains more than 20K documents. Each document has the following structure : field : ID (Index and store) typical value - "1000" field : parameterName(index and store) typical value - "/mcp/data/parent1/parent2/child1/child2/status"