Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Ostanin <[email protected]>
  • Loading branch information
Kirill Ostanin committed Oct 24, 2023
1 parent acfda84 commit 3b93a1b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static NeuralQuery of(Function<NeuralQuery.Builder, ObjectBuilder<NeuralQ
*/
@Override
public Query.Kind _queryKind() {
return null;
return Query.Kind.Neural;
}

/**
Expand Down Expand Up @@ -114,14 +114,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
* Builder for {@link NeuralQuery}.
*/
public static class Builder extends QueryBase.AbstractBuilder<NeuralQuery.Builder> implements ObjectBuilder<NeuralQuery> {
@Nullable
private String field;
@Nullable
private String queryText;
private Integer k;
@Nullable
private String modelId;
@Nullable
private Integer k;

/**
* Required - The target field.
Expand Down

0 comments on commit 3b93a1b

Please sign in to comment.