I could be wrong, but isn't that what edismax does?

http://lucene.apache.org/java/3_0_0/api/core/org/apache/lucene/search/DisjunctionMaxQuery.html

On Fri, Sep 9, 2011 at 7:49 AM, crisfromnova <crisfromn...@gmail.com> wrote:
> Hi,
>
> For my search I want to calculate the score only by higher boost. For
> example:
> doc1
> <doc>
>  <name>Charlie</name>
>  <surname>Jonhson</surname>
> </doc>
> doc2
> <doc>
>  <name>Charlie</name>
>  <surname>Charlie</surname>
> </doc>
>
> So when I use the query : "q=name:Charlie^5 surname:Charlie^2", I want that
> both documents to have the same score, based on the boost value of the first
> field matched.
>
> I use a custom Similarity class and I overwrite all methods wich can
> influence the score(computenorm(...), tf(...), idf(...), queryNorm(...)),
> but I don't know how to change the score to take in consideration only the
> higher boost value and not the sum of bossts from all matched fields.
>
> Any idea, please...
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/scoring-only-by-higher-boost-tp3322666p3322666.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to