Alexander Stepanov created LUCENE-7675:
------------------------------------------
Summary: Usage of TermGroupFacetCollector and sorting by field
Key: LUCENE-7675
URL: https://issues.apache.org/jira/browse/LUCENE-7675
Project: Lucene - Core
Issue Type: New Feature
Affects Versions: 6.4
Reporter: Alexander Stepanov
I'm using TermGroupFacetCollector
BooleanQuery.Builder b = new BooleanQuery.Builder();
for (Long id : keywordIds) {
b.add(new TermQuery(LuceneFieldFactory.createTerm(keywordField,
id)), BooleanClause.Occur.SHOULD);
result.put(id, 0L);
}
TermGroupFacetCollector c =
TermGroupFacetCollector.createTermGroupFacetCollector(sortedIdFieldName,
sortedKeywordFieldName, true, null, keywordsSize);
s.search(b.build(), c);
I'm not able to make sort in method "search", because there is no necessary
method's signature with Sort and Collector, how can it be solved?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]