public SchemaDef addIndexName(String indexName) {
        noViewShadowing(indexName);
        indexNames.add(indexName);
        return this;
    }
Adds a search field to the schema.

@param field the field to add
@return this, for chaining
config-model/src/main/java/com/yahoo/vespa/documentmodel/SchemaDef.java