File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
java/com/leets/commitatobe/domain/user/domain Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 22
33import org .springframework .data .annotation .Id ;
44import org .springframework .data .elasticsearch .annotations .Document ;
5+ import org .springframework .data .elasticsearch .annotations .Field ;
6+ import org .springframework .data .elasticsearch .annotations .FieldType ;
7+ import org .springframework .data .elasticsearch .annotations .Setting ;
58
69import lombok .AllArgsConstructor ;
710import lombok .Data ;
811import lombok .NoArgsConstructor ;
912
1013@ Document (indexName = "users" )
14+ @ Setting (settingPath = "elasticsearch/settings.json" )
1115@ Data
1216@ NoArgsConstructor
1317@ AllArgsConstructor
1418public class UserDocument {
1519 @ Id
1620 private String id ;
21+
22+ @ Field (type = FieldType .Text , analyzer = "hyphen_preserving" )
1723 private String githubId ;
24+
1825 private String tierName ;
26+
1927 private Integer ranking ;
28+
2029 private Integer exp ;
30+
2131 private Integer consecutiveCommitDays ;
2232}
Original file line number Diff line number Diff line change 1+ {
2+ "analysis" : {
3+ "analyzer" : {
4+ "hyphen_preserving" : {
5+ "tokenizer" : " whitespace" ,
6+ "filter" : [" lowercase" ]
7+ }
8+ }
9+ }
10+ }
You canโt perform that action at this time.
0 commit comments