again, how 'bout some code?! :)



On Friday, December 12, 2003, at 10:13 AM, Shannon March wrote:

Hi, thanks for replying.

For example

I run a search, and when I use the length() method in the hits object to
display the total number of hits/results I get a result of 52. However
when I display the contents of the hits object to a page, I am getting
57 or 58 results on the page. 5 or 6 more results than is shown from
the length() method in the hits object.




Shannon

-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 9:45 AM
To: Lucene Users List
Subject: Re: Has anyone tried to implement a counter?

Shannon,  I'm not following what the issue is here.  Any chance you
could show us some (succinct) code that illustrates things clearer?

Erik


On Friday, December 12, 2003, at 08:30 AM, Shannon March wrote:


Hi

Has anyone tried to implement a counter using Lucene.

We currently have a search implemented, searching multiple indexes and
returning the results in a Vector of hits objects.  In order to get
our
total number of hits for a count of the total results we are cycling
through our vector, and for each of the hits objects we are using the
length() method to get a total.

However the total number we receive is not accurate.  For example in a
search which returns 52 results, we are getting approx 55 or 56
results.
For searches with higher results, the size of the error increases, but
it would not be double for the a search with approx 100 results.

Does anyone have any ideas? We're using Lucene 1.3.


Thanks for your help;



Shannon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to