fix highlight score ordering for a field
This commit is contained in:
parent
a9bc775213
commit
741b8dd70b
|
@ -141,7 +141,7 @@ public class HighlighterParseElement implements SearchParseElement {
|
||||||
field.fragmentOffset(parser.intValue());
|
field.fragmentOffset(parser.intValue());
|
||||||
} else if ("highlight_filter".equals(fieldName) || "highlightFilter".equals(fieldName)) {
|
} else if ("highlight_filter".equals(fieldName) || "highlightFilter".equals(fieldName)) {
|
||||||
field.highlightFilter(parser.booleanValue());
|
field.highlightFilter(parser.booleanValue());
|
||||||
} else if ("score".equals(fieldName)) {
|
} else if ("order".equals(fieldName)) {
|
||||||
field.scoreOrdered("score".equals(parser.text()));
|
field.scoreOrdered("score".equals(parser.text()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue