Problems with custom_score (resolved)


#1

Hey there! I'm trying to implement a custom scoring method for my query, and the query looks like this: http://pastebin.com/exLftKpS

However, when I view the results of the query, the score attribute on things is None, but I expected it to be at least 10. Is the custom_score block of my query too high, so it's not indexing the right documents? Any insight would be appreciated!

Cheers,
Dwight


(Adrien Grand) #2

Maybe you just need to set track_scores=true? https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html#_track_scores


#3

So update: Using a sort will negate any scoring of the results (which makes sense in hindsight).


(system) #4