phrases: only allow for index fields

This commit is contained in:
djcb
2017-10-27 18:42:58 +03:00
parent fe18603843
commit 6ce7c89488
4 changed files with 16 additions and 6 deletions

View File

@ -68,7 +68,8 @@ value (const ProcIface::FieldInfoVec& fields, const std::string& v,
return Tree({Node::Type::Value,
std::make_unique<Value>(
item.field, item.prefix, item.id,
proc->process_value(item.field, val))});
proc->process_value(item.field, val),
item.supports_phrase)});
}
// a 'multi-field' such as "recip:"
@ -77,7 +78,8 @@ value (const ProcIface::FieldInfoVec& fields, const std::string& v,
tree.add_child (Tree({Node::Type::Value,
std::make_unique<Value>(
item.field, item.prefix, item.id,
proc->process_value(item.field, val))}));
proc->process_value(item.field, val),
item.supports_phrase)}));
return tree;
}