Update module github.com/blevesearch/bleve/v2 to v2.5.0 (forgejo) #7468

Merged
earl-warren merged 4 commits from renovate/forgejo-github.com-blevesearch-bleve-v2-2.x into forgejo 2025-04-06 10:41:42 +02:00

This PR contains the following updates:

Package Type Update Change
github.com/blevesearch/bleve/v2 require minor v2.4.4 -> v2.5.0

Release Notes

blevesearch/bleve (github.com/blevesearch/bleve/v2)

v2.5.0

Compare Source

Bug Fixes
Improvements
Milestone

Configuration

📅 Schedule: Branch creation - "* 0-3 * * " (UTC), Automerge - " 0-3 * * *" (UTC).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/blevesearch/bleve/v2](https://github.com/blevesearch/bleve) | require | minor | `v2.4.4` -> `v2.5.0` | --- ### Release Notes <details> <summary>blevesearch/bleve (github.com/blevesearch/bleve/v2)</summary> ### [`v2.5.0`](https://github.com/blevesearch/bleve/releases/tag/v2.5.0) [Compare Source](https://github.com/blevesearch/bleve/compare/v2.4.4...v2.5.0) ##### Bug Fixes - Exact hits to score higher than fuzzy hits, with https://github.com/blevesearch/bleve/pull/2056 - Fix boosting during hybrid search that involves text + nearest neighbor, with https://github.com/blevesearch/bleve/pull/2127 - Addressed bug in IP field handling while highlighting, with https://github.com/blevesearch/bleve/pull/2142 - Graceful error handling within registry, with https://github.com/blevesearch/bleve/pull/2151 - `http/` package (meant for demo purposes) removed from repository to remove vulnerability - [CVE-2022-31022](https://github.com/blevesearch/bleve/security/advisories/GHSA-9w9f-6mg8-jp7w), relocated to within https://github.com/blevesearch/bleve-explorer - Geo radius queries will now advertise distances (within sort values) in readable format, with https://github.com/blevesearch/bleve/pull/2137 ##### Improvements - Vector search requires `faiss` dynamic library to be built from [blevesearch/faiss@352484e](https://github.com/blevesearch/faiss/tree/352484e0fc9d1f8f46737841efe5f26e0f383f71) which is a modified version of [v1.10.0](https://github.com/facebookresearch/faiss/releases/tag/v1.10.0) - Support for **BM25 scoring**, see: [scoring.md](https://github.com/blevesearch/bleve/blob/v2.5.0/docs/scoring.md#bm25) - Support for **synonyms' search**, see: [synonyms.md](https://github.com/blevesearch/bleve/blob/v2.5.0/docs/synonyms.md) - **Significant performance improvements in pre-filtered vector search**, with https://github.com/blevesearch/bleve/pull/2169 + dependent changes - `auto` fuzziness detection with https://github.com/blevesearch/bleve/pull/2060 - Ability to affect ingestion/drain rate by tuning persister workers with https://github.com/blevesearch/bleve/pull/2100 - Additional config in merge policy for improved merger behavior, with https://github.com/blevesearch/bleve/pull/2134 - Geo improvements: footprint reduction for polygons, better validation and graceful error handling, with https://github.com/blevesearch/bleve/pull/2162 + https://github.com/blevesearch/bleve/pull/2158 + https://github.com/blevesearch/bleve/pull/2165 - Upgrade to RoaringBitmap/roaring@v2.4.5, etcd.io/bbolt@v1.4.0 - More metrics ##### Milestone - [v2.5.0](https://github.com/blevesearch/bleve/milestone/24) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjIuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIyMi4xIiwidGFyZ2V0QnJhbmNoIjoiZm9yZ2VqbyIsImxhYmVscyI6WyJkZXBlbmRlbmN5LXVwZ3JhZGUiLCJ0ZXN0L25vdC1uZWVkZWQiXX0=-->
Update module github.com/blevesearch/bleve/v2 to v2.5.0
Some checks failed
issue-labels / backporting (pull_request_target) Has been skipped
requirements / merge-conditions (pull_request) Successful in 2s
issue-labels / cascade (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Has been skipped
testing / frontend-checks (pull_request) Successful in 1m8s
testing / backend-checks (pull_request) Failing after 2m28s
testing / test-unit (pull_request) Has been skipped
testing / test-e2e (pull_request) Has been skipped
testing / test-mysql (pull_request) Has been skipped
testing / test-pgsql (pull_request) Has been skipped
testing / test-sqlite (pull_request) Has been skipped
testing / test-remote-cacher (redis) (pull_request) Has been skipped
testing / test-remote-cacher (valkey) (pull_request) Has been skipped
testing / test-remote-cacher (garnet) (pull_request) Has been skipped
testing / test-remote-cacher (redict) (pull_request) Has been skipped
testing / security-check (pull_request) Has been skipped
b475ab255f
Author
Member

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 12 additional dependencies were updated

Details:

Package Change
github.com/bits-and-blooms/bitset v1.13.0 -> v1.22.0
github.com/blevesearch/bleve_index_api v1.1.12 -> v1.2.7
github.com/blevesearch/go-faiss v1.0.24 -> v1.0.25
github.com/blevesearch/scorch_segment_api/v2 v2.2.16 -> v2.3.9
github.com/blevesearch/vellum v1.0.10 -> v1.1.0
github.com/blevesearch/zapx/v11 v11.3.10 -> v11.4.1
github.com/blevesearch/zapx/v12 v12.3.10 -> v12.4.1
github.com/blevesearch/zapx/v13 v13.3.10 -> v13.4.1
github.com/blevesearch/zapx/v14 v14.3.10 -> v14.4.1
github.com/blevesearch/zapx/v15 v15.3.16 -> v15.4.1
github.com/blevesearch/zapx/v16 v16.1.9-0.20241217210638-a0519e7caf3b -> v16.2.2
go.etcd.io/bbolt v1.3.9 -> v1.4.0
### ℹ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 12 additional dependencies were updated Details: | **Package** | **Change** | | :--------------------------------------------- | :--------------------------------------------------- | | `github.com/bits-and-blooms/bitset` | `v1.13.0` -> `v1.22.0` | | `github.com/blevesearch/bleve_index_api` | `v1.1.12` -> `v1.2.7` | | `github.com/blevesearch/go-faiss` | `v1.0.24` -> `v1.0.25` | | `github.com/blevesearch/scorch_segment_api/v2` | `v2.2.16` -> `v2.3.9` | | `github.com/blevesearch/vellum` | `v1.0.10` -> `v1.1.0` | | `github.com/blevesearch/zapx/v11` | `v11.3.10` -> `v11.4.1` | | `github.com/blevesearch/zapx/v12` | `v12.3.10` -> `v12.4.1` | | `github.com/blevesearch/zapx/v13` | `v13.3.10` -> `v13.4.1` | | `github.com/blevesearch/zapx/v14` | `v14.3.10` -> `v14.4.1` | | `github.com/blevesearch/zapx/v15` | `v15.3.16` -> `v15.4.1` | | `github.com/blevesearch/zapx/v16` | `v16.1.9-0.20241217210638-a0519e7caf3b` -> `v16.2.2` | | `go.etcd.io/bbolt` | `v1.3.9` -> `v1.4.0` |
Contributor

@snematoda do you think it is worth the upgrade?

@snematoda do you think it is worth the upgrade?
Owner

It finally lands my PR to reduce the memory footprint: https://github.com/blevesearch/bleve/pull/2093

It finally lands my PR to reduce the memory footprint: https://github.com/blevesearch/bleve/pull/2093
Owner

Exact hits to score higher than fuzzy hits, with https://github.com/blevesearch/bleve/pull/2056

Looks very interesting to improve search results when fuzzy search is used.

auto fuzziness detection with https://github.com/blevesearch/bleve/pull/2060

This is something that will be used.

// TODO: replace with "auto" after bleve update

> Exact hits to score higher than fuzzy hits, with https://github.com/blevesearch/bleve/pull/2056 Looks very interesting to improve search results when fuzzy search is used. > `auto` fuzziness detection with https://github.com/blevesearch/bleve/pull/2060 This is something that will be used. https://codeberg.org/forgejo/forgejo/src/commit/56cc841b6586d194dc738ba96adc1bdc55576e4a/modules/indexer/issues/bleve/bleve.go#L167
Author
Member

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

### Edited/Blocked Notification Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠️ **Warning**: custom changes will be lost.
@ -174,0 +167,4 @@
contentQuery := inner_bleve.MatchPhraseQuery(token.Term, "content", issueIndexerAnalyzer, 0)
contentQuery.SetAutoFuzziness(true)
commentsQuery := inner_bleve.MatchPhraseQuery(token.Term, "comments", issueIndexerAnalyzer, 0)
commentsQuery.SetAutoFuzziness(true)
Member

Doesn't this unfortunately treats all searches as fuzzy... Shouldn't fuzziness should only be enabled if the search token is fuzzy....?

-			commentsQuery.SetAutoFuzziness(true)
+			commentsQuery.SetAutoFuzziness(token.Fuzzy)
Doesn't this unfortunately treats all searches as fuzzy... Shouldn't fuzziness should only be enabled if the search token is fuzzy....? ```diff - commentsQuery.SetAutoFuzziness(true) + commentsQuery.SetAutoFuzziness(token.Fuzzy) ```
Member

I suppose it might be easier to replace fuzziness in MatchPhraseQuery... as a bool as a tag for auto fuzziness, since a manual edit distance is no longer required :)

I suppose it might be easier to replace `fuzziness` in `MatchPhraseQuery`... as a bool as a tag for auto fuzziness, since a manual edit distance is no longer required :)
Owner

