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

[FEATURE]Support of new k-NN query parameter, expand_nested_docs #1008 #1013

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bzhangam
Copy link

Description

Support new knn query parameter expand_nested_docs.

Related Issues

Resolves #1008

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

Copy link

@yizheliu-amazon yizheliu-amazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall

@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Features
### Enhancements
- Set neural-search plugin 3.0.0 baseline JDK version to JDK-2 ([#838](https://github.com/opensearch-project/neural-search/pull/838))
- Support new knn query parameter expand_nested_docs ([#1008](https://github.com/opensearch-project/neural-search/issues/1008))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may put PR link instead of issues link here. It should be: #1013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is put in Unreleased 3.0 part, just wondering should this feature be part of Unreleased 3.0 or Unreleased 2.x?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this is new feature, should be it under Features or Enhancements?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may put PR link instead of issues link here. It should be: #1013

That is correct. Should be this PR link.

This is put in Unreleased 3.0 part, just wondering should this feature be part of Unreleased 3.0 or Unreleased 2.x?

Should be under Unreleased 2.x

Seems like this is new feature, should be it under Features or Enhancements?

Kind of subjective matter. Enhancements might looks fine by me.

@@ -98,6 +99,7 @@ public static void initialize(MLCommonsClientAccessor mlClient) {
private Integer k = null;
private Float maxDistance = null;
private Float minScore = null;
private Boolean expandNestedDocs;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new line below this line.

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

Successfully merging this pull request may close these issues.

[FEATURE]Support of new k-NN query parameter, expand_nested_docs
3 participants