Re: Words Frequency Problem

2006-08-18 Thread Sören Pekrul
aslam bari wrote: As you suggest me, i written the code, but i wonder Field does not contain Store, Index YES etc. It only contains Field.Keyword, Field.Text etc. Am i missing something. That sounds to me you using an older version. I use lucene-2.0.0. It should be the latest stabil. Sorry

Re: Words Frequency Problem

2006-08-18 Thread aslam bari
Hi soren, Thanks a lot for help. As you suggest me, i written the code, but i wonder Field does not contain Store, Index YES etc. It only contains Field.Keyword, Field.Text etc. Am i missing something. My Code is as Below. indexWriter = new IndexWriter(indexpath, analyzer, false);

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...