-
-
Notifications
You must be signed in to change notification settings - Fork 512
Allow to paginate $search
aggregation with searchBefore
and searchAfter
markers
#2764
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
base: 2.12.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pushing this feature; the implementation looks good.
But I think we can reduce the testing load.
#[DataProvider('provideAutocompleteBuilders')] | ||
#[DataProvider('provideCompoundBuilders')] | ||
#[DataProvider('provideEmbeddedDocumentBuilders')] | ||
#[DataProvider('provideEmbeddedDocumentCompoundBuilders')] | ||
#[DataProvider('provideEqualsBuilders')] | ||
#[DataProvider('provideExistsBuilders')] | ||
#[DataProvider('provideGeoShapeBuilders')] | ||
#[DataProvider('provideGeoWithinBuilders')] | ||
#[DataProvider('provideMoreLikeThisBuilders')] | ||
#[DataProvider('provideNearBuilders')] | ||
#[DataProvider('providePhraseBuilders')] | ||
#[DataProvider('provideQueryStringBuilders')] | ||
#[DataProvider('provideRangeBuilders')] | ||
#[DataProvider('provideRegexBuilders')] | ||
#[DataProvider('provideTextBuilders')] | ||
#[DataProvider('provideWildcardBuilders')] | ||
public function testSearchOperatorsWithSearchBefore(array $expectedOperator, Closure $createOperator): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a single case is sufficient to test this feature. As it is, you're simply repeating the same test many times over for no purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the advice. I leave only one data provider on each method
$search
aggregation with searchBefore
and searchAfter
markers
Summary
feat: allow to paginate search aggregation with searchBefore and searchAfter markers