Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
slapos
Commits
c146718a
Commit
c146718a
authored
Sep 23, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
component/groonga: version up groonga 14.0.7
parent
ffbc9bc2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
17 deletions
+31
-17
component/groonga/0001-add-a-temporary-patch-to-respect-more-tokens-in-natu.patch
...dd-a-temporary-patch-to-respect-more-tokens-in-natu.patch
+28
-0
component/groonga/buildout.cfg
component/groonga/buildout.cfg
+3
-4
component/groonga/groonga.patch
component/groonga/groonga.patch
+0
-13
No files found.
component/groonga/0001-add-a-temporary-patch-to-respect-more-tokens-in-natu.patch
0 → 100644
View file @
c146718a
From c5a43f8ac6cd4b690e83d0fe883939c670242d79 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 29 Sep 2014 09:42:24 +0200
Subject: [PATCH] add a temporary patch to respect more tokens in natural
language mode.
---
lib/ii.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/ii.c b/lib/ii.c
index 70c50720b..be994b301 100644
--- a/lib/ii.c
+++ b/lib/ii.c
@@ -12830,7 +12830,9 @@
grn_ii_similar_search_internal(grn_ctx *ctx, grn_ii_select_data *data)
? ((uint32_t)(data->optarg->similarity_threshold) > GRN_HASH_SIZE(h)
? GRN_HASH_SIZE(h)
: (uint32_t)(data->optarg->similarity_threshold))
- : (GRN_HASH_SIZE(h) >> 3) + 1;
+ : (GRN_HASH_SIZE(h) < 8
+ ? GRN_HASH_SIZE(h)
+ : ((GRN_HASH_SIZE(h) - 8) >> 3) + 8);
if (GRN_HASH_SIZE(h)) {
grn_id j, id;
float w2;
--
2.42.0
component/groonga/buildout.cfg
View file @
c146718a
...
...
@@ -15,12 +15,11 @@ extends =
[groonga]
recipe = slapos.recipe.cmmi
shared = true
url = https://
packages.groonga.org/source/groonga/groonga-13.0.1
.tar.gz
md5sum =
d17d154c2ceffbf8b21d8ef6d3afa644
url = https://
github.com/groonga/groonga/releases/download/v14.0.7/groonga-14.0.7
.tar.gz
md5sum =
b3d3223d704f507047c9dec766e1604e
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
# temporary patch to respect more tokens in natural language mode.
patches =
${:_profile_base_location_}/
groonga.patch#cc6a678acd478fc074e678c7b7dd09d
8
${:_profile_base_location_}/
0001-add-a-temporary-patch-to-respect-more-tokens-in-natu.patch#f7ca3ec3ed8f8311bd5afdee0cfe0ce
8
patch-options = -p1
configure-options =
--disable-static
...
...
component/groonga/groonga.patch
deleted
100644 → 0
View file @
ffbc9bc2
--- a/lib/ii.c
+++ b/lib/ii.c
@@ -10874,7 +10874,9 @@
? ((uint32_t)(data->optarg->similarity_threshold) > GRN_HASH_SIZE(h)
? GRN_HASH_SIZE(h)
:(uint32_t)(data->optarg->similarity_threshold))
- : (GRN_HASH_SIZE(h) >> 3) + 1;
+ : (GRN_HASH_SIZE(h) < 8
+ ? GRN_HASH_SIZE(h)
+ : ((GRN_HASH_SIZE(h) - 8) >> 3) + 8);
if (GRN_HASH_SIZE(h)) {
grn_id j, id;
float w2;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment