chore(deps): Bump teamtnt/tntsearch from 5.0.0 to 5.0.2
Bumps teamtnt/tntsearch from 5.0.0 to 5.0.2.
Release notes
Sourced from teamtnt/tntsearch's releases.
minor fixes
No release notes provided.
v5.0.1
What's Changed
- Skip 'non-string' and empty values by
@leonardfischerin teamtnt/tntsearch#342- Unifying names of interfaces, keep old code for backwards compatibility by
@leonardfischerin teamtnt/tntsearch#341- Remove duplicate unique index for wordlist table by
@BlackbitDevsin teamtnt/tntsearch#319Full Changelog: https://github.com/teamtnt/tntsearch/compare/v5.0.0...v5.0.1
Commits
7ee319dPS5 :D058e39aMerge pull request #356 from leonardfischer/clean-up-codeded3dd5Clean up code, based on PSALM suggestionsfb20773Merge pull request #348 from leonardfischer/update-php-requirement-in-readmed21a1e7Merge pull request #351 from leonardfischer/create-mariadb-driver-alias0016594Merge pull request #353 from leonardfischer/improve-german-stopwordsa12c404Merge pull request #354 from leonardfischer/refactor-code-to-be-more-readablec855a44Merge pull request #355 from leonardfischer/avoid-deprecated-message-for-null...19d9694Add test cases for tokenizer to handle invalid values without errore7f9181Only 'tokenize' if given value is scalar, use string casting- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot will merge this PR once CI passes on it, as requested by @nextcloud-command.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
One of your CI runs failed on this pull request, so Dependabot won't merge it.
Dependabot will still automatically merge this pull request if you amend it and your tests pass.
I fixed some easy breakages... But these are not trivial for me:
On the tntsearch side of things only the types have been added:
https://github.com/teamtnt/tntsearch/commit/eb5803c8fb35f18781031772f21c9afb0708a7f4#diff-365b5f87c254f636d809d1a2b51db3b272ef8d1bb6c6a4fa5cf524e0e8197253
And it looks like we accessed the properties before but psalm did not notice.
The overwriting of config['storage'] is necessary so we can have a temporary database (sqlite:) despite tntsearch trying to appent a / to the url:
https://github.com/teamtnt/tntsearch/blob/7ee319d9d96a043164571eab87db72071014d66b/src/Engines/SqliteEngine.php#L132
Cleanest way out maybe is to create a subclass of the SqliteEngine that uses a temp storage and also implements our custom stuff that we do with engine->index.
The engine class can be handed to TNTSearch as part of the config.
https://github.com/teamtnt/tntsearch/blob/7ee319d9d96a043164571eab87db72071014d66b/src/TNTSearch.php#L47-L56