Full field paths not respected in sort parameters, closes #1226.

This commit is contained in:
Shay Banon 2011-08-10 16:52:10 +03:00
parent d06a7e9fe1
commit 745b8cbefe
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public class SortParseElement implements SearchParseElement {
if (fieldMapper == null) {
throw new SearchParseException(context, "No mapping found for [" + fieldName + "]");
}
sortFields.add(new SortField(fieldName, fieldMapper.fieldDataType().newFieldComparatorSource(context.fieldDataCache(), missing), reverse));
sortFields.add(new SortField(fieldMapper.names().indexName(), fieldMapper.fieldDataType().newFieldComparatorSource(context.fieldDataCache(), missing), reverse));
}
}
}