File tree Expand file tree Collapse file tree 4 files changed +72
-1
lines changed
src/main/java/com/arangodb Expand file tree Collapse file tree 4 files changed +72
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ public ArangoSearchProperties deserialize(
233
233
if (consolidateThreshold .isObject ()) {
234
234
final ConsolidateThreshold t = ConsolidateThreshold .of (type );
235
235
final VPackSlice threshold = consolidateThreshold .get ("threshold" );
236
- if (threshold .isDouble ()) {
236
+ if (threshold .isNumber ()) {
237
237
t .threshold (threshold .getAsDouble ());
238
238
}
239
239
final VPackSlice segmentThreshold = consolidateThreshold .get ("segmentThreshold" );
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public class CollectionLink {
34
34
private final Collection <String > analyzers ;
35
35
private Boolean includeAllFields ;
36
36
private Boolean trackListPositions ;
37
+ private TrackValuesType trackValues ;
37
38
private final Collection <FieldLink > fields ;
38
39
39
40
private CollectionLink (final String name ) {
@@ -85,6 +86,17 @@ public CollectionLink trackListPositions(final Boolean trackListPositions) {
85
86
return this ;
86
87
}
87
88
89
+ /**
90
+ * @param trackValues
91
+ * How should the view track the attribute values, this setting allows for additional value retrieval
92
+ * optimizations (default "none").
93
+ * @return link
94
+ */
95
+ public CollectionLink trackValues (final TrackValuesType trackValues ) {
96
+ this .trackValues = trackValues ;
97
+ return this ;
98
+ }
99
+
88
100
/**
89
101
* @param fields
90
102
* A list of linked fields
@@ -111,6 +123,10 @@ public Boolean getTrackListPositions() {
111
123
return trackListPositions ;
112
124
}
113
125
126
+ public TrackValuesType getTrackValues () {
127
+ return trackValues ;
128
+ }
129
+
114
130
public Collection <FieldLink > getFields () {
115
131
return fields ;
116
132
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ public class FieldLink {
10
10
private final Collection <String > analyzers ;
11
11
private Boolean includeAllFields ;
12
12
private Boolean trackListPositions ;
13
+ private TrackValuesType trackValues ;
13
14
private final Collection <FieldLink > fields ;
14
15
15
16
private FieldLink (final String name ) {
@@ -61,6 +62,17 @@ public FieldLink trackListPositions(final Boolean trackListPositions) {
61
62
return this ;
62
63
}
63
64
65
+ /**
66
+ * @param trackValues
67
+ * How should the view track the attribute values, this setting allows for additional value retrieval
68
+ * optimizations (default "none").
69
+ * @return link
70
+ */
71
+ public FieldLink trackValues (final TrackValuesType trackValues ) {
72
+ this .trackValues = trackValues ;
73
+ return this ;
74
+ }
75
+
64
76
/**
65
77
* @param fields
66
78
* A list of linked fields
@@ -87,6 +99,10 @@ public Boolean getTrackListPositions() {
87
99
return trackListPositions ;
88
100
}
89
101
102
+ public TrackValuesType getTrackValues () {
103
+ return trackValues ;
104
+ }
105
+
90
106
public Collection <FieldLink > getFields () {
91
107
return fields ;
92
108
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * DISCLAIMER
3
+ *
4
+ * Copyright 2018 ArangoDB GmbH, Cologne, Germany
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Copyright holder is ArangoDB GmbH, Cologne, Germany
19
+ */
20
+
21
+ package com .arangodb .model .arangosearch ;
22
+
23
+ /**
24
+ * @author Mark Vollmary
25
+ *
26
+ */
27
+ public enum TrackValuesType {
28
+
29
+ /**
30
+ * Do not track values by the view
31
+ */
32
+ NONE ,
33
+
34
+ /**
35
+ * Track only value presence, to allow use of the EXISTS() function.
36
+ */
37
+ EXISTS
38
+
39
+ }
You can’t perform that action at this time.
0 commit comments