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

[feature/server-side-search] Add server-side search support #1419

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

felix-schwarz
Copy link
Contributor

@felix-schwarz felix-schwarz commented Nov 2, 2024

Description

This PR adds server-side search support to the app.

TODO

  • add search scope backed by OCSearchResult
  • improve error and result handling in OCSearchResult
  • add KQL syntax generator to OCQueryCondition (similar to the SQL syntax generator)

Related Issue

Screenshots (if appropriate):

Name only Contents only
Simulator Screenshot - iPhone 16 Pro Max - 2024-11-23 at 23 14 51 Simulator Screenshot - iPhone 16 Pro Max - 2024-11-23 at 23 14 56
Name/Contents choice popup Image files not containing ownCloud
Simulator Screenshot - iPhone 16 Pro Max - 2024-11-23 at 23 15 04 Simulator Screenshot - iPhone 16 Pro Max - 2024-11-23 at 23 16 05

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

- ProgressSummarizer: add support for new OCEventType .search
@felix-schwarz felix-schwarz self-assigned this Nov 2, 2024
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

	- add CollectionViewCellStyle.showPathDetails property
	- add CollectionViewCellStyle.StyleOptionKey.showPathDetails
- OCItem+UniversalItemListCellContentProvider: add support for CollectionViewCellStyle.showPathDetails
- ServerSideSearchScope: add server-side search scope
- SearchScope: add convenience method to instantiate ServerSideSearchScope
- ClientItemViewController: add server-side search scope
	- "fix" keyword "spreadsheet" translation by matching the type alias rather than matching its start
	- add keyword "archive" translating into the "x-office/presentation" type alias
- SearchScope: add support for specifying the searchable content and controlling the content to search (itemName, file contents)
- ItemSearchScope: add subclassing point for creation of ItemSearchSuggestionsViewController()
- ServerSideSearchScope:
	- make subclass of ItemSearchScope to simplify implementation
	- add support for OCKQLSearchedContent, allowing to select whether to search item name, content - or both
	- create adapted version of ItemSearchSuggestionsViewController() to omit size search suggestions (support in server unclear at the moment, waiting for clarification)
- ItemSearchSuggestionsViewController:
	- allow excluding suggestion categories
	- add support for OCKQLSearchedContent (SearchScope.supportedSearchedContent + .searchedContent), including a toggle
…le with popup to allow searching terms only in names, only in contents - or name + content

- ServerSideSearchScope: restore special cell style to also include path details
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