You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/02/26 22:48:25 UTC
[jira] [Commented] (LUCENE-5474) Add example for retrieving facet
counts without retrieving documents
[ https://issues.apache.org/jira/browse/LUCENE-5474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913558#comment-13913558 ]
Michael McCandless commented on LUCENE-5474:
--------------------------------------------
Thanks Rob, this looks good. Maybe we could fold it in as a just another method on the existing SimpleFacetsExample.java, instead of making a new class?
> Add example for retrieving facet counts without retrieving documents
> --------------------------------------------------------------------
>
> Key: LUCENE-5474
> URL: https://issues.apache.org/jira/browse/LUCENE-5474
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/facet
> Affects Versions: 4.7
> Reporter: Rob Audenaerde
> Attachments: FacetOnlyExample.java
>
>
> In the examples of facetting the {{FacetsCollector.search()}} is used. There are use cases where you do not need the documents that match the search.
> It would be nice if there is an example showing this.
> Basically, it comes down to using {{searcher.search(query, null /* Filter */, facetCollector)}}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org