@Override
    public void validate(Context context) {
        for (SearchCluster cluster : context.model().getSearchClusters()) {
            for (SchemaInfo schemaInfo : cluster.schemas().values()) {
                if ( schemaInfo.getIndexMode() == SchemaInfo.IndexMode.INDEX ) {
                    Schema schema = schemaInfo.fullSchema();
                    for (ImmutableSDField field : schema.allConcreteFields()) {
                        if (field.doesIndexing()) {
                            //if (!field.getIndexTo().isEmpty() && !field.getIndexTo().contains(field.getName())) continue;
                            if (field.getMatching().getAlgorithm().equals(MatchAlgorithm.PREFIX)) {
                                failField(context, schema, field);
                            }
                            for (Map.Entry<String, Index> e : field.getIndices().entrySet()) {
                                if (e.getValue().isPrefix()) {
                                    failField(context, schema, field);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
match:prefix for indexed fields not supported

@author vegardh
config-model/src/main/java/com/yahoo/vespa/model/application/validation/NoPrefixForIndexes.java