mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-08 13:12:10 +00:00
DATAES-211 - entity should have suggest mapping
This commit is contained in:
parent
4efec54e1d
commit
6a2b5fd945
@ -1,6 +1,7 @@
|
|||||||
package org.springframework.data.elasticsearch.core.completion;
|
package org.springframework.data.elasticsearch.core.completion;
|
||||||
|
|
||||||
import org.springframework.data.annotation.Id;
|
import org.springframework.data.annotation.Id;
|
||||||
|
import org.springframework.data.elasticsearch.annotations.CompletionField;
|
||||||
import org.springframework.data.elasticsearch.annotations.Document;
|
import org.springframework.data.elasticsearch.annotations.Document;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -13,6 +14,7 @@ public class CompletionEntity {
|
|||||||
private String id;
|
private String id;
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@CompletionField(maxInputLength = 100)
|
||||||
private Completion suggest;
|
private Completion suggest;
|
||||||
|
|
||||||
private CompletionEntity() {
|
private CompletionEntity() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user