1
2
3
4
5
6 package org.tailormap.api.solr;
7
8 import org.apache.solr.client.solrj.beans.Field;
9 import org.tailormap.api.util.Constants;
10
11 public class FeatureIndexingDocument implements Constants {
12 @Field(value = ID)
13 @SuppressWarnings("unused")
14 private final String fid;
15
16 @Field(value = SEARCH_LAYER)
17 @SuppressWarnings("unused")
18 private final Long searchLayer;
19
20 @Field(value = INDEX_SEARCH_FIELD)
21 @SuppressWarnings("unused")
22 private String[] searchFields;
23
24 @Field(value = INDEX_DISPLAY_FIELD)
25 @SuppressWarnings("unused")
26 private String[] displayFields;
27
28 @Field(value = INDEX_GEOM_FIELD)
29 @SuppressWarnings("unused")
30 private String geometry;
31
32 public FeatureIndexingDocument(String fid, Long searchLayerId) {
33 this.fid = fid;
34 this.searchLayer = searchLayerId;
35 }
36
37 public void setGeometry(String wktGeometry) {
38 this.geometry = wktGeometry;
39 }
40
41 public void setSearchFields(String[] searchFields) {
42 this.searchFields = searchFields;
43 }
44
45 public void setDisplayFields(String[] displayFields) {
46 this.displayFields = displayFields;
47 }
48 }