Re: IndexReader can not be decorated

2007-01-19 Thread karl wettin
19 jan 2007 kl. 20.11 skrev karl wettin: For some reason I can't figure out, IndexReaders can not be decorated. It is when commiting something deleted that it goes wrong. Does anyone here know what the problem might be? I've been debugging this more or less the whole day. Even tried desper

IndexReader can not be decorated

2007-01-19 Thread karl wettin
For some reason I can't figure out, IndexReaders can not be decorated. It is when commiting something deleted that it goes wrong. Does anyone here know what the problem might be? I've been debugging this more or less the whole day. Even tried desperate attempts with get/settify use of the p

Re: Counting hits in a document

2007-01-19 Thread Paul Elschot
Adding a few details: On Friday 19 January 2007 06:42, Chris Hostetter wrote: > > > SpanQuery whatever = ... > Spans s = whatever.getSpans(indexReader) if (!s.skipTo(yourDocId)) { ... // no match } else { > while (s.doc() == yourDocId) { > print("match betwee

Re: Most Frequent Terms

2007-01-19 Thread Doron Cohen
See contrib -> misc -> HighFreqTerms "Paul Williams" <[EMAIL PROTECTED]> wrote on 19/01/2007 00:35:55: > Hopefully this a straight forward question, but what's the recommended > approach for finding the most frequent terms in an index? Should this > sort of thing be done overnight? > > > > Regar

Re: custom similarity based on tf but greater than 1.0

2007-01-19 Thread Otis Gospodnetic
Jumping in at this point and not having read other responses, I think the function that Vangelis is looking for is coord method in Similarity - that's for document terms/query terms overlap, I believe. Otis - Original Message From: Mark Miller <[EMAIL PROTECTED]> To: java-user@lucene.a

Re: Most Frequent Terms

2007-01-19 Thread Otis Gospodnetic
There is also an impl in Lucene's own contrib/miscellaneous. You can optionally specify the field you want to limit terms to. Otis - Original Message From: Paul Williams <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Friday, January 19, 2007 3:55:00 AM Subject: RE: Most Freq

Re: Most Frequent Terms

2007-01-19 Thread Kapil Chhabra
Hi Paul, I like the implementation of this in Luke (www.getopt.org/*luke*/) There is a HighFreqTerms class in src/org/getopt/luke/. Have a look. I am sure you'll find your answer there. Regards, kapilChhabra Paul Williams wrote: Hopefully this a straight forward question, but what's the reco

RE: Most Frequent Terms

2007-01-19 Thread Paul Williams
To answer my own question; I've just found the HighFreqTerms class in luke which point me in the right direction! Regards, Paul. -Original Message- From: Paul Williams [mailto:[EMAIL PROTECTED] Sent: 19 January 2007 08:36 am To: java-user@lucene.apache.org Subject: Most Frequent Terms