[
https://issues.apache.org/jira/browse/LUCENE-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569924#comment-13569924
]
Michael McCandless commented on LUCENE-4748:
--------------------------------------------
bq. Whether DrillDown (and sideways) should have .search(), or .getCollector()
(something I've been thinking about before looking at your 2nd patch) ... I
think that .search() looks good. If needed, we can always add a getCollector()
later.
I think we should somehow do a .getCollector().
For example, if you want to do grouping (using GroupingSearch) and faceting
(using DrillSideways) ... you're kind of stuck because each of these classes
does the "search" for you.
It's also a hassle having to make the N search methods (I still have a nocommit
to add searchAfter...).
So a .getCollector would be nice so the app could use MultiCollector to run
everything (maybe they need to do joins too!).
But the challenge is ... we'd also need .getQuery, because DrillSideways runs a
different Query from what the user provided (and a different collector). And
then we'd need to expose the collector, and add methods to get the drill-down
and drill-sideways results ...
> Add DrillSideways helper class to Lucene facets module
> ------------------------------------------------------
>
> Key: LUCENE-4748
> URL: https://issues.apache.org/jira/browse/LUCENE-4748
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/facet
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 4.2, 5.0
>
> Attachments: LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch
>
>
> This came out of a discussion on the java-user list with subject
> "Faceted search in OR": http://markmail.org/thread/jmnq6z2x7ayzci5k
> The basic idea is to count "near misses" during collection, ie
> documents that matched the main query and also all except one of the
> drill down filters.
> Drill sideways makes for a very nice faceted search UI because you
> don't "lose" the facet counts after drilling in. Eg maybe you do a
> search for "cameras", and you see facets for the manufacturer, so you
> drill into "Nikon".
> With drill sideways, even after drilling down, you'll still get the
> counts for all the other brands, where each count tells you how many
> hits you'd get if you changed to a different manufacturer.
> This becomes more fun if you add further drill-downs, eg maybe I next drill
> down into Resolution=10 megapixels", and then I can see how many 10
> megapixel cameras all other manufacturers, and what other resolutions
> Nikon cameras offer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]