import { xLuceneFieldType , ESFieldType , xLuceneTypeConfig } from '@terascope/types' ; import BaseType from '../base-type' ; import { GraphQLType , TypeESMapping } from '../../interfaces' ; export default class Double extends BaseType { toESMapping ( _version ? ) { return { mapping : { [ this . field ] : this . config . indexed === false ? { type : 'double' as ESFieldType , index : false } : { type : 'double' as ESFieldType } } } ; } toGraphQL ( ) { return this . _formatGql ( 'Float' ) ; } toXlucene ( ) { return { [ this . field ] : xLuceneFieldType . Float } ; } }