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

Implement unit testing relevance helper functions #524

Merged
merged 2 commits into from
Aug 16, 2019

Conversation

aseure
Copy link

@aseure aseure commented Jul 19, 2019

Close #525

FindFirstObject searches iteratively through the search response `Hits`
field to find the first response hit that would match against the given
`filterFunc` function.

If no object has been found within the first result set, the function
will perform a new search operation on the next page of results, if any,
until a matching object is found or the end of results, whichever
happens first.

To prevent the iteration through pages of results, `doNotPaginate`
parameter can be set to true. This will stop the function at the end of
the first page of search results even if no object does match.

[changelog]
GetObjectIDPosition returns the position (0-based) within the `Hits`
result list of the record matching against the given objectID. If the
objectID is not found, -1 is returned.

[changelog]
Copy link
Member

@Ant-hem Ant-hem left a comment

Choose a reason for hiding this comment

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

👍

@aseure aseure merged commit 0940040 into master Aug 16, 2019
@aseure aseure deleted the implement-unit-testing-relevance-helper-functions branch August 16, 2019 20:32
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.

Implement two new methods for unit testing of relevance
2 participants