mirror of https://github.com/apache/lucene.git
LUCENE-2858: Reverse merged revision(s) from lucene/dev/trunk up to 1237714
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene2858@1237716 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
commit
0d7055bf3d
|
@ -200,6 +200,9 @@ Bug Fixes
|
|||
* LUCENE-3697: SimpleBoundaryScanner does not work well when highlighting
|
||||
at the beginning of the text. (Shay Banon via Koji Sekiguchi)
|
||||
|
||||
* LUCENE-3719: FVH: slow performance on very large queries.
|
||||
(Igor Motov via Koji Sekiguchi)
|
||||
|
||||
Documentation
|
||||
|
||||
* LUCENE-3599: Javadocs for DistanceUtils.haversine() were incorrectly
|
||||
|
|
|
@ -17,11 +17,11 @@ package org.apache.lucene.search.vectorhighlight;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
@ -60,7 +60,7 @@ public class FieldQuery {
|
|||
|
||||
FieldQuery( Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch ) throws IOException {
|
||||
this.fieldMatch = fieldMatch;
|
||||
List<Query> flatQueries = new ArrayList<Query>();
|
||||
Set<Query> flatQueries = new LinkedHashSet<Query>();
|
||||
flatten( query, reader, flatQueries );
|
||||
saveTerms( flatQueries, reader );
|
||||
Collection<Query> expandQueries = expand( flatQueries );
|
||||
|
@ -133,7 +133,7 @@ public class FieldQuery {
|
|||
* => expandQueries={a,"b c","c d","b c d"}
|
||||
*/
|
||||
Collection<Query> expand( Collection<Query> flatQueries ){
|
||||
List<Query> expandQueries = new ArrayList<Query>();
|
||||
Set<Query> expandQueries = new LinkedHashSet<Query>();
|
||||
for( Iterator<Query> i = flatQueries.iterator(); i.hasNext(); ){
|
||||
Query query = i.next();
|
||||
i.remove();
|
||||
|
|
|
@ -132,7 +132,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
|
|||
// wait a bit in case any ending threads have anything to release
|
||||
int retries = 0;
|
||||
while (endNumOpens - numOpens != endNumCloses - numCloses) {
|
||||
if (retries++ > 60) {
|
||||
if (retries++ > 120) {
|
||||
break;
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue