1
0
Fork 0

fix geo index comparison

This commit is contained in:
Jan Steemann 2014-02-26 15:11:07 +01:00
parent 4bbfdb827d
commit 7f9ae2292c
1 changed files with 14 additions and 0 deletions

View File

@ -884,6 +884,20 @@ static bool IndexComparator (TRI_json_t const* lhs,
return false;
}
}
value = TRI_LookupArrayJson(lhs, "ignoreNull");
if (TRI_IsBooleanJson(value)) {
if (! TRI_CheckSameValueJson(value, TRI_LookupArrayJson(rhs, "ignoreNull"))) {
return false;
}
}
}
else if (type == TRI_IDX_TYPE_GEO2_INDEX) {
value = TRI_LookupArrayJson(lhs, "ignoreNull");
if (TRI_IsBooleanJson(value)) {
if (! TRI_CheckSameValueJson(value, TRI_LookupArrayJson(rhs, "ignoreNull"))) {
return false;
}
}
}
else if (type == TRI_IDX_TYPE_FULLTEXT_INDEX) {
// minLength