DATAES-211 - index analyzer is removed. use analyzer for search and index analyzer or use search analyzer.

This commit is contained in:
Mohsin Husen 2016-02-13 10:45:20 +00:00
parent a05a597123
commit c7313b52eb
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class SampleDateMappingEntity {
@Id
private String id;
@Field(type = String, index = not_analyzed, store = true, searchAnalyzer = "standard", indexAnalyzer = "standard")
@Field(type = String, index = not_analyzed, store = true, analyzer = "standard")
private String message;
@Field(type = Date, format = DateFormat.custom, pattern = "dd.MM.yyyy hh:mm")

View File

@ -27,7 +27,7 @@ import org.springframework.data.elasticsearch.annotations.Field;
@Document(indexName = "test-inherited-mapping", type = "mapping", shards = 1, replicas = 0, refreshInterval = "-1")
public class SampleInheritedEntity extends AbstractInheritedEntity {
@Field(type = String, index = not_analyzed, store = true, searchAnalyzer = "standard", indexAnalyzer = "standard")
@Field(type = String, index = not_analyzed, store = true, analyzer = "standard")
private String message;
public String getMessage() {