mirror of https://github.com/apache/lucene.git
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@893576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9881179cae
commit
d4b35b513a
|
@ -8,6 +8,10 @@ CHANGES
|
|||
|
||||
$Id:$
|
||||
|
||||
================== Release 1.5-dev ==================
|
||||
|
||||
* SOLR-1684: Switch to use the SolrIndexSearcher.doc(int, Set<String>) method b/c it can use the document cache (gsingers)
|
||||
|
||||
================== Release 1.4.0 ==================
|
||||
|
||||
Solr Clustering will be released for the first time in Solr 1.4. See http://wiki.apache.org/solr/ClusteringComponent
|
||||
|
|
|
@ -152,8 +152,7 @@ public class CarrotClusteringEngine extends SearchClusteringEngine {
|
|||
|
||||
SolrIndexSearcher searcher = sreq.getSearcher();
|
||||
List<Document> result = new ArrayList<Document>(docList.size());
|
||||
FieldSelector fieldSelector = new SetBasedFieldSelector(fieldsToLoad,
|
||||
Collections.emptySet());
|
||||
|
||||
float[] scores = {1.0f};
|
||||
int[] docsHolder = new int[1];
|
||||
Query theQuery = query;
|
||||
|
@ -161,7 +160,7 @@ public class CarrotClusteringEngine extends SearchClusteringEngine {
|
|||
while (docsIter.hasNext()) {
|
||||
Integer id = docsIter.next();
|
||||
org.apache.lucene.document.Document doc = searcher.doc(id,
|
||||
fieldSelector);
|
||||
fieldsToLoad);
|
||||
String snippet = getValue(doc, snippetField);
|
||||
if (produceSummary == true) {
|
||||
docsHolder[0] = id.intValue();
|
||||
|
|
Loading…
Reference in New Issue