Permalink
Browse files

[bugfix] new range index: wrong type returned for field

  • Loading branch information...
1 parent 42d91df commit 28bb546ead00a9f3674c648de440766bed67278d @wolfgangmm wolfgangmm committed Aug 28, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 extensions/indexes/range/src/org/exist/indexing/range/RangeIndexConfig.java
@@ -165,9 +165,11 @@ public boolean matches(NodePath path) {
public int getType(String field) {
for (RangeIndexConfigElement conf : paths.values()) {
- int type = conf.getType(field);
- if (type != Type.ITEM) {
- return type;
+ if (conf.isComplex()) {
+ int type = conf.getType(field);
+ if (type != Type.ITEM) {
+ return type;
+ }
}
}
return Type.ITEM;

0 comments on commit 28bb546

Please sign in to comment.