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?
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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.