@Override public MappedFieldType smartNameFieldType(String name) { return in.smartNameFieldType(name); }
@Override public MappedFieldType smartNameFieldType(String name) { return in.smartNameFieldType(name); }
@Override public MappedFieldType smartNameFieldType(String name) { return in.smartNameFieldType(name); }
@Override public MappedFieldType smartNameFieldType(String name) { return in.smartNameFieldType(name); }
@Override public MappedFieldType smartNameFieldType(String name) { return in.smartNameFieldType(name); }
MappedFieldType fieldType = context.smartNameFieldType(fieldName); if (fieldType == null) {
private void setFieldInfo(SearchContext context) { if (!config.unmapped()) { this.indexedFieldName = config.fieldContext().field(); fieldType = context.smartNameFieldType(indexedFieldName); } }
when(searchContext.getQueryShardContext()).thenReturn(queryShardContext); for (MappedFieldType fieldType : fieldTypes) { when(searchContext.smartNameFieldType(fieldType.name())).thenReturn(fieldType);
public SignificantTermsAggregatorFactory(String name, ValuesSourceConfig valueSourceConfig, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude includeExclude, String executionHint, Query filter, SignificanceHeuristic significanceHeuristic) { super(name, SignificantStringTerms.TYPE.name(), valueSourceConfig); this.bucketCountThresholds = bucketCountThresholds; this.includeExclude = includeExclude; this.executionHint = executionHint; this.significanceHeuristic = significanceHeuristic; if (!valueSourceConfig.unmapped()) { this.indexedFieldName = config.fieldContext().field(); fieldType = SearchContext.current().smartNameFieldType(indexedFieldName); } this.filter = filter; }
MappedFieldType fieldType = context.smartNameFieldType(fieldName); if (fieldType == null) { if (unmappedType != null) {
MappedFieldType fieldType = context.smartNameFieldType(fieldName); if (fieldType == null) { throw new IllegalArgumentException("failed to find mapper for [" + fieldName + "] for geo distance based sort");
MappedFieldType fieldType = context.smartNameFieldType(field); if (fieldType == null) { ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : this.valuesSourceType;
MappedFieldType fieldType = context.smartNameFieldType(field); if (fieldType == null) { ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : this.valuesSourceType;
MappedFieldType fieldType = context.smartNameFieldType(fieldName); if (fieldType == null) {
MappedFieldType fieldType = context.smartNameFieldType(fieldName); if (fieldType == null) {
MappedFieldType fieldType = context.smartNameFieldType(fieldName); if (fieldType == null) {
MappedFieldType fieldType = context.smartNameFieldType(fieldName); if (fieldType == null) {
MappedFieldType fieldType = context.smartNameFieldType(request.field()); if (fieldType == null) { throw new SearchContextException(context, "[termsByQuery] field '" + request.field() +