Skip to content

Conversation

@rithin-pullela-aws
Copy link
Collaborator

@rithin-pullela-aws rithin-pullela-aws commented Aug 6, 2025

Description

With these latest changes from Core: opensearch-project/OpenSearch#18697 the build of LTR fails with this error:

> Task :compileJava
/tmp/tmp7o2tt_my/opensearch-learning-to-rank-base/src/main/java/com/o19s/es/ltr/logging/LoggingFetchSubPhase.java:127: error: cannot find symbol
            inspectQuery(qrescore.query())
                                 ^
  symbol:   method query()
  location: variable qrescore of type QueryRescoreContext
/tmp/tmp7o2tt_my/opensearch-learning-to-rank-base/src/main/java/com/o19s/es/ltr/logging/LoggingFetchSubPhase.java:132: error: cannot find symbol
                            + qrescore.query().getClass().getSimpleName()

This PR fixes these errors.

This issue was not surfaced before because it was pulling the older version on opensearch snapshots. Updated the build.gradle to get the latest snapshots

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ylwu-amzn ylwu-amzn merged commit 684e719 into opensearch-project:main Aug 6, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants