Is there some way to return any calculated data, which is used in scoring
or boosting, as part of the result set? We need to return important
calculated data used in scoring but we try to avoid doing the calculations
twice since they are costly. As far as I can see from other threads, it
seems script_fields cannot be used in custom scoring or boosting of result
items. Is there some way to workaround this by using it in another way or
are there other means to get my calculations returned with the items
without recomputing them?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 14 janv. 2013 à 08:26, Mario mj@bioql.com a écrit :
Is there some way to return any calculated data, which is used in scoring or boosting, as part of the result set? We need to return important calculated data used in scoring but we try to avoid doing the calculations twice since they are costly. As far as I can see from other threads, it seems script_fields cannot be used in custom scoring or boosting of result items. Is there some way to workaround this by using it in another way or are there other means to get my calculations returned with the items without recomputing them?
I am not sure how this works with a custom script. The API documentation
isn't very comprehensive in this regard. I forgot to mention that our
scripts would be in Python and I guess this probably only works out of the
box with mvel?
On Monday, January 14, 2013 10:30:08 AM UTC+1, David Pilato wrote:
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 14 janv. 2013 à 08:26, Mario <m...@bioql.com <javascript:>> a écrit :
Is there some way to return any calculated data, which is used in scoring
or boosting, as part of the result set? We need to return important
calculated data used in scoring but we try to avoid doing the calculations
twice since they are costly. As far as I can see from other threads, it
seems script_fields cannot be used in custom scoring or boosting of result
items. Is there some way to workaround this by using it in another way or
are there other means to get my calculations returned with the items
without recomputing them?
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.