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

Don't use the fixed bitset filter cache for child nested level filters, but the regular filter cache instead #9740

Conversation

martijnvg
Copy link
Member

Random access based bitsets are not required for the child level nested level filters.

Closes #8810

return new NumericDocValues() {

int lastSeenRootDoc = -1;
long lastEmittedValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rather initialize lastSeenRootDoc=0 and lastEmittedValue=missingValue to avoid the if (rootDoc == 0) check below?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that makes sense! I'll change that.

@jpountz
Copy link
Contributor

jpountz commented Feb 19, 2015

LGTM

…s, but the regular filter cache instead.

Random access based bitsets are not required for the child level nested level filters.

Closes elastic#8810
@martijnvg martijnvg force-pushed the nested/sorting/non_random_access_child_bitsets branch from 1ff3439 to 1644644 Compare February 19, 2015 20:34
@martijnvg martijnvg merged commit 1644644 into elastic:master Feb 19, 2015
@martijnvg martijnvg deleted the nested/sorting/non_random_access_child_bitsets branch May 18, 2015 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.OutOfMemoryError: Java heap space after upgrade from 0.90
3 participants