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

TermvectorsResponse fix for optionals. #642

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tabs vs. spaces fix.
Signed-off-by: pieper <mike.pieper@ser.de>
  • Loading branch information
MikePieperSer committed Sep 29, 2023
commit aa5e13ffed5be8812503b53bcad2802782a93923
Original file line number Diff line number Diff line change
@@ -157,10 +157,10 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.writeKey("took");
generator.write(this.took);

if (null != this.version) {
generator.writeKey("_version");
generator.write(this.version);
}
if (null != this.version) {
generator.writeKey("_version");
generator.write(this.version);
}

}

Original file line number Diff line number Diff line change
@@ -139,10 +139,10 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.write(this.score);

}
if (null != this.termFreq) {
generator.writeKey("term_freq");
generator.write(this.termFreq);
}
if (null != this.termFreq) {
generator.writeKey("term_freq");
generator.write(this.termFreq);
}

if (ApiTypeHelper.isDefined(this.tokens)) {
generator.writeKey("tokens");
Original file line number Diff line number Diff line change
@@ -92,10 +92,10 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) {

protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {

if (null != this.fieldStatistics) {
generator.writeKey("field_statistics");
this.fieldStatistics.serialize(generator, mapper);
}
if (null != this.fieldStatistics) {
generator.writeKey("field_statistics");
this.fieldStatistics.serialize(generator, mapper);
}

if (ApiTypeHelper.isDefined(this.terms)) {
generator.writeKey("terms");