Don't use field indexer when looking for blank/missing fields

Fixes #4247
This commit is contained in:
Jeremy Ruston
2019-09-09 14:47:27 +01:00
parent 85da202cca
commit 953038f0b2
+1 -1
View File
@@ -53,7 +53,7 @@ exports.field = function(source,operator,options) {
}
});
} else {
if(source.byField) {
if(source.byField && operator.operand) {
indexedResults = source.byField(fieldname,operator.operand);
if(indexedResults) {
return indexedResults