mirror of https://github.com/apache/lucene.git
SOLR-2148: Highlighter doesn't support q.alt
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1006272 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cd938760da
commit
85efafdfa2
|
@ -514,6 +514,8 @@ Bug Fixes
|
|||
getLatestAccessedItems(0) or getOldestAccessedItems(0).
|
||||
(David Smiley via hossman)
|
||||
|
||||
* SOLR-2148: Highlighter doesn't support q.alt. (koji)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ public class DisMaxQParser extends QParser {
|
|||
|
||||
@Override
|
||||
public Query getHighlightQuery() throws ParseException {
|
||||
return parsedUserQuery;
|
||||
return parsedUserQuery == null ? altUserQuery : parsedUserQuery;
|
||||
}
|
||||
|
||||
public void addDebugInfo(NamedList<Object> debugInfo) {
|
||||
|
|
|
@ -481,7 +481,7 @@ class ExtendedDismaxQParser extends QParser {
|
|||
|
||||
@Override
|
||||
public Query getHighlightQuery() throws ParseException {
|
||||
return parsedUserQuery;
|
||||
return parsedUserQuery == null ? altUserQuery : parsedUserQuery;
|
||||
}
|
||||
|
||||
public void addDebugInfo(NamedList<Object> debugInfo) {
|
||||
|
|
Loading…
Reference in New Issue