Skip to content

Commit

Permalink
Fix missingLat typo (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
aprudhomme authored Oct 4, 2024
1 parent d1ef31c commit f4da306
Show file tree
Hide file tree
Showing 7 changed files with 1,753 additions and 1,735 deletions.
2 changes: 1 addition & 1 deletion clientlib/src/main/proto/yelp/nrtsearch/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ message SortType {
/* Whether missing values should sort last instead of first.
Note that this runs \"before\" reverse, so if you sort missing first and reverse=true then missing values will
be at the end.*/
bool missingLat = 4;
bool missingLast = 4;
// Sort in reverse of the field's natural order
bool reverse = 5;
// The unit used for the distance sort. Supported options are m, km and mi, default is m
Expand Down
2,035 changes: 1,024 additions & 1,011 deletions grpc-gateway/luceneserver.pb.go

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion grpc-gateway/luceneserver.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3011,6 +3011,11 @@
"type": "integer",
"format": "int32",
"description": "Position increment gap for indexing multi valued TEXT fields. Must be \u003e= 0, defaulting to 100 when not set."
},
"ignoreAbove": {
"type": "integer",
"format": "int32",
"title": "For arrays of strings, ignoreAbove will be applied for each array element separately and string elements longer than ignore_above will not be indexed or stored.\nThis option is also useful for protecting against Lucene’s term byte-length limit of 32766"
}
}
},
Expand Down Expand Up @@ -4960,7 +4965,7 @@
"origin": {
"$ref": "#/definitions/luceneserverPoint"
},
"missingLat": {
"missingLast": {
"type": "boolean",
"description": "Whether missing values should sort last instead of first.\nNote that this runs \\\"before\\\" reverse, so if you sort missing first and reverse=true then missing values will\nbe at the end."
},
Expand Down
1,438 changes: 719 additions & 719 deletions grpc-gateway/search.pb.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public SortField getSortField(SortType type) {
sortField = new SortField(getName(), SortField.Type.STRING, type.getReverse());
}

boolean missingLast = type.getMissingLat();
boolean missingLast = type.getMissingLast();
if (missingLast) {
sortField.setMissingValue(SortField.STRING_LAST);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public SortField getSortField(SortType type) {
throw new IllegalStateException("DATE_TIME does not support sort for multi value field");
}
SortField sortField = new SortField(getName(), SortField.Type.LONG, type.getReverse());
boolean missingLast = type.getMissingLat();
boolean missingLast = type.getMissingLast();
sortField.setMissingValue(missingLast ? Long.MAX_VALUE : Long.MIN_VALUE);
return sortField;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public SortField getSortField(SortType type) {
sortField = new SortField(getName(), getSortFieldType(), type.getReverse());
}

boolean missingLast = type.getMissingLat();
boolean missingLast = type.getMissingLast();
sortField.setMissingValue(getSortMissingValue(missingLast));
return sortField;
}
Expand Down

0 comments on commit f4da306

Please sign in to comment.