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:
Koji Sekiguchi 2010-10-10 11:18:33 +00:00
parent cd938760da
commit 85efafdfa2
3 changed files with 4 additions and 2 deletions

View File

@ -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
----------------------

View File

@ -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) {

View File

@ -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) {