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

Query String caching could cause matched_filters not working #4371

Closed
wants to merge 1 commit into from

Conversation

dadoonet
Copy link
Member

@dadoonet dadoonet commented Dec 7, 2013

PR for #4361.

When searching with a query containing query_strings inside a bool query, the specified _name is randomly missing from the results due to caching.

@kimchy
Copy link
Member

kimchy commented Dec 7, 2013

Looks good, the bug is indeed related to caching, so it would be great if the pull request title and comment would reflect that.

Also, because its relating to caching, we can simply test for it. For example, index the docs, and execute the search requests with preference set to _primary, and execute it a couple of times, the second one should kick in the caching, and the bug.

When searching with a query containing query_strings inside a bool query, the specified _name is randomly missing from the results due to caching.

Closes elastic#4361.
Closes elastic#4371.
@dadoonet
Copy link
Member Author

dadoonet commented Dec 7, 2013

@kimchy PR updated. You're right. Using _primary cause it failing at every run before the patch.

@kimchy
Copy link
Member

kimchy commented Dec 7, 2013

look good, I would imply instead of duplicating the code, run it in a for loop and do it a couple of times?

@dadoonet dadoonet closed this in 822acfa Dec 7, 2013
dadoonet added a commit that referenced this pull request Dec 7, 2013
When searching with a query containing query_strings inside a bool query, the specified _name is randomly missing from the results due to caching.

Closes #4361.
Closes #4371.
@dadoonet
Copy link
Member Author

dadoonet commented Dec 7, 2013

@kimchy done and pushed. Thanks for the review.

@dadoonet dadoonet deleted the issue/4361-named-query branch December 7, 2013 21:57
dadoonet added a commit that referenced this pull request Dec 9, 2013
Thanks @simonw for the review.
Related to #4361 and #4371.
dadoonet added a commit that referenced this pull request Dec 9, 2013
Thanks @simonw for the review.
Related to #4361 and #4371.
dadoonet added a commit that referenced this pull request Dec 9, 2013
Thanks @simonw for the review.
Related to #4361 and #4371.
dadoonet added a commit that referenced this pull request Dec 9, 2013
Thanks @simonw for the review.
Related to #4361 and #4371.
@ghost ghost assigned imotov and dadoonet Dec 10, 2013
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
When searching with a query containing query_strings inside a bool query, the specified _name is randomly missing from the results due to caching.

Closes elastic#4361.
Closes elastic#4371.
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
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.

None yet

3 participants