FAQ
Hi List,

I'd like to have a query consisting of different keywords on different
fields, e.g. "title:Lucene" "author:Otis" with the second part having
boosted value of 2.

Assuming I use the same Analyzer for both parts of the query then how should
i compose my query ?

Thanks a lot.

Ng

Search Discussions

  • Otis Gospodnetic at Oct 13, 2006 at 4:25 pm
    "title:Lucene author:Otis^2.0" for example.

    You can also call setBoost(float) on the query object (see http://www.lucenebook.com/search?query=setBoost for some examples).

    Otis

    ----- Original Message ----
    From: Vinny Ng <ngvinny@gmail.com>
    To: java-user@lucene.apache.org
    Sent: Friday, October 13, 2006 10:49:29 AM
    Subject: multiple field query

    Hi List,

    I'd like to have a query consisting of different keywords on different
    fields, e.g. "title:Lucene" "author:Otis" with the second part having
    boosted value of 2.

    Assuming I use the same Analyzer for both parts of the query then how should
    i compose my query ?

    Thanks a lot.

    Ng




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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedOct 13, '06 at 2:49p
activeOct 13, '06 at 4:25p
posts2
users2
websitelucene.apache.org

2 users in discussion

Vinny Ng: 1 post Otis Gospodnetic: 1 post

People

Translate

site design / logo © 2022 Grokbase