Trace field collapsing
@@ -17,7 +17,6 @@ import com.yahoo.search.searchchain.PhaseNames;
import java.util.Iterator;
import java.util.Map;
-
/**
* A searcher which does parametrized collapsing.
*
@@ -64,6 +63,7 @@ public class FieldCollapsingSearcher extends Searcher {
}
@Inject
+ @SuppressWarnings("unused")
public FieldCollapsingSearcher(QrSearchersConfig config) {
QrSearchersConfig.Com.Yahoo.Prelude.Searcher.FieldCollapsingSearcher
s = config.com().yahoo().prelude().searcher().FieldCollapsingSearcher();
@@ -113,11 +113,12 @@ public class FieldCollapsingSearcher extends Searcher {
int performedQueries = 0;
Result resultSource;
String collapseSummary = query.properties().getString(collapseSummaryName);
+ String summaryClass = (collapseSummary == null)
+ ? query.getPresentation().getSummary() : collapseSummary;
+ query.trace("Collapsing by '" + collapseField + "' using summary '" + collapseSummary + "'", 2);
do {
resultSource = search(query.clone(), execution, nextOffset, hitsToRequest);
- String summaryClass = (collapseSummary == null)
- ? query.getPresentation().getSummary() : collapseSummary;
fill(resultSource, summaryClass, execution);
collapse(result, knownCollapses, resultSource, collapseField, collapseSize);
