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;
|
||||
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.elasticsearch.annotations.CompletionField;
|
||||
import org.springframework.data.elasticsearch.annotations.Document;
|
||||
|
||||
/**
|
||||
@ -13,6 +14,7 @@ public class CompletionEntity {
|
||||
private String id;
|
||||
private String name;
|
||||
|
||||
@CompletionField(maxInputLength = 100)
|
||||
private Completion suggest;
|
||||
|
||||
private CompletionEntity() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user