elasticsearch-learning-to-rank icon indicating copy to clipboard operation
elasticsearch-learning-to-rank copied to clipboard

Getting class_cast_exception when trying to use profile:true with sltr query

Open ayushKataria opened this issue 2 years ago • 7 comments

When I try to run a query where there is a must or should clause in the query and in rescore I have an sltr query with my model, I get the below error

class org.elasticsearch.search.profile.query.ProfileScorer cannot be cast to class com.o19s.es.explore.PostingsExplorerQuery$PostingsExplorerScorer (org.elasticsearch.search.profile.query.ProfileScorer is in unnamed module of loader 'app'; com.o19s.es.explore.PostingsExplorerQuery$PostingsExplorerScorer is in unnamed module of loader java.net.FactoryURLClassLoader @55d99dc3)

Can someone help with this?

ayushKataria avatar May 25 '22 10:05 ayushKataria

thanks for reporting this, what version of ES are you using?

nathancday avatar Jul 01 '22 13:07 nathancday

I am using ES version 7.12.0

ayushKataria avatar Jul 06 '22 10:07 ayushKataria

any updates here? I'm getting this on 8.5.0

blackmad avatar Mar 30 '23 21:03 blackmad

Can you give details on which JVM you're seeing this on?

sstults avatar Apr 04 '23 16:04 sstults

openjdk version "17.0.6" 2023-01-17 LTS OpenJDK Runtime Environment Corretto-17.0.6.10.1 (build 17.0.6+10-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.6.10.1 (build 17.0.6+10-LTS, mixed mode, sharing)

blackmad avatar Apr 04 '23 17:04 blackmad