Prevent 'match_phrase' from evaluating score

Hello,

Is it possible to have a 'match_phrase' query which does not do any scoring
during search?

I know that using 'query filter' or wraps a query in 'constant_score query'
return documents with constant score. But as I know, what they do is
cutting of the evaluated score, i.e. the score corresponds to the
'match_phrase' query is still evaluated.

In our application, we only care whether a phrase exists in a document, we
don't care the score of each document. To have the best performance, we
would like to eliminate the whole score evaluating process during
'match_phrase' query.

Is there any query type or configuration to achieve this?

Thank you.

--
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/3a322287-101c-4f2e-bf9d-3393fb0708c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

In fact, not only 'match_phrase', we want to eliminate scoring of all
queries.

--
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/06018609-0ae8-42c2-835b-01d4b68e3a15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I am not sure if there is a cleaner way to bypassing score, but if you
explicitly sort against another value that is not the score, then by
default scoring will not occur.

Perhaps if you trace the code for sort, you can find a setting that
disables scoring in general.

--
Ivan

On Wed, Jul 23, 2014 at 9:37 PM, 陳智清 walker0902@gmail.com wrote:

In fact, not only 'match_phrase', we want to eliminate scoring of all
queries.

--
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/06018609-0ae8-42c2-835b-01d4b68e3a15%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/06018609-0ae8-42c2-835b-01d4b68e3a15%40googlegroups.com?utm_medium=email&utm_source=footer
.

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

--
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/CALY%3DcQAYCm9jw%3DD57%2BvXg7nBRLEoGhf%2BfVNa6daH9UMJjEGQGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

The only solution I could come out is also to modify the source code. I
just think it would be nice if there is a existing flag or configuration to
completely skip the score evaluation process.

Thank you, Ivan!

Ivan Brusic於 2014年7月25日星期五UTC+8上午1時03分53秒寫道:

I am not sure if there is a cleaner way to bypassing score, but if you
explicitly sort against another value that is not the score, then by
default scoring will not occur.

Perhaps if you trace the code for sort, you can find a setting that
disables scoring in general.

--
Ivan

On Wed, Jul 23, 2014 at 9:37 PM, 陳智清 <walke...@gmail.com <javascript:>>
wrote:

In fact, not only 'match_phrase', we want to eliminate scoring of all
queries.

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/06018609-0ae8-42c2-835b-01d4b68e3a15%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/06018609-0ae8-42c2-835b-01d4b68e3a15%40googlegroups.com?utm_medium=email&utm_source=footer
.

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

--
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/b2c78c85-4e72-4e88-8680-332a304c3488%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Since scoring is not important, can't you simply sort against one of the
fields?

--
Ivan

On Thu, Jul 24, 2014 at 10:59 PM, 陳智清 walker0902@gmail.com wrote:

The only solution I could come out is also to modify the source code. I
just think it would be nice if there is a existing flag or configuration to
completely skip the score evaluation process.

Thank you, Ivan!

Ivan Brusic於 2014年7月25日星期五UTC+8上午1時03分53秒寫道:

I am not sure if there is a cleaner way to bypassing score, but if you
explicitly sort against another value that is not the score, then by
default scoring will not occur.

Perhaps if you trace the code for sort, you can find a setting that
disables scoring in general.

--
Ivan

On Wed, Jul 23, 2014 at 9:37 PM, 陳智清 walke...@gmail.com wrote:

In fact, not only 'match_phrase', we want to eliminate scoring of all
queries.

--
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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/06018609-0ae8-42c2-835b-01d4b68e3a15%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/06018609-0ae8-42c2-835b-01d4b68e3a15%40googlegroups.com?utm_medium=email&utm_source=footer
.

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

--
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/b2c78c85-4e72-4e88-8680-332a304c3488%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b2c78c85-4e72-4e88-8680-332a304c3488%40googlegroups.com?utm_medium=email&utm_source=footer
.

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

--
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/CALY%3DcQD8Cdi7tfuSFyYpSejCgzKGnsq-avEHNt6g90DjZgpK0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.