Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ayushKataria opened this issue May 25, 2022 · 7 comments

Comments

@ayushKataria
Copy link

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?

@nathancday
Copy link
Member

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

@ayushKataria
Copy link
Author

I am using ES version 7.12.0

@blackmad
Copy link

any updates here? I'm getting this on 8.5.0

@sstults
Copy link
Member

sstults commented Apr 4, 2023

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

@blackmad
Copy link

blackmad commented Apr 4, 2023

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)

@jiahuijiang
Copy link

jiahuijiang commented Aug 3, 2024

@sstults still seeing this issue (taking over the debugging from @blackmad ), let me know what information I can provide to help you reproduce!

@sstults
Copy link
Member

sstults commented Aug 22, 2024

@jiahuijiang , I'm sorry but I'm not going to be able to follow up on this anytime soon. Elastic has announced their adoption of LTR into Elasticsearch itself, and I'm working on the OpenSearch LTR plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants