Thanks a mil erik, I tried to make my own filter class
with a modified bit method as per below:
if (doc == interestingDoc)
{
bits.set(doc); // set bit for hit
}
but this baby continues to always return 1!
so then I looked at indexreader, like you said and
ended up with something li
On Sunday, November 30, 2003, at 11:13 AM, Kent Gibson wrote:
as per Erik's idea I tried with the BitSet as follows:
QueryFilter qf = new QueryFilter(query);
IndexReader ir = IndexReader.open(indexPath);
Searcher searcher2 = new IndexSearcher(ir);
// get the bit set for the query
BitSet bits = qf
Thanks for the help guys, but unfortunately I am still
stuck. Let me reiterate what I would like to do and
then explain what I have tried.
I would like to know that in document x the query y
appeared n times.
For example:
query = "Bank" : Bank found in doc number 1, 3 tims
Understandbly this i
Kent, Erik,
On Saturday 29 November 2003 17:20, Erik Hatcher wrote:
> I enjoy at least attempting to answer questions here, even if I'm half
> wrong, so by all means correct me if I misspeak
Me too, :)
> On Saturday, November 29, 2003, at 06:37 PM, Kent Gibson wrote:
> > All I would like to
I enjoy at least attempting to answer questions here, even if I'm half
wrong, so by all means correct me if I misspeak
On Saturday, November 29, 2003, at 06:37 PM, Kent Gibson wrote:
All I would like to know is how many times a query was
found in a particular document. I have no problems
ge
Dear All,
All I would like to know is how many times a query was
found in a particular document. I have no problems
getting the score from hits.score(). hits.length is
the number of times in total that the query was found,
however I want the the number of times the query was
found on a document by