Package org.elasticsearch.index.fielddata

Examples of org.elasticsearch.index.fielddata.FieldDataType


        if(fieldName != null) {
            final FieldMapper<?> mapper = context.smartNameFieldMapper(fieldName);
            if(mapper == null) {
                throw new FacetPhaseExecutionException(fieldName, "no mapping found for " + fieldName);
            }
            final FieldDataType fieldDataType = mapper.fieldDataType();
            final IndexFieldData fieldData = context.fieldData().getForField(mapper);
            return new TypedFieldData(fieldData, fieldDataType);
        }
        return null;
    }
View Full Code Here


        return new FieldMapper.Names("br");
    }

    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("string");
    }
View Full Code Here

        return new FieldMapper.Names("d");
    }

    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("double");
    }
View Full Code Here

     * @see {@link org.elasticsearch.index.mapper.core.BooleanFieldMapper}
     * @return
     */
    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("string");
    }
View Full Code Here

        return new FieldMapper.Names("s");
    }

    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("short");
    }
View Full Code Here

        return new FieldMapper.Names("i");
    }

    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("int");
    }
View Full Code Here

        return new FieldMapper.Names("l");
    }

    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("long");
    }
View Full Code Here

        return new FieldMapper.Names("f");
    }

    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("float");
    }
View Full Code Here

        return new FieldMapper.Names("b");
    }

    @Override
    protected FieldDataType fieldType() {
        return new FieldDataType("byte");
    }
View Full Code Here

        return Defaults.FIELD_TYPE;
    }

    @Override
    public FieldDataType defaultFieldDataType() {
        return new FieldDataType(IndexFieldMapper.NAME);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.fielddata.FieldDataType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.