Percolate Query Scoring and Fields

Is it possible to have a percolate query return a score for how well each
percolate query matches the document and return extra fields from the
percolate query as part of the results? Given the percolate query below:

{
"query" : {
"match" : {
"query" : "blue"
}
},
"other_field" : "test"
}

and the following document:

{
"doc" : {
"query" : "blue shoes nike"
}
}

I'd like to see a result something like this:

{
"took": 1,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"total": 2,
"matches": [
{
"_index": "myIndex",
"_id": "1",
"_score" : 0.87
"other_field" : "test"
}
]
}

Are either of these possible?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/094a55bf-83f1-44ee-9fbc-ce962a6fe711%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Unfortunately neither is possible at the moment. The score part that you
ask is interesting in which I could see some interesting applications. For
the second one, you'll probably just need to do an _mget or second search
to retrieve extra metadata from the percolator queries. There is a scoring
capability in the percolator in ES 1.0 but it is not the way you describe.
It simply works by you supplying a query along with the percolate call and
then a score will be computed based on the relevance of the query against
the percolator queries metadata.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0e48c6c4-7dff-40ba-8b68-f9749b5cc02e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Binh,

I was afraid of that. That lines up with all the information I've seen in
the documentation. I was just hoping there was something I was missing.
I've already done what you've suggested for fetching the fields. I guess I
could attempt to score the results myself.

http://www.searchspring.net/James BathgateSr. Developer719.594.4595 ext.
610

On Thu, Feb 27, 2014 at 1:58 PM, Binh Ly binhly_es@yahoo.com wrote:

Unfortunately neither is possible at the moment. The score part that you
ask is interesting in which I could see some interesting applications. For
the second one, you'll probably just need to do an _mget or second search
to retrieve extra metadata from the percolator queries. There is a scoring
capability in the percolator in ES 1.0 but it is not the way you describe.
It simply works by you supplying a query along with the percolate call and
then a score will be computed based on the relevance of the query against
the percolator queries metadata.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ZRJbcijOCMM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0e48c6c4-7dff-40ba-8b68-f9749b5cc02e%40googlegroups.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAJvHJZ1mnwc2%2BG18S-%2BXbgP12rRFp%2BoCMU2c_ZVyDE5RDt0WWw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.