You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by John Patterson <jd...@gmail.com> on 2005/12/06 20:47:24 UTC
Non scoring search
Hi,
I was wondering if there is a standard way to retrive documents WITHOUT
scoring and sorting them. I need a list of documents that contain certain
terms but I do not need them sorted or scored.
Looking at the source it appears that I can use the TermDocs directly and
write a method similar to ConjunctionScorer.next()
Does such a Class already exist?
Thanks,
John.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Non scoring search
Posted by Peter Keegan <pe...@gmail.com>.
I experimented with this by using a Similiarity class that returns a
constant (1) for all values and found that had no noticable affect on query
performance.
Peter
On 12/6/05, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> : I was wondering if there is a standard way to retrive documents WITHOUT
> : scoring and sorting them. I need a list of documents that contain
> certain
> : terms but I do not need them sorted or scored.
>
> Using Filters directly (ie: constructing them, and then calling the bits()
> method yourself) is the most straight forward way i know of to achieve
> what you describe.
>
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
Re: Non scoring search
Posted by Malcolm <ma...@btinternet.com>.
Probably being very naive here but:
These are my index details:
Location:C:\LuceneDemo\Project6thDec
Number of documents in Index: 571
Index Current Version: 2
Last Modified: 1133899684000
The index has not had any deletions.
What is: Last Modified: 1133899684000?
I thought of indexing a date for each field but it's too inefficient as I only want it once.I just want the date for the index.Where does it lie?
cheers,
Malcolm
Re: Non scoring search
Posted by Chris Hostetter <ho...@fucit.org>.
: I was wondering if there is a standard way to retrive documents WITHOUT
: scoring and sorting them. I need a list of documents that contain certain
: terms but I do not need them sorted or scored.
Using Filters directly (ie: constructing them, and then calling the bits()
method yourself) is the most straight forward way i know of to achieve
what you describe.
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org