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

[Backport 2.x] Add WithFieldName implementation to KNNQueryBuilder #2400

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 7e817f2 from #2398

* Add WithFieldName implementation to KNNQueryBuilder

Signed-off-by: Mark Wu <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Mark Wu <[email protected]>

---------

Signed-off-by: Mark Wu <[email protected]>
(cherry picked from commit 7e817f2)
@kotwanikunal
Copy link
Member

REPRODUCE WITH: ./gradlew ':qa:restart-upgrade:testRestartUpgrade' --tests "org.opensearch.knn.bwc.WarmupIT.testKNNWarmupCustomLegacyFieldMapping" -Dtests.seed=533DEB8C8C6F32CC -Dtests.security.manager=false -Dtests.bwc.version=1.2.4 -Dtests.locale=es-NI -Dtests.timezone=Asia/Ulaanbaatar -Druntime.java=11

Suite: Test class org.opensearch.knn.bwc.WarmupIT

org.opensearch.knn.bwc.WarmupIT > testKNNWarmupCustomLegacyFieldMapping FAILED
    java.lang.AssertionError: expected:<5> but was:<4>
        at __randomizedtesting.SeedInfo.seed([533DEB8C8C6F32CC:EAA45E6024FA5264]:0)
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:633)
        at org.opensearch.knn.KNNRestTestCase.validateKNNSearch(KNNRestTestCase.java:1402)
        at org.opensearch.knn.KNNRestTestCase.validateKNNSearch(KNNRestTestCase.java:1385)
        at org.opensearch.knn.bwc.WarmupIT.validateKNNWarmupOnUpgrade(WarmupIT.java:125)
        at org.opensearch.knn.bwc.WarmupIT.testKNNWarmupCustomLegacyFieldMapping(WarmupIT.java:66)

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