use parsing field to check for order

This commit is contained in:
kimchy 2011-02-19 01:41:48 +02:00
parent d7a02fb28f
commit d3ba8bd487
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public class TermsFacetProcessor extends AbstractComponent implements FacetProce
regex = parser.text(); regex = parser.text();
} else if ("regex_flags".equals(currentFieldName) || "regexFlags".equals(currentFieldName)) { } else if ("regex_flags".equals(currentFieldName) || "regexFlags".equals(currentFieldName)) {
regexFlags = parser.text(); regexFlags = parser.text();
} else if ("order".equals(currentFieldName) || "comparator".equals(field)) { } else if ("order".equals(currentFieldName) || "comparator".equals(currentFieldName)) {
comparatorType = TermsFacet.ComparatorType.fromString(parser.text()); comparatorType = TermsFacet.ComparatorType.fromString(parser.text());
} else if ("script".equals(currentFieldName)) { } else if ("script".equals(currentFieldName)) {
script = parser.text(); script = parser.text();