FAQ
Hi,

is it possible to use a real boolean model in lucene for searching. When one
is using the Queryparser with a boolean query (i.e. "dog AND horse") one
does get a list of documents from the Hits object. However these documents have
a ranking (score).

My Question: Does Lucene use TF/IDF for getting this? (which would mean it
does not use the boolean model for the boolean query...)

How can one use a boolean model search, where the outcome are all score=1 ?
Example?

Cheers,
Ralph

--
Neu bei GMX: Preissenkung für MMS-Versand und FreeMMS!

Ideal für alle, die gerne MMS verschicken:
25 FreeMMS/Monat mit GMX TopMail.
http://www.gmx.net/de/cgi/produktemail

+++ GMX - die erste Adresse für Mail, Message, More! +++


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Search Discussions

  • Ype Kingma at Dec 1, 2003 at 6:33 pm
    Ralph,
    On Monday 01 December 2003 04:11, ambiesense@gmx.de wrote:
    Hi,

    is it possible to use a real boolean model in lucene for searching. When
    one is using the Queryparser with a boolean query (i.e. "dog AND horse")
    one does get a list of documents from the Hits object. However these
    documents have a ranking (score).

    My Question: Does Lucene use TF/IDF for getting this? (which would mean it
    does not use the boolean model for the boolean query...)

    How can one use a boolean model search, where the outcome are all score=1 ?
    Example?
    You can use the low level scoring API, which simply enumerates all boolean
    hits. It also gives you the score, but you can just ignore that if you want.

    http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Searcher.html
    Use the search() method with a HitCollector, and provide you own HitCollector.

    When you do this avoid retrieving documents during the search, retrieve docs
    afterwards. Retrieving docs during search would cause unwanted disk head seeks
    from the terms index to the stored fields and back.
    It is also preferable to retrieve docs in the order that you collect them, ie. independent
    of the score.
    Even so, retrieving documents normally takes more time than collecting them.

    Kind regards,
    Ype


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedDec 1, '03 at 12:11p
activeDec 1, '03 at 6:33p
posts2
users2
websitelucene.apache.org

2 users in discussion

Ype Kingma: 1 post Ambiesense: 1 post

People

Translate

site design / logo © 2022 Grokbase