Package org.elasticsearch.index.mapper.core.LongFieldMapper

Examples of org.elasticsearch.index.mapper.core.LongFieldMapper.CustomLongNumericField


            value = parseStringValue(dateAsString);
        }

        if (value != null) {
            if (fieldType.indexOptions() != IndexOptions.NONE || fieldType.stored()) {
                CustomLongNumericField field = new CustomLongNumericField(this, value, fieldType);
                field.setBoost(boost);
                fields.add(field);
            }
            if (hasDocValues()) {
                addDocValue(context, fields, value);
            }
View Full Code Here


            context.allEntries().addText(names.fullName(), ipAsString, boost);
        }

        final long value = ipToLong(ipAsString);
        if (fieldType.indexOptions() != IndexOptions.NONE || fieldType.stored()) {
            CustomLongNumericField field = new CustomLongNumericField(this, value, fieldType);
            field.setBoost(boost);
            fields.add(field);
        }
        if (hasDocValues()) {
            addDocValue(context, fields, value);
        }
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.mapper.core.LongFieldMapper.CustomLongNumericField

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.