Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSEARCH-1927 + HSEARCH-1929 Aggregations on multi-valued numeric fields for the Lucene backend #2265

Merged
merged 17 commits into from
Apr 15, 2020

Conversation

yrodiere
Copy link
Member

  • HSEARCH-1927: Range faceting on multiple numeric values does not work
  • HSEARCH-1929: @facet on multi value field breaks indexing (be it for discrete or range faceting)

Based on code extracted from #2255 by @wklaczynski , with a bit of clean-up and a few fixes.

wklaczynski and others added 6 commits April 14, 2020 12:00
This relied on scores to pass the replacement for missing values,
but we just don't need that, since missing values are handled correctly
in the FieldComparators.

See also 95777b9
…r aggregations

1. This is not the purpose of this ticket, so this should be done as a
   second step.
2. We know that we will not be able to implement this for Elasticsearch,
   so we cannot expose this in common APIs, but should expose it in
   Lucene-specific APIs instead.
…n of doc values retrieval in nested documents
…es accessors in the Lucene backend

1. To avoid hacks where sub-classes of NumericDocValues can actually
   provide multiple values, in complete opposition to the purpose of the
   NumericDocValues interface.
2. To avoid instantiation of one lists per document followed by a sort
   when iterating over the doc values for aggregations.
   Aggregations can iterate over millions of documents, so this
   instantiation and sort can actually become a big deal
   performance-wise.
…tions

It's less code, and we don't need more at the moment. We can always
revert this commit if one day we need more.
@sonarcloud
Copy link

sonarcloud bot commented Apr 15, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 10 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@fax4ever fax4ever self-assigned this Apr 15, 2020
@fax4ever fax4ever merged commit 9f216b4 into hibernate:master Apr 15, 2020
@fax4ever
Copy link
Contributor

@yrodiere great work
@wklaczynski thanks for the great contribution

nothing to say about it, merged. Thanks

@yrodiere yrodiere deleted the HSEARCH-1929 branch April 16, 2020 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants