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

Replace OfflineIndexObserver with AbstractSearchEngine.offlineEngineReady flag #209

Closed

Conversation

aokj4ck
Copy link
Contributor

@aokj4ck aokj4ck commented Apr 12, 2024

Description

Fixes offline search readiness without relying on setting up an OfflineIndexObserver

  • Match Android SDK behavior
  • OfflineIndexObserver may be used for more precise control of operations
  • Tests run with synchronous behavior and execute search after the offlineEngineReady: Bool flag becomes true.

Checklist

  • Update CHANGELOG

@aokj4ck aokj4ck requested review from a team as code owners April 12, 2024 20:01
mikeringrose
mikeringrose previously approved these changes Apr 15, 2024
Copy link

@mikeringrose mikeringrose left a comment

Choose a reason for hiding this comment

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

Looks fine, are there other offline methods that need this check?

@aokj4ck
Copy link
Contributor Author

aokj4ck commented Apr 15, 2024

Looks fine, are there other offline methods that need this check?

No, this is the entry point.

aokj4ck and others added 5 commits April 19, 2024 14:36
- Add assertions for failing condition to have errors
…ce-offlineindexobserver-with-offlineengineready-flag

Conflicts:
	CHANGELOG.md

- Accept both changelog additions
@aokj4ck
Copy link
Contributor Author

aokj4ck commented May 3, 2024

Closing because the best way to use offline search will be with an OfflineIndexObserver and to work on a more thorough reference demo

@aokj4ck aokj4ck closed this May 3, 2024
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.

2 participants