message/fields: explicit mark contact fields as IndexableTerm

They were so *implicitly*, but the query parser needs the info so contact fields
can use phrase-searces, too.
This commit is contained in:
Dirk-Jan C. Binnema
2022-06-09 00:02:37 +03:00
parent 699ce5369b
commit 49b97e1b6b
2 changed files with 10 additions and 6 deletions

View File

@ -94,14 +94,13 @@ validate_field_flags()
/* - A field has at most one of Indexable, HasTerms, IsXapianBoolean and
IsContact. */
size_t flagnum{};
if (field.is_indexable_term())
++flagnum;
if (field.is_boolean_term())
++flagnum;
if (field.is_normal_term())
++flagnum;
if (field.is_contact())
++flagnum;
if (flagnum > 1) {
//g_warning("invalid field %*s", STR_V(field.name));