From 1dfc4bb517fe20cf58c84b90bda9c52962eeb841 Mon Sep 17 00:00:00 2001 From: To-om Date: Mon, 18 Sep 2017 17:21:31 +0200 Subject: [PATCH] #31 enable fielddata for text attributes --- app/org/elastic4play/models/TextAttributeFormat.scala | 2 +- version.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/org/elastic4play/models/TextAttributeFormat.scala b/app/org/elastic4play/models/TextAttributeFormat.scala index fa664b5..46137be 100644 --- a/app/org/elastic4play/models/TextAttributeFormat.scala +++ b/app/org/elastic4play/models/TextAttributeFormat.scala @@ -26,5 +26,5 @@ object TextAttributeFormat extends AttributeFormat[String]("text") { } } - override def elasticType(attributeName: String): TextFieldDefinition = textField(attributeName) + override def elasticType(attributeName: String): TextFieldDefinition = textField(attributeName).fielddata(true) } diff --git a/version.sbt b/version.sbt index 291f1aa..5f5c791 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version := "1.3.0" +version := "1.3.1"