From 2fcb79c69355ee8ce63d4fc1e5580cfed1094fbf 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }