FAQ
I'm using MultiPhraseQuery to implement a fuzzy phrase query.

E.g. user enters "blue lorry" and I expand 'blue' to 'turquoise', and 'glue' and


'lorry' to 'truck', 'van', 'lory' and 'lorrie'. I can then construct a
MultiPhraseQuery with those lists of terms.

The search works correctly but the score is always the total number of terms (N)


that I put into the MultiPhraseQuery (N=8 in this example)!

I've tried using a boost of 1/N but the boost appears to be ignored.

I can't think of a reason why this should be intentional beheviour so I assume
there's a bug.

I'm using Lucene 3.0.

Thanks,
Mike Cawson




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Search Discussions

  • Ian Lea at Dec 16, 2010 at 9:24 am
    More likely to be a bug in your code rather than in lucene. I suggest
    you post the smallest possible self-contained program or test case
    that demonstrates the problem.


    --
    Ian.

    On Thu, Dec 16, 2010 at 1:56 AM, Mike Cawson wrote:
    I'm using MultiPhraseQuery to implement a fuzzy phrase query.

    E.g. user enters "blue lorry" and I expand 'blue' to 'turquoise', and 'glue' and


    'lorry' to 'truck', 'van', 'lory' and 'lorrie'. I can then construct a
    MultiPhraseQuery with those lists of terms.

    The search works correctly but the score is always the total number of terms (N)


    that I put into the MultiPhraseQuery (N=8 in this example)!

    I've tried using a boost of 1/N but the boost appears to be ignored.

    I can't think of a reason why this should be intentional beheviour so I assume
    there's a bug.

    I'm using Lucene 3.0.

    Thanks,
    Mike Cawson




    ---------------------------------------------------------------------
    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]

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedDec 16, '10 at 1:57a
activeDec 16, '10 at 9:24a
posts2
users2
websitelucene.apache.org

2 users in discussion

Ian Lea: 1 post Mike Cawson: 1 post

People

Translate

site design / logo © 2023 Grokbase