Reputation: 43
I wanted to use the 'Boost-Function' feature on my search (which in other cases and fields works just fine) in order to boost documents with higher 'timestamp value', in order to improve the relevancy score for these documents but not necessary, absolutely sort by timestamp. Unfortunately I encountered this error while trying to do so:
"error":{
"msg":"Type mismatch: timestamp was indexed as SORTED_NUMERIC",
"trace":"java.lang.IllegalStateException: Type mismatch: timestamp was indexed as SORTED_NUMERIC
The 'bf' query was:
sum(div(timestamp,100000000))
(Kind of silly, but just wanted to see if it even works).
Thanks for the help!
Upvotes: 1
Views: 776