28
28
import org .apache .lucene .util .NumericUtils ;
29
29
import org .exist .dom .QName ;
30
30
import org .exist .indexing .lucene .LuceneIndexConfig ;
31
+ import org .exist .indexing .range .conversion .TypeConverter ;
31
32
import org .exist .storage .NodePath ;
32
33
import org .exist .util .DatabaseConfigurationException ;
33
34
import org .exist .util .XMLString ;
@@ -58,7 +59,7 @@ public class RangeIndexConfigElement {
58
59
protected boolean caseSensitive = true ;
59
60
protected boolean usesCollation = false ;
60
61
protected int wsTreatment = XMLString .SUPPRESS_NONE ;
61
- private org . exist . indexing . range . conversion . TypeConverter typeConverter = null ;
62
+ private TypeConverter typeConverter = null ;
62
63
63
64
public RangeIndexConfigElement (Element node , Map <String , String > namespaces ) throws DatabaseConfigurationException {
64
65
String match = node .getAttribute (MATCH_ATTR );
@@ -113,7 +114,7 @@ public RangeIndexConfigElement(Element node, Map<String, String> namespaces) thr
113
114
if (!custom .isEmpty ()) {
114
115
try {
115
116
final Class <?> customClass = Class .forName (custom );
116
- typeConverter = (org . exist . indexing . range . conversion . TypeConverter ) customClass .getDeclaredConstructor ().newInstance ();
117
+ typeConverter = (TypeConverter ) customClass .getDeclaredConstructor ().newInstance ();
117
118
} catch (ClassNotFoundException e ) {
118
119
RangeIndex .LOG .warn ("Class for custom-type not found: {}" , custom );
119
120
} catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e ) {
@@ -136,7 +137,7 @@ private void parseChildren(final Node root) throws DatabaseConfigurationExceptio
136
137
137
138
public Field convertToField (String fieldName , String content ) throws IOException {
138
139
// check if a converter is defined for this index to handle on-the-fly conversions
139
- final org . exist . indexing . range . conversion . TypeConverter custom = getTypeConverter (fieldName );
140
+ final TypeConverter custom = getTypeConverter (fieldName );
140
141
if (custom != null ) {
141
142
return custom .toField (fieldName , content );
142
143
}
@@ -309,7 +310,7 @@ public int getType() {
309
310
return type ;
310
311
}
311
312
312
- public org . exist . indexing . range . conversion . TypeConverter getTypeConverter (String fieldName ) {
313
+ public TypeConverter getTypeConverter (String fieldName ) {
313
314
return typeConverter ;
314
315
}
315
316
0 commit comments