Aha, that's a good catch!

Aha, that's a good catch!
Gusted marked this conversation as resolved
Gusted force-pushed renovate/forgejo-github.com-blevesearch-bleve-v2-2.x from 2e436d848c
Some checks failed
requirements / merge-conditions (pull_request) Successful in 1s
issue-labels / release-notes (pull_request_target) Has been skipped
testing / frontend-checks (pull_request) Successful in 48s
testing / backend-checks (pull_request) Successful in 2m51s
testing / test-e2e (pull_request) Successful in 2m52s
testing / test-unit (pull_request) Successful in 5m35s
testing / test-remote-cacher (redis) (pull_request) Successful in 2m5s
testing / test-remote-cacher (valkey) (pull_request) Successful in 2m4s
testing / test-remote-cacher (garnet) (pull_request) Successful in 2m5s
testing / test-remote-cacher (redict) (pull_request) Successful in 2m4s
testing / test-mysql (pull_request) Failing after 18m31s
testing / test-sqlite (pull_request) Failing after 20m38s
testing / test-pgsql (pull_request) Failing after 24m14s
testing / security-check (pull_request) Has been skipped
to b852defdc1
All checks were successful
requirements / merge-conditions (pull_request) Successful in 6s
issue-labels / release-notes (pull_request_target) Has been skipped
testing / frontend-checks (pull_request) Successful in 1m13s
testing / backend-checks (pull_request) Successful in 3m9s
testing / test-e2e (pull_request) Successful in 3m54s
testing / test-unit (pull_request) Successful in 6m56s
testing / test-remote-cacher (redis) (pull_request) Successful in 2m22s
testing / test-remote-cacher (valkey) (pull_request) Successful in 2m21s
testing / test-remote-cacher (garnet) (pull_request) Successful in 2m26s
testing / test-remote-cacher (redict) (pull_request) Successful in 2m27s
testing / test-mysql (pull_request) Successful in 20m23s
testing / test-sqlite (pull_request) Successful in 22m18s
testing / test-pgsql (pull_request) Successful in 24m46s
testing / security-check (pull_request) Successful in 1m19s
issue-labels / backporting (pull_request_target) Has been skipped
milestone / set (pull_request_target) Successful in 4s
2025-04-06 02:39:40 +02:00
Compare
Gusted approved these changes 2025-04-06 02:40:18 +02:00
snematoda approved these changes 2025-04-06 07:38:13 +02:00
snematoda left a comment
Member

