Custom score based on highlighted content

Greetings!
Are there any way to build a custom score based on highlighted
content?

I mean, given a query against a set of documents the score of each hit
should be given by the number of highlighting content found on each
document. I just need to find a way to sort my hits based on the
relevance, in my case the number of highlighted content.

Thanks in advance!

Scoring in Lucene already works (very simplified) like that...

On Wed, May 2, 2012 at 6:01 AM, Klérisson Paixão
klerissonpaixao@gmail.comwrote:

Greetings!
Are there any way to build a custom score based on highlighted
content?

I mean, given a query against a set of documents the score of each hit
should be given by the number of highlighting content found on each
document. I just need to find a way to sort my hits based on the
relevance, in my case the number of highlighted content.

Thanks in advance!

How to enable such scoring to "query_string" against "_all" field? I'm getting 1.0 score for all hits, no clue why.

Thanks!

--- Edit
Getting 1.0 score for all hits has something to do with wildcards query? Or even worst: a leading wildcard?

What query are you executing? If its wildcard query, then it transforms
into a constant score one (has nothing to do with _all field).

On Thu, May 17, 2012 at 3:54 AM, Klerisson klerissonpaixao@gmail.comwrote:

How to enable such scoring to "query_string" against "_all" field? I'm
getting 1.0 score for all hits, no clue why.

Thanks!

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Custom-score-based-on-highlighted-content-tp3954342p3998333.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.