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

@ -41,6 +41,7 @@ struct ProcIface {
struct FieldInfo {
const std::string field;
const std::string prefix;
bool supports_phrase;
unsigned id;
};
using FieldInfoVec = std::vector<FieldInfo>;
@ -102,7 +103,7 @@ struct DummyProc: public ProcIface { // For testing
std::vector<FieldInfo>
process_field (const std::string& field) const override {
return {{ field, "x", 0 }};
return {{ field, "x", false, 0 }};
}
std::string