-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add semantic field mapper. #1225
base: main
Are you sure you want to change the base?
Conversation
src/main/java/org/opensearch/neuralsearch/mapper/SemanticFieldMapper.java
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/SemanticFieldMapper.java
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/SemanticFieldMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/SemanticFieldMapper.java
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/SemanticFieldMapper.java
Show resolved
Hide resolved
...ain/java/org/opensearch/neuralsearch/mapper/semanticFieldTypes/SemanticFieldTypeFactory.java
Outdated
Show resolved
Hide resolved
.../java/org/opensearch/neuralsearch/mapper/semanticFieldTypes/SemanticFieldTypeParameters.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/constants/SemanticFieldConstants.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/SemanticFieldMapper.java
Outdated
Show resolved
Hide resolved
...ain/java/org/opensearch/neuralsearch/mapper/semanticFieldTypes/SemanticFieldTypeFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/semanticFieldTypes/SemanticFieldType.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opensearch/neuralsearch/mapper/semanticFieldTypes/SemanticFieldTypeTests.java
Outdated
Show resolved
Hide resolved
...java/org/opensearch/neuralsearch/mapper/semanticFieldTypes/SemanticStringFieldTypeTests.java
Outdated
Show resolved
Hide resolved
...main/java/org/opensearch/neuralsearch/mapper/semanticFieldTypes/SemanticNumberFieldType.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/neuralsearch/mapper/SemanticFieldMapper.java
Outdated
Show resolved
Hide resolved
|
||
protected Builder(String name) { | ||
super(name); | ||
semanticFieldTypeFactory = new SemanticFieldTypeFactory(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to inject it from outside, and even better if we can make it reusable.
protected Builder(String name, SemanticFieldTypeFactory semanticFieldTypeFactory) {
...
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
.../java/org/opensearch/neuralsearch/mapper/semanticfieldtypes/SemanticFieldTypeParameters.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please fix build failure before merge.
Signed-off-by: Bo Zhang <[email protected]>
Description
Add semantic field mapper to support the semantic field type.
Test will fail until this PR is merged into core.
Related Issues
Resolves #[803]
Check List
--signoff
.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.