lgtm!

lgtm!
earl-warren deleted branch renovate/forgejo-github.com-blevesearch-bleve-v2-2.x 2025-04-06 10:41:46 +02:00
Sign in to join this conversation.
No labels
arch
riscv64
backport/v1.19
backport/v1.20
backport/v1.21/forgejo
backport/v10.0/forgejo
backport/v11.0/forgejo
backport/v12.0/forgejo
backport/v13.0/forgejo
backport/v14.0/forgejo
backport/v7.0/forgejo
backport/v8.0/forgejo
backport/v9.0/forgejo
breaking
bug
bug
confirmed
bug
duplicate
bug
needs-more-info
bug
new-report
bug
reported-upstream
code/actions
code/api
code/auth
code/auth/faidp
code/auth/farp
code/email
code/federation
code/git
code/migrations
code/packages
code/wiki
database
MySQL
database
PostgreSQL
database
SQLite
dependency-upgrade
dependency
certmagic
dependency
chart.js
dependency
Chi
dependency
Chroma
dependency
citation.js
dependency
codespell
dependency
css-loader
dependency
devcontainers
dependency
dropzone
dependency
editorconfig-checker
dependency
elasticsearch
dependency
enmime
dependency
F3
dependency
ForgeFed
dependency
garage
dependency
Git
dependency
git-backporting
dependency
Gitea
dependency
gitignore
dependency
go-ap
dependency
go-enry
dependency
go-gitlab
dependency
Go-org
dependency
go-rpmutils
dependency
go-sql-driver mysql
dependency
go-swagger
dependency
go-version
dependency
go-webauthn
dependency
gocron
dependency
Golang
dependency
goldmark
dependency
goquery
dependency
Goth
dependency
grpc-go
dependency
happy-dom
dependency
Helm
dependency
image-spec
dependency
jsonschema
dependency
KaTeX
dependency
lint
dependency
MariaDB
dependency
Mermaid
dependency
minio-go
dependency
misspell
dependency
Monaco
dependency
PDFobject
dependency
playwright
dependency
postcss
dependency
postcss-plugins
dependency
pprof
dependency
prometheus client_golang
dependency
protobuf
dependency
relative-time-element
dependency
renovate
dependency
reply
dependency
ssh
dependency
swagger-ui
dependency
tailwind
dependency
temporal-polyfill
dependency
terminal-to-html
dependency
tests-only
dependency
text-expander-element
dependency
urfave
dependency
vfsgen
dependency
vite
dependency
Woodpecker CI
dependency
x tools
dependency
XORM
Discussion
duplicate
enhancement/feature
forgejo/accessibility
forgejo/branding
forgejo/ci
forgejo/commit-graph
forgejo/documentation
forgejo/furnace cleanup
forgejo/i18n
forgejo/interop
forgejo/moderation
forgejo/privacy
forgejo/release
forgejo/scaling
forgejo/security
forgejo/ui
Gain
High
Gain
Nice to have
Gain
Undefined
Gain
Very High
good first issue
i18n/backport-stable
impact
large
impact
medium
impact
small
impact
unknown
Incompatible license
issue
closed
issue
do-not-exist-yet
issue
open
manual test
Manually tested during feature freeze
OS
FreeBSD
OS
Linux
OS
macOS
OS
Windows
problem
QA
regression
release blocker
Release Cycle
Feature Freeze
release-blocker
v7.0
release-blocker
v7.0.1
release-blocker
v7.0.2
release-blocker
v7.0.3
release-blocker
v7.0.4
release-blocker
v8.0.0
release-blocker/v9.0.0
run-all-playwright-tests
run-end-to-end-tests
test
manual
test
needed
test
needs-help
test
not-needed
test
present
untested
User research - time-tracker
valuable code
worth a release-note
User research - Accessibility
User research - Blocked
User research - Community
User research - Config (instance)
User research - Errors
User research - Filters
User research - Future backlog
User research - Git workflow
User research - Labels
User research - Moderation
User research - Needs input
User research - Notifications/Dashboard
User research - Rendering
User research - Repo creation
User research - Repo units
User research - Security
User research - Settings (in-app)
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/forgejo!7468
No description provided.