|
|
@ -385,13 +385,13 @@ class SimpleSortedIndex : public Index { |
|
|
|
override { |
|
|
|
override { |
|
|
|
auto value = document.Get(field_); |
|
|
|
auto value = document.Get(field_); |
|
|
|
if (value == nullptr) { |
|
|
|
if (value == nullptr) { |
|
|
|
// null
|
|
|
|
|
|
|
|
if (!EncodeJSONPrimitive(JSONDocument(JSONDocument::kNull), key)) { |
|
|
|
if (!EncodeJSONPrimitive(JSONDocument(JSONDocument::kNull), key)) { |
|
|
|
assert(false); |
|
|
|
assert(false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (!EncodeJSONPrimitive(*value, key)) { |
|
|
|
if (!EncodeJSONPrimitive(*value, key)) { |
|
|
|
assert(false); |
|
|
|
assert(false); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
virtual const Comparator* GetComparator() const override { |
|
|
|
virtual const Comparator* GetComparator() const override { |
|
|
|