SpellChecker

2006-08-17 Thread Matthew York
Hi, I'm having issues creating a SpellChecker index. I am running JRE 1.5.0_06, and have the following in my classpath - lucene-core-2.0.0.jar & lucene-spellchecker-2.0.0.jar. When I run the code below I get the following exception and a 1KB segments file in the spellIndexDirectoryPath: Except

Re: Words Frequency Problem

2006-08-17 Thread Sören Pekrul
aslam bari wrote: I am searching for a word "circle" in my indexed document list. It gives me total document found 4 i.e. Hits. But now i want to get how many occurances are there in each document i.e. frequency of words in result document. Hello Aslam, you should store the TermVector in t

Re: Words Frequency Problem

2006-08-17 Thread aslam bari
Thanks Doron, My Code is as below please tell me where to add/modify for TermFreqVector. IBasicResultSet result = new BasicResultSetImpl (false); try { Searcher searcher = new IndexSearcher(indexPath); Query query = QueryParser.parse(searchedT

Re: Words Frequency Problem

2006-08-17 Thread Doron Cohen
See http://www.nabble.com/Accessing-%22term-frequency-information%22-for-documents-tf1964461.html#a5390696 - Doron aslam bari <[EMAIL PROTECTED]> wrote on 17/08/2006 23:13:27: > Dear All, > I am new to Lucene. I am searching for a word "circle" in my > indexed document list. It gives me total

Words Frequency Problem

2006-08-17 Thread aslam bari
Dear All, I am new to Lucene. I am searching for a word "circle" in my indexed document list. It gives me total document found 4 i.e. Hits. But now i want to get how many occurances are there in each document i.e. frequency of words in result document. Plz. give me suggestions. Thanks...

RE: is there such an analyzer?

2006-08-17 Thread Van Nguyen
That definitely pointed me in the right direction. Thanks -Original Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 1:04 PM To: java-user@lucene.apache.org Subject: Re: is there such an analyzer? I suspect you'll have to roll your own. I'd use th

Re: HELP: how to highlight the search key word in lucene's search results?

2006-08-17 Thread kelvin pang
thanks for your reply.show me the lucene-sandbox examples URL pls. if u can send me some sample code,that's great!2006/8/16, Ramesh Salla < [EMAIL PROTECTED]>: goto mailing list archive and you find a lot of info there. i can brief you out procdure for now. get the Highlighter jar from t

Re: Lucene/Tomcat Memory Leak Issue

2006-08-17 Thread kieran
The source code is there to look at, modify, and/or compile yourself ;-) Any "grave concerns" should be addressable by examining the contents of the patch. The change is pretty minor. As far as problems are concerned: in some circumstances, there could (arguably) be a performance overhead. We us

Lucene/Tomcat Memory Leak Issue

2006-08-17 Thread adrena . keating
Thanks Kieran, Yep iv seen this patch before but our organisation has grave concerns putting it into a production environment as its not verified/support by Lucene as an official patch nor have they verified that there is an actual bug. Do you know if you or anyone has actuall installed in prod e

Re: Split an existing index into smaller segments without a re-index?

2006-08-17 Thread Karel Tejnora
Depends. 0) optimize big index 1) on big index delete all documents except those for a part of index 2) use AddIndexes on IndexWriter on destination dir (empty) 3) delete segments.del in big index directory (the segments.del is a just serialized BitVector) 4) repeat for another set do not mak

Re: Lucene/Tomcat Memory Leak Issue

2006-08-17 Thread kieran
Hello Adrena, You might want to consult the following thread: http://issues.apache.org/jira/browse/LUCENE-436 The issue /might/ be to do with your JVM's implementation of ThreadLocal. The above discussion contains a fix/workaround for this issue. Kieran [EMAIL PROTECTED] wrote: We are ind