mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-07 20:52:10 +00:00
DATAES-211 - index analyzer is removed. use analyzer for search and index analyzer or use search analyzer.
This commit is contained in:
parent
a05a597123
commit
c7313b52eb
@ -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")
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user