You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2018/06/22 04:57:00 UTC

[jira] [Commented] (LUCENE-8367) Make per-dimension drill down optional for each facet dimension

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

Robert Muir commented on LUCENE-8367:
-------------------------------------

Looking at the code it seems like those ValueSources already call equals/etc on the ranges today, so it seems good you fixed that.

Should the DoubleRange equals() compare bits for safety like Double.equals()? Otherwise with == its a bit smelly and buggy (-0 vs 0 and so on).

> Make per-dimension drill down optional for each facet dimension
> ---------------------------------------------------------------
>
>                 Key: LUCENE-8367
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8367
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Major
>         Attachments: LUCENE-8367.patch
>
>
> Today, when you index a {{FacetField}} with path {{foo/bar,}} we index two drill down terms onto the document: {{foo}} and {{foo/bar}}.
> But I suspect some users (like me!) don't need to drilldown just on {{foo}} (effectively "find all documents that have any value for this facet dimension"), so I added an option to {{FacetsConfig}} to let you specify per-dimension whether you need to drill down (defaults to true, matching current behavior).
> I also added {{hashCode}} and {{equals}} to the {{LongRange}} and {{DoubleRange}} classes in facets module, and improved {{CheckIndex}} a bit to print the total %deletions across the index.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org