-
Notifications
You must be signed in to change notification settings - Fork 736
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
post_filter and filter are now the same #670
Conversation
post_filter and filter are now the same
Merged. Thx. |
Hm, I just realised you missed to update the changes.txt file. Can you open a new pull request? Sorry about that. |
Sure :) |
@ruflin maybe we should trigger a php error (E_USER_DEPRECATED) instead of just setting phpdoc to deprecated bool trigger_error ( string $error_msg [, int $error_type = E_USER_NOTICE ] ) Trigger it in Query->setFilter - this function is deprecated and will be removed in feature realeases |
Good idea. It's a little bit messy in the code but the good thing is it will pop up also in the tests. |
resolves #669
This should work fine.
Some of the tests should probably be rewritten to use FIlteredQuery instead of Query->setPostFilter(). The results are fine ... but You should use setPostFilter only to filter results after facets/aggregations have been calculated.