fluid-api/src/main/java/com/fluidbpm/program/api/vo/field/Field.java
@XmlTransient
	public String getElasticSearchFieldType()
	{
		Type fieldType = this.getTypeAsEnum();

		if(fieldType == null)
		{
			return null;
		}

		//Get the fieldType by Fluid field fieldType...
		switch (fieldType)
		{
			case ParagraphText:
				return ElasticSearchType.TEXT;
			case Text:

				String metaData = this.getTypeMetaData();
				if(metaData == null || metaData.isEmpty())
				{
					return ElasticSearchType.TEXT;
				}

				if(LATITUDE_AND_LONGITUDE.equals(metaData))
				{
					return ElasticSearchType.GEO_POINT;
				}

				return ElasticSearchType.TEXT;
			case TrueFalse:
				return ElasticSearchType.BOOLEAN;
			case DateTime:
				return ElasticSearchType.DATE;
			case Decimal:
				return ElasticSearchType.DOUBLE;
			case MultipleChoice:
				return ElasticSearchType.KEYWORD;
		}

		return null;
	}
@XmlTransient
	public String getElasticSearchFieldType()
	{
		Type fieldType = this.getTypeAsEnum();

		if(fieldType == null)
		{
			return null;
		}

		//Get the fieldType by Fluid field fieldType...
		switch (fieldType)
		{
			case ParagraphText:
				return ElasticSearchType.TEXT;
			case Text:

				String metaData = this.getTypeMetaData();
				if(metaData == null || metaData.isEmpty())
				{
					return ElasticSearchType.TEXT;
				}

				if(LATITUDE_AND_LONGITUDE.equals(metaData))
				{
					return ElasticSearchType.GEO_POINT;
				}

				return ElasticSearchType.TEXT;
			case TrueFalse:
				return ElasticSearchType.BOOLEAN;
			case DateTime:
				return ElasticSearchType.DATE;
			case Decimal:
				return ElasticSearchType.DOUBLE;
			case MultipleChoice:
				return ElasticSearchType.KEYWORD;
		}

		return null;
	}
@ XmlTransient public String getElasticSearchFieldType ( ) { Type fieldType = this . getTypeAsEnum ( ) ; if ( fieldType == null ) { return null ; } //Get the fieldType by Fluid field fieldType... switch ( fieldType ) { case ParagraphText : return ElasticSearchType . TEXT ; case Text : String metaData = this . getTypeMetaData ( ) ; if ( metaData == null || metaData . isEmpty ( ) ) { return ElasticSearchType . TEXT ; } if ( LATITUDE_AND_LONGITUDE . equals ( metaData ) ) { return ElasticSearchType . GEO_POINT ; } return ElasticSearchType . TEXT ; case TrueFalse : return ElasticSearchType . BOOLEAN ; case DateTime : return ElasticSearchType . DATE ; case Decimal : return ElasticSearchType . DOUBLE ; case MultipleChoice : return ElasticSearchType . KEYWORD ; } return null ; }
Returns the ElasticSearch equivalent data field-type from the Fluid datatype.

@return ElasticSearch field-type.

@see ElasticSearchType
Returns the ElasticSearch equivalent data field - type from the Fluid datatype .