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 support for builder constructor in neural query builder #1065

Closed
wants to merge 1 commit into from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 2ecd32c from #1047

* add support for builder constructor in neural query builder

Signed-off-by: will-hwang <[email protected]>

* create custom builder class to enforce valid neural query builder instantiation

Signed-off-by: will-hwang <[email protected]>

* refactor code to remove duplicate

Signed-off-by: will-hwang <[email protected]>

* include new constructor in qa packages

Signed-off-by: will-hwang <[email protected]>

* refactor code to remove unnecessary code

Signed-off-by: will-hwang <[email protected]>

* fix bug in neural query builder instantiation

Signed-off-by: will-hwang <[email protected]>

---------

Signed-off-by: will-hwang <[email protected]>
(cherry picked from commit 2ecd32c)
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 90.38462% with 5 lines in your changes missing coverage. Please review.

Project coverage is 79.78%. Comparing base (80a4208) to head (7d403b7).
Report is 5 commits behind head on 2.x.

Files with missing lines Patch % Lines
...nsearch/neuralsearch/query/NeuralQueryBuilder.java 90.38% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1065      +/-   ##
============================================
+ Coverage     79.64%   79.78%   +0.13%     
- Complexity     1112     1113       +1     
============================================
  Files            87       87              
  Lines          3808     3853      +45     
  Branches        648      648              
============================================
+ Hits           3033     3074      +41     
- Misses          527      530       +3     
- Partials        248      249       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@will-hwang
Copy link
Contributor

this pr depends on #1073 to be merged first, and a change is needed on

NeuralQueryBuilder neuralQueryBuilder = new NeuralQueryBuilder();
on this PR before merge

@will-hwang
Copy link
Contributor

manually created pr due to a change needed: #1084

@heemin32 heemin32 closed this Jan 9, 2025
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