[ 
https://issues.apache.org/jira/browse/LUCENE-7675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861937#comment-15861937
 ] 

Michael McCandless commented on LUCENE-7675:
--------------------------------------------

Hi, maybe try first asking this question on Lucene's user's list 
(java-u...@lucene.apache.org) instead?

> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to