/** * Add a sub-field. A {@code SortedMap} is required for consistency of the index settings hash. * @see IndexDefinitionHash */ private T addSubField(String fieldName, SortedMap<String, String> fieldDefinition) { subFields.put(fieldName, fieldDefinition); return castThis(); }
/** * Add subfields, one for each analyzer. */ public T addSubFields(DefaultIndexSettingsElement... analyzers) { Arrays.stream(analyzers) .forEach(analyzer -> addSubField(analyzer.getSubFieldSuffix(), analyzer.fieldMapping())); return castThis(); }
/** * Add a sub-field. A {@code SortedMap} is required for consistency of the index settings hash. * @see IndexDefinitionHash */ private T addSubField(String fieldName, SortedMap<String, String> fieldDefinition) { subFields.put(fieldName, fieldDefinition); return castThis(); }
/** * "index: false" -> Make this field not searchable. * By default field is "true": it is searchable, but index the value exactly * as specified. */ public T disableSearch() { this.disableSearch = true; return castThis(); }
/** * Add subfields, one for each analyzer. */ public T addSubFields(DefaultIndexSettingsElement... analyzers) { Arrays.stream(analyzers) .forEach(analyzer -> addSubField(analyzer.getSubFieldSuffix(), analyzer.fieldMapping())); return castThis(); }
public T store() { this.store = true; return castThis(); }
/** * Position offset term vectors are required for the fast_vector_highlighter (fvh). */ public T termVectorWithPositionOffsets() { this.termVectorWithPositionOffsets = true; return castThis(); }
/** * Norms consume useless memory if string field is used for filtering or aggregations. * * https://www.elastic.co/guide/en/elasticsearch/reference/2.3/norms.html * https://www.elastic.co/guide/en/elasticsearch/guide/current/scoring-theory.html#field-norm */ public T disableNorms() { this.disableNorms = true; return castThis(); }
public T store() { this.store = true; return castThis(); }
/** * "index: false" -> Make this field not searchable. * By default field is "true": it is searchable, but index the value exactly * as specified. */ public T disableSearch() { this.disableSearch = true; return castThis(); }
/** * Position offset term vectors are required for the fast_vector_highlighter (fvh). */ public T termVectorWithPositionOffsets() { this.termVectorWithPositionOffsets = true; return castThis(); }
/** * Norms consume useless memory if string field is used for filtering or aggregations. * * https://www.elastic.co/guide/en/elasticsearch/reference/2.3/norms.html * https://www.elastic.co/guide/en/elasticsearch/guide/current/scoring-theory.html#field-norm */ public T disableNorms() { this.disableNorms = true; return castThis(); }