| 1 | # News - 14 series |
| 2 | |
| 3 | (release-14-1-3)= |
| 4 | |
| 5 | ## Release 14.1.3 - 2025-01-29 |
| 6 | |
| 7 | ### Improvements |
| 8 | |
| 9 | #### {ref}`offline-index-construction`: Added support for parallel execution |
| 10 | |
| 11 | If you have many CPU cores, you can improve |
| 12 | {ref}`offline-index-construction` performance. You can use it by |
| 13 | `column_create ... COLUMN_INDEX ... --n_workers -1`. |
| 14 | |
| 15 | In general, {ref}`offline-index-construction` will be 2-10x faster by |
| 16 | this. |
| 17 | |
| 18 | #### {doc}`/reference/functions/language_model_vectorize`: Added support for Phi-4 |
| 19 | |
| 20 | You can use [Phi-4](https://huggingface.co/microsoft/phi-4) as a |
| 21 | language model. Note that Phi-4 isn't designing for generating |
| 22 | embeddings. |
| 23 | |
| 24 | #### Added {doc}`/reference/normalizers/normalizer_nfkc` |
| 25 | |
| 26 | It's similar to existing `NormalizerNFKC*` such as |
| 27 | {doc}`/reference/normalizers/normalizer_nfkc150`. But it's more |
| 28 | generic than `NormalizerNFKC*`. |
| 29 | |
| 30 | {doc}`/reference/normalizers/normalizer_nfkc` accepts {ref}`normalizer-nfkc-version` argument to change used Unicode |
| 31 | version. For example, `NormalizerNFKC("version", "15.0.0")` equals to |
| 32 | `NormalizerNFKC150`. |
| 33 | |
| 34 | `NormalizerNFKC*` are deprecated by {doc}`/reference/normalizers/normalizer_nfkc`. You should use |
| 35 | {doc}`/reference/normalizers/normalizer_nfkc` for newly written applications. |
| 36 | |
| 37 | {doc}`/reference/normalizers/normalizer_nfkc` uses Unicode 16.0.0 by default. |
| 38 | |
| 39 | #### Added {doc}`/reference/token_filters/token_filter_nfkc` |
| 40 | |
| 41 | It's similar to existing `TokenFilterNFKC*` such as |
| 42 | {doc}`/reference/token_filters/token_filter_nfkc150`. But it's based |
| 43 | on {doc}`/reference/normalizers/normalizer_nfkc`. So you can specify Unicode version as {ref}`normalizer-nfkc-version`. |
| 44 | |
| 45 | `TokenFilterNFKC*` are deprecated by {doc}`/reference/token_filters/token_filter_nfkc`. You should use |
| 46 | {doc}`/reference/token_filters/token_filter_nfkc` for newly written applications. |
| 47 | |
| 48 | {doc}`/reference/token_filters/token_filter_nfkc` uses Unicode 16.0.0 by default. |
| 49 | |
| 50 | #### {doc}`/install/amazon_linux`: Added support for Amazon Linux 2023 aarch64 |
| 51 | |
| 52 | See {doc}`/install/amazon_linux` how to install. |
| 53 | |
| 54 | #### {doc}`/reference/commands/index_column_diff`: Added support for changing log level for progress logs |
| 55 | |
| 56 | It's useful to see only progress logs without other debug logs. |
| 57 | |
| 58 | See {ref}`index-column-diff-progress-log-level` for details. |
| 59 | |
| 60 | ### Fixes |
| 61 | |
| 62 | #### Fixed a bug that deb/rpm packages can't be used on machines that don't have AVX |
| 63 | |
| 64 | pgroonga/pgroonga#642 |
| 65 | |
| 66 | Groonga uses llama.cpp to use language models. llama.cpp uses SIMD for |
| 67 | fast processing. |
| 68 | |
| 69 | We defer llama.cpp initialization that needs SIMD. So you can use |
| 70 | Groonga on machines that don't have AVX if you don't use language |
| 71 | model related features such as |
| 72 | {doc}`/reference/functions/language_model_vectorize`. |
| 73 | |
| 74 | Reported by Yuki Shira. |
| 75 | |
| 76 | #### {ref}`table-pat-key`: Fixed a bug that existing key may be broken after {doc}`/reference/commands/defrag` |
| 77 | |
| 78 | If you have some garbage nodes in {ref}`table-pat-key` and |
| 79 | {doc}`/reference/commands/defrag` it, new added keys to the |
| 80 | {ref}`table-pat-key` might override existing keys. |
| 81 | |
| 82 | This bug exists since {ref}`release-14-1-1`. |
| 83 | |
| 84 | #### {ref}`table-pat-key`: Fixed a bug that some WALs are missing for {doc}`/reference/commands/defrag` |
| 85 | |
| 86 | This release added some missing WALs on |
| 87 | {doc}`/reference/commands/defrag`. If some WALs are missing, we may |
| 88 | not be able to recover a crash in {doc}`/reference/commands/defrag`. |
| 89 | |
| 90 | #### {doc}`/reference/commands/defrag`: Fixed a bug that columns of {ref}`table-pat-key` aren't processed |
| 91 | |
| 92 | [GH-2168](https://github.com/groonga/groonga/issues/2168) |
| 93 | |
| 94 | `defrag pat` should process `pat` and its columns. But it processes |
| 95 | only `pat` since {ref}`release-14-1-1`. It's a regression bug. |
| 96 | |
| 97 | #### {doc}`/reference/columns/index`: Fixed an {ref}`offline-index-construction` bug |
| 98 | |
| 99 | It happened when: |
| 100 | |
| 101 | - Source is a {ref}`reference-vector-column` |
| 102 | - Source has a `GRN_ID_NIL` element (an element that refers nothing) |
| 103 | between `1..-2` position |
| 104 | - Index column has `WITH_POSITION` flag |
| 105 | |
| 106 | Offline index construction always uses wrong position for elements |
| 107 | after the `GRN_ID_NIL` element. |
| 108 | |
| 109 | Offline index construction may use wrong index key. It depends on an |
| 110 | uninitialized memory. |
| 111 | |
| 112 | #### {ref}`table-hash-key`: Fixed a bug that garbage entry may not be reused |
| 113 | |
| 114 | It happened when a {ref}`table-hash-key` is rehashed with |
| 115 | garbage. Garbage is increased by deleting records. |
| 116 | |
| 117 | If rehash is done with garbage, the garbage is never reused after the |
| 118 | rehash. A {ref}`table-hash-key` may large even when it has only a few |
| 119 | valid records. |
| 120 | |
| 121 | This bug exists since {ref}`release-10-1-1`. |
| 122 | |
| 123 | ### Thanks |
| 124 | |
| 125 | - Yuki Shira |
| 126 | |
| 127 | (release-14-1-2)= |
| 128 | |
| 129 | ## Release 14.1.2 - 2024-12-24 |
| 130 | |
| 131 | ### Improvements |
| 132 | |
| 133 | #### Relicensed to LGPL-2.1-or-later from LGPL-2.1-only |
| 134 | |
| 135 | [GH-1774](https://github.com/groonga/groonga/issues/1774) |
| 136 | |
| 137 | It improves GPL 3 or later compatibility. |
| 138 | |
| 139 | #### {doc}`/reference/commands/delete`: Added support for reference weight vector |
| 140 | |
| 141 | If a reference column is indexed, `delete` can also delete the deleted |
| 142 | reference value from the reference column. It works for a reference |
| 143 | vector column but didn't work for a reference "weight" vector column. |
| 144 | |
| 145 | With this release, this also works for a reference "weight" vector |
| 146 | column. |
| 147 | |
| 148 | ### Fixes |
| 149 | |
| 150 | #### {doc}`/reference/columns/vector`: Fixed a bug that needed cast may not be done |
| 151 | |
| 152 | Groonga casts a value automatically when it's needed. |
| 153 | |
| 154 | If a reference vector column uses 32-bit floating number weight and a |
| 155 | new value is a no weight reference vector, Groonga must cast the new |
| 156 | value. But it was not done. |
| 157 | |
| 158 | (release-14-1-1)= |
| 159 | |
| 160 | ## Release 14.1.1 - 2024-12-03 |
| 161 | |
| 162 | ### Improvements |
| 163 | |
| 164 | #### Stopped vendoring RapidJSON |
| 165 | |
| 166 | [GH-1462](https://github.com/groonga/groonga/issues/1462) |
| 167 | |
| 168 | We added support for simdjson in 14.0.7. We don't need to vendor RapidJSON anymore. RapidJSON has a file that uses the JSON license. It's not a free software license / open source license. So we wanted to unvendor RapidJSON. |
| 169 | |
| 170 | Note that RapidJSON is still supported. You can still use RapidJSON by installing RapidJSON separately. But we recommend that you use simdjson not RapidJSON. |
| 171 | |
| 172 | #### Made llama.cpp initialization lazy |
| 173 | |
| 174 | [GH-2078](https://github.com/groonga/groonga/issues/2078) |
| 175 | |
| 176 | llama.cpp requires recent SIMD features. If we always initialize llama.cpp, users who use old CPU and don't use llama.cpp related features can't use the official Groonga packages. So we made llama.cpp initialization lazy. Users who use llama.cpp related features still need recent CPU but users who don't use llama.cpp related features can use old CPU as usual. |
| 177 | |
| 178 | #### `NormalizerNFKC`: Added support for mixing `unify_middle_dot` and `remove_symbol` |
| 179 | |
| 180 | [GH-1538](https://github.com/groonga/groonga/issues/1538) |
| 181 | |
| 182 | `NormalizerNFKC` family normalizers such as {doc}`/reference/normalizers/normalizer_nfkc150` can mix {ref}`normalizer-nfkc150-unify-middle-dot` and {ref}`normalizer-nfkc150-remove-symbol` options. |
| 183 | |
| 184 | #### {doc}`/reference/commands/defrag`: Added support for {ref}`table-pat-key` |
| 185 | |
| 186 | A {ref}`table-pat-key` table couldn't reuse spaces that are used by removed keys. They're still not be reusable automatically, but we can reuse them by executing {doc}`/reference/commands/defrag` explicitly since this release. |
| 187 | |
| 188 | #### {doc}`/reference/commands/load`: Improved error handling |
| 189 | |
| 190 | If there are any critical errors in {doc}`/reference/commands/load`, we will not wait for more data. Clients may stop sending more data in the case. |
| 191 | |
| 192 | #### {doc}`/reference/executables/groonga`: Added `context_id` log flag |
| 193 | |
| 194 | It's useful when you use {ref}`query-log` too. In {ref}`query-log`, the context ID is recorded. If we have the context ID in {ref}`process-log` and {ref}`query-log`, we can associate these logs easily. |
| 195 | |
| 196 | #### {doc}`/reference/executables/groonga`: Improved error handling |
| 197 | |
| 198 | {doc}`/reference/command/request_timeout` uses lock internally. It may be failed in some cases. We added some error checks for the case. |
| 199 | |
| 200 | #### {ref}`table-pat-key`: Improved key space efficiency |
| 201 | |
| 202 | [GH-2104](https://github.com/groonga/groonga/issues/2104) |
| 203 | |
| 204 | There was a case that wastes key space. Now, we can use key space as efficiently as possible. |
| 205 | |
| 206 | ### Fixes |
| 207 | |
| 208 | #### `grn_pat_size()`: Fixed a bug that `0` may not be returned on error |
| 209 | |
| 210 | [GH-2097](https://github.com/groonga/groonga/issues/2097) |
| 211 | |
| 212 | If the given `pat` is `NULL`, it returns `-22`. But it should have returned `0` with error `ctx->rc`. |
| 213 | |
| 214 | Now, Groonga uses the expected behavior. |
| 215 | |
| 216 | #### {doc}`/reference/regular_expression`: Fixed a bug with an empty pattern |
| 217 | |
| 218 | [GH-2121](https://github.com/groonga/groonga/issues/2121) |
| 219 | |
| 220 | If the given pattern is an empty string, there were some problems: |
| 221 | |
| 222 | - If there is an index for regular expression, Groonga was crashed. |
| 223 | - If there is not an index for regular expression, Groonga returns all records. |
| 224 | |
| 225 | Now, Groonga returns an empty result for an empty pattern. |
| 226 | |
| 227 | (release-14-1-0)= |
| 228 | |
| 229 | ## Release 14.1.0 - 2024-11-05 |
| 230 | |
| 231 | ### Improvements |
| 232 | |
| 233 | #### [{doc}`/reference/commands/status`] Added `.["features"]["llama.cpp"]` entry |
| 234 | |
| 235 | The `.["features"]` entry shows whether each feature is enabled or not like the following: |
| 236 | |
| 237 | ```json |
| 238 | [ |
| 239 | ["..."], |
| 240 | { |
| 241 | "...": "...", |
| 242 | "features": { |
| 243 | "nfkc": true, |
| 244 | "mecab": true, |
| 245 | "...": "..." |
| 246 | }, |
| 247 | "...": "..." |
| 248 | } |
| 249 | ] |
| 250 | ``` |
| 251 | |
| 252 | This release added `llama.cpp` to the `.["features"]` entry: |
| 253 | |
| 254 | ```json |
| 255 | [ |
| 256 | ["..."], |
| 257 | { |
| 258 | "...": "...", |
| 259 | "features": { |
| 260 | "nfkc": true, |
| 261 | "mecab": true, |
| 262 | "...": "...", |
| 263 | "llama.cpp": true, |
| 264 | "...": "..." |
| 265 | }, |
| 266 | "...": "..." |
| 267 | } |
| 268 | ] |
| 269 | ``` |
| 270 | |
| 271 | You can use `.["features"]["llama.cpp"]` to know whether [llama.cpp](https://github.com/ggerganov/llama.cpp) is enabled or not. |
| 272 | |
| 273 | You need the llama.cpp support to use {doc}`/reference/functions/language_model_vectorize` function described next. |
| 274 | |
| 275 | #### [{doc}`/reference/functions/language_model_vectorize`] Added (Experimental) |
| 276 | |
| 277 | This feature is still experimental and unstable. |
| 278 | |
| 279 | This feature may consume a significant amount of CPU and memory. |
| 280 | |
| 281 | The function returns normalized embeddings (vector representations) of the given text. An embedding represents the semantic information of the text as a vector. By converting meanings of the text into vectors, you can perform semantic searches instead of keyword based searches. |
| 282 | |
| 283 | For example, "United States" and "America" look completely different but share the same meaning. Traditionally, you could search for words with different spellings but the same meaning by using synonym expansion. But this required maintaining a synonym table. |
| 284 | |
| 285 | With semantic search enabled, you can find words with similar meanings without preparing or maintaining a synonym table. |
| 286 | |
| 287 | #### [{doc}`/reference/commands/column_create`] Added the {ref}`column-create-generator` parameter |
| 288 | |
| 289 | This release added the {ref}`generated-column` feature. You can use this feature to generate column values based on the values of other column automatically. |
| 290 | |
| 291 | You can create a generated column by using {doc}`/reference/commands/column_create` and {ref}`column-create-generator`. See {ref}`column-create-generated-column` for details. |
| 292 | |
| 293 | Here are merits of this feature: |
| 294 | |
| 295 | 1. You no longer need to manage generation processes manually |
| 296 | 2. You can reduce the amount of data to load since only the source columns are necessary |
| 297 | |
| 298 | For example, you can use {doc}`/reference/functions/language_model_vectorize` to generate embeddings of the values of other columns. An embedding may not be small. If it's represented as an 1024 dimensions vector of 32-bit float, its size is 4KiB. If you generate embeddings automatically by {doc}`/reference/functions/language_model_vectorize` and {ref}`generated-column`, you don't need to send 4KiB embeddings to Groonga. |
| 299 | |
| 300 | You can {doc}`/reference/commands/load` only the text to be searched while simultaneously storing the embedding with this feature. |
| 301 | |
| 302 | ### Fixes |
| 303 | |
| 304 | #### [{doc}`/server/gqtp`] Fixed a bug that wrong return code is returned |
| 305 | |
| 306 | This is a client side problem. This problem was introduced in 14.0.0. |
| 307 | |
| 308 | GQTP client converts {doc}`/reference/command/return_code` received from server wrongly. For example, `INVALID_ARGUMENT` code is `-22` but it was converted to `65514`. |
| 309 | |
| 310 | This fix does not affect users who are not using GQTP clients. |
| 311 | |
| 312 | #### [{doc}`/reference/commands/logical_range_filter`] Fixed a bug that invalid JSON format response may be returned |
| 313 | |
| 314 | This problem happens only with {doc}`/reference/command/command_version` 3. The default command version is 1. |
| 315 | |
| 316 | You can check your Groonga's default command version using the {doc}`/reference/commands/status` command: |
| 317 | |
| 318 | ```json |
| 319 | [ |
| 320 | ["..."], |
| 321 | { |
| 322 | "...": "...", |
| 323 | "command_version": 1, |
| 324 | "default_command_version": 1, |
| 325 | "...": "..." |
| 326 | } |
| 327 | ] |
| 328 | ``` |
| 329 | |
| 330 | Here is an example invalid JSON format response. You can see that there is an extra `"records": []` before the actual `"records: [...]"`: |
| 331 | |
| 332 | ```json |
| 333 | { |
| 334 | "body": { |
| 335 | "columns": ["..."], |
| 336 | "records": [], |
| 337 | "records": [ |
| 338 | [ |
| 339 | "The first post!", |
| 340 | "Welcome! This is my first post!", |
| 341 | 1436313600.0, |
| 342 | 5, |
| 343 | "Hello" |
| 344 | ], |
| 345 | "..." |
| 346 | ] |
| 347 | }, |
| 348 | "header": "..." |
| 349 | } |
| 350 | ``` |
| 351 | |
| 352 | #### [{doc}`/reference/commands/request_cancel`] Fixed a bug that invalid JSON format response may be returned |
| 353 | |
| 354 | You can stop a running command by {doc}`/reference/commands/request_cancel`. |
| 355 | |
| 356 | You might get an invalid JSON format response when you cancel a command. It depends on the timing of the cancellation. |
| 357 | |
| 358 | This release fixed the cancellation process. You will not receive an invalid JSON format response even when you cancel a command. |
| 359 | |
| 360 | #### [{doc}`/reference/commands/index_column_diff`] Fixed a bug that false positive diff may be reported |
| 361 | |
| 362 | You can use {doc}`/reference/commands/index_column_diff` to detect index corruption. |
| 363 | |
| 364 | {doc}`/reference/commands/index_column_diff` reports a missing record when a single record contains more than 131,072 instances of the same token. This release fixed this problem. |
| 365 | |
| 366 | (release-14-0-9)= |
| 367 | |
| 368 | ## Release 14.0.9 - 2024-09-27 |
| 369 | |
| 370 | ### Fixes |
| 371 | |
| 372 | - Fixed build error when we build from source on Alpine Linux 3.20. |
| 373 | |
| 374 | (release-14-0-8)= |
| 375 | |
| 376 | ## Release 14.0.8 - 2024-09-25 |
| 377 | |
| 378 | ### Improvements |
| 379 | |
| 380 | - [Amazon Linux 2023] Added support for Amazon Linux 2023. [GH-1845][Reported by takoyaki-nyokki and Watson] |
| 381 | |
| 382 | However, we don't support Amazon Linux 2023 for aarch64 currently. |
| 383 | Because the maintenance is costly because of the time of building a package for aarch64 is too time consuming. |
| 384 | |
| 385 | We don't use TokenMecab in Groonga for Amazon Linux 2023. |
| 386 | Because Amazon Linux 2023 doesn't provide MeCab package. |
| 387 | |
| 388 | ### Fixes |
| 389 | |
| 390 | - Fixed a crash bug when we specified `pgroonga.log_type` on PGroonga for Windows. |
| 391 | |
| 392 | ### Thanks |
| 393 | |
| 394 | - takoyaki-nyokki |
| 395 | - Watson |
| 396 | |
| 397 | (release-14-0-7)= |
| 398 | |
| 399 | ## Release 14.0.7 - 2024-09-03 |
| 400 | |
| 401 | ### Improvements |
| 402 | |
| 403 | - [NormalizerNFKC] Added a new option `unify_latin_alphabet_with`.[pgroonga/pgroonga#418][Reported by Man Hoang] |
| 404 | |
| 405 | This option enables that alphabets with diacritical mark and alphabets without diacritical mark regarded as the same character as below. |
| 406 | |
| 407 | However, this feature focus on only `LATIN (SMALL|CAPITAL) LETTER X WITH XXX`. |
| 408 | It doesn't support `LATIN (SMALL|CAPITAL) LETTER X` + `COMBINING XXX` characters. |
| 409 | |
| 410 | We can confirm that can get `ngoằn` with `ngoan` in the following example. |
| 411 | |
| 412 | ``` |
| 413 | table_create --name Contents --flags TABLE_HASH_KEY --key_type ShortText |
| 414 | column_create --table Contents --name content --type ShortText |
| 415 | load --table Contents |
| 416 | [ |
| 417 | {"_key":"1", "content":"con đường ngoằn nghoèo"}, |
| 418 | ] |
| 419 | |
| 420 | table_create \ |
| 421 | --name Terms \ |
| 422 | --flags TABLE_PAT_KEY \ |
| 423 | --key_type ShortText \ |
| 424 | --default_tokenizer TokenBigram \ |
| 425 | --normalizer 'NormalizerNFKC150("unify_latin_alphabet_with", true)' |
| 426 | column_create \ |
| 427 | --table Terms \ |
| 428 | --name index_content \ |
| 429 | --flags COLUMN_INDEX|WITH_POSITION \ |
| 430 | --type Contents \ |
| 431 | --source content |
| 432 | |
| 433 | select --table Contents --query content:@ngoan |
| 434 | [ |
| 435 | [ |
| 436 | 0, |
| 437 | 0.0, |
| 438 | 0.0 |
| 439 | ], |
| 440 | [ |
| 441 | [ |
| 442 | [ |
| 443 | 1 |
| 444 | ], |
| 445 | [ |
| 446 | [ |
| 447 | "_id", |
| 448 | "UInt32" |
| 449 | ], |
| 450 | [ |
| 451 | "_key", |
| 452 | "ShortText" |
| 453 | ], |
| 454 | [ |
| 455 | "content", |
| 456 | "ShortText" |
| 457 | ] |
| 458 | ], |
| 459 | [ |
| 460 | 1, |
| 461 | "1", |
| 462 | "con đường ngoằn nghoèo" |
| 463 | ] |
| 464 | ] |
| 465 | ] |
| 466 | ] |
| 467 | ``` |
| 468 | |
| 469 | ```{note} |
| 470 | Current normalizers has the following bug. |
| 471 | |
| 472 | The lowercase of `U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE` must be `U+0069 LATIN SMALL LETTER I`. |
| 473 | But the current implementation uses `U+0069 LATIN SMALL LETTER I` + `U+0307 COMBINING DOT ABOVE`. |
| 474 | |
| 475 | We will fix the bug from NormalizerNFKC160. |
| 476 | ``` |
| 477 | |
| 478 | - Added support for [simdjson](https://simdjson.org/). |
| 479 | |
| 480 | Currently, we keeps RapidJSON support but we'll remove RapidJSON support later. |
| 481 | |
| 482 | - [{doc}`/install/ubuntu`] Dropped support for Ubuntu 23.10 (Mantic Minotaur) |
| 483 | |
| 484 | Because Ubuntu 23.10 reached EOL at July 11, 2024. |
| 485 | |
| 486 | - Distributed the install packages which enabled `libedit`. |
| 487 | |
| 488 | Now in Groonga REPL, we can refer to the command history using the up arrow key. |
| 489 | |
| 490 | ### Fixes |
| 491 | |
| 492 | - [status] Fixed a bug that "h3" is never shown in `groonga --version`/`status`. |
| 493 | |
| 494 | - Fixed a crash bug when log rotate is enabled. |
| 495 | |
| 496 | This bug occurred in the following conditions. |
| 497 | |
| 498 | 1. When logging to a file by specification the following options. |
| 499 | |
| 500 | - `--log-path <path>` |
| 501 | - `--query-log-path <path>` |
| 502 | |
| 503 | 2. When log rotate is enabled by specification the following options. |
| 504 | |
| 505 | - `--log-rotate-threshold-size <threshold>` |
| 506 | - `--query-log-rotate-threshold-size <threshold>` |
| 507 | |
| 508 | 3. When process ID log output is enabled by specification the following options. |
| 509 | |
| 510 | - `--log-flags process_id` |
| 511 | |
| 512 | - Fixed a bug that Groonga use bundled Onigmo even if we specify `GRN_WITH_BUNDLED_ONIGMO=OFF`. [termux/termux-packages#21252][Patch by Biswapriyo Nath] |
| 513 | |
| 514 | ### Thanks |
| 515 | |
| 516 | - Man Hoang |
| 517 | - Biswapriyo Nath |
| 518 | |
| 519 | (release-14-0-6)= |
| 520 | |
| 521 | ## Release 14.0.6 - 2024-07-29 |
| 522 | |
| 523 | ### Improvements |
| 524 | |
| 525 | - Added support for prefix search without index against vector column. |
| 526 | |
| 527 | We can already prefix search with index against vector column. |
| 528 | However, we can't prefix search without index against vector column until now. |
| 529 | |
| 530 | We can also prefix search without index against vector column as below since this release. |
| 531 | |
| 532 | ``` |
| 533 | table_create Users TABLE_NO_KEY |
| 534 | column_create Users name COLUMN_VECTOR ShortText |
| 535 | |
| 536 | load --table Users |
| 537 | [ |
| 538 | {"name": ["alice"]}, |
| 539 | {"name": ["bob"]}, |
| 540 | {"name": ["callum"]}, |
| 541 | {"name": ["elly", "alice"]}, |
| 542 | {"name": ["marshal"]} |
| 543 | ] |
| 544 | |
| 545 | select Users --query 'name:^al' |
| 546 | [ |
| 547 | [ |
| 548 | 0, |
| 549 | 0.0, |
| 550 | 0.0 |
| 551 | ], |
| 552 | [ |
| 553 | [ |
| 554 | [ |
| 555 | 2 |
| 556 | ], |
| 557 | [ |
| 558 | [ |
| 559 | "_id", |
| 560 | "UInt32" |
| 561 | ], |
| 562 | [ |
| 563 | "name", |
| 564 | "ShortText" |
| 565 | ] |
| 566 | ], |
| 567 | [ |
| 568 | 1, |
| 569 | [ |
| 570 | "alice" |
| 571 | ] |
| 572 | ], |
| 573 | [ |
| 574 | 4, |
| 575 | [ |
| 576 | "elly", |
| 577 | "alice" |
| 578 | ] |
| 579 | ] |
| 580 | ] |
| 581 | ] |
| 582 | ] |
| 583 | ``` |
| 584 | |
| 585 | - [{doc}`/install/debian`] Dropped support for Debian 11 (bullseye). |
| 586 | |
| 587 | (release-14-0-5)= |
| 588 | |
| 589 | ## Release 14.0.5 - 2024-07-04 |
| 590 | |
| 591 | ### Improvements |
| 592 | |
| 593 | - Dropped support for CentOS 7. |
| 594 | |
| 595 | Because CentOS 7 reached EOL. |
| 596 | |
| 597 | - Added a new feature that objects(table or column) as remove as possible. |
| 598 | |
| 599 | The crash safe feature of PGroonga will use this feature mainly. |
| 600 | |
| 601 | PGroonga will apply PGroonga's WAL to standby database automatically by using [`Custom WAL Resource Managers`](https://www.postgresql.org/docs/current/custom-rmgr.html). |
| 602 | However, when PGroonga use `Custom WAL Resource Managers`, all replications are stop if PGroonga fail application of PGroonga's WAL due to break Groonga's object. |
| 603 | So, if broken objects exist in database, Groonga will try as remove as possible objects by using this feature. |
| 604 | |
| 605 | ### Fixes |
| 606 | |
| 607 | - [{doc}`/reference/functions/query`] Fixed a bug that the order of evaluation of `'A || query("...", "B C")'` is wrong |
| 608 | |
| 609 | We expect that `{"name": "Alice", "memo": "Groonga user"}` is hit in the following example. |
| 610 | However, if this problem occurred, the following query had not been hit. |
| 611 | |
| 612 | ``` |
| 613 | table_create Users TABLE_NO_KEY |
| 614 | column_create Users name COLUMN_SCALAR ShortText |
| 615 | column_create Users memo COLUMN_SCALAR ShortText |
| 616 | |
| 617 | load --table Users |
| 618 | [ |
| 619 | {"name": "Alice", "memo": "Groonga user"}, |
| 620 | {"name": "Bob", "memo": "Rroonga user"} |
| 621 | ] |
| 622 | select Users \ |
| 623 | --output_columns 'name, memo, _score' \ |
| 624 | --filter 'memo @ "Groonga" || query("name", "Bob Rroonga")' |
| 625 | [[0,0.0,0.0],[[[0],[["name","ShortText"],["memo","ShortText"],["_score","Int32"]]]]] |
| 626 | ``` |
| 627 | |
| 628 | After the fix, `{"name": "Alice", "memo": "Groonga user"}` is hit such as the following example. |
| 629 | |
| 630 | ``` |
| 631 | select Users \ |
| 632 | --output_columns 'name, memo, _score' \ |
| 633 | --filter 'memo @ "Groonga" || query("name", "Bob Rroonga")' |
| 634 | [ |
| 635 | [ |
| 636 | 0, |
| 637 | 1719376617.537505, |
| 638 | 0.002481460571289062 |
| 639 | ], |
| 640 | [ |
| 641 | [ |
| 642 | [ |
| 643 | 1 |
| 644 | ], |
| 645 | [ |
| 646 | [ |
| 647 | "name", |
| 648 | "ShortText" |
| 649 | ], |
| 650 | [ |
| 651 | "memo", |
| 652 | "ShortText" |
| 653 | ], |
| 654 | [ |
| 655 | "_score", |
| 656 | "Int32" |
| 657 | ] |
| 658 | ], |
| 659 | [ |
| 660 | "Alice", |
| 661 | "Groonga user", |
| 662 | 1 |
| 663 | ] |
| 664 | ] |
| 665 | ] |
| 666 | ] |
| 667 | ``` |
| 668 | |
| 669 | Here is occurrence condition of this problem. |
| 670 | |
| 671 | - We use `OR` search and `query()`. |
| 672 | - We use `AND` search in `query()`. |
| 673 | - The order of condition expression is `'A || query("...", "B C")'`. |
| 674 | |
| 675 | So, this problem doesn't occur if we use only `query()` or we don't use `AND` search in `query()`. |
| 676 | |
| 677 | - [{doc}`/reference/commands/select`] Fixed a bug that a condition that evaluate prefix search in advance such as `--query "A* OR B"` returned wrong search result |
| 678 | |
| 679 | This problem may occur when prefix search evaluate in advance. |
| 680 | This problem doesn't occur a condition that evaluate prefix search in the end such as `--query A OR B*`. |
| 681 | |
| 682 | If this problem occur, the `Bo` and the `li` of `--query "Bo* OR li"` are evaluated as a prefix search. |
| 683 | As a result, The following query does not hit. Because `li` is evaluated as a prefix search as mentioned above. |
| 684 | |
| 685 | ``` |
| 686 | table_create Users TABLE_NO_KEY |
| 687 | column_create Users name COLUMN_SCALAR ShortText |
| 688 | |
| 689 | load --table Users |
| 690 | [ |
| 691 | ["name"], |
| 692 | ["Alice"] |
| 693 | ] |
| 694 | |
| 695 | select Users \ |
| 696 | --match_columns name \ |
| 697 | --query "Bo* OR li" |
| 698 | [ |
| 699 | [ |
| 700 | 0, |
| 701 | 1719377505.628048, |
| 702 | 0.0007376670837402344 |
| 703 | ], |
| 704 | [ |
| 705 | [ |
| 706 | [ |
| 707 | 0 |
| 708 | ], |
| 709 | [ |
| 710 | [ |
| 711 | "_id", |
| 712 | "UInt32" |
| 713 | ], |
| 714 | [ |
| 715 | "name", |
| 716 | "ShortText" |
| 717 | ] |
| 718 | ] |
| 719 | ] |
| 720 | ] |
| 721 | ] |
| 722 | ``` |
| 723 | |
| 724 | (release-14-0-4)= |
| 725 | |
| 726 | ## Release 14.0.4 - 2024-05-29 |
| 727 | |
| 728 | ### Fixes |
| 729 | |
| 730 | - [{doc}`/reference/functions/query_parallel_or`] Fixed a bug that the {ref}`select-match-escalation-threshold` or `force_match_escalation` options were ignored when using `query_parallel_or()`. |
| 731 | |
| 732 | Before the fix, even when `match_escalation_threshold` was set to disable match escalation, the results still escalated when we use `query_parallel_or()`. |
| 733 | This problem occurred only `query_parallel_or()`. {doc}`/reference/functions/query` don't occur this problem. |
| 734 | |
| 735 | Generally, we don't disable match escalation. Because we want to get something search results. The number of hits is 0 is the unwelcome result of us. |
| 736 | Therefore, this problem has no effect by many users. However, it has effect by user who use stop word as below. |
| 737 | |
| 738 | ``` |
| 739 | plugin_register token_filters/stop_word |
| 740 | |
| 741 | table_create Memos TABLE_NO_KEY |
| 742 | column_create Memos content COLUMN_SCALAR ShortText |
| 743 | |
| 744 | table_create Terms TABLE_PAT_KEY ShortText \ |
| 745 | --default_tokenizer TokenBigram \ |
| 746 | --normalizer NormalizerAuto \ |
| 747 | --token_filters TokenFilterStopWord |
| 748 | column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content |
| 749 | column_create Terms is_stop_word COLUMN_SCALAR Bool |
| 750 | load --table Terms |
| 751 | [ |
| 752 | {"_key": "and", "is_stop_word": true} |
| 753 | ] |
| 754 | |
| 755 | load --table Memos |
| 756 | [ |
| 757 | {"content": "Hello"}, |
| 758 | {"content": "Hello and Good-bye"}, |
| 759 | {"content": "Good-bye"} |
| 760 | ] |
| 761 | |
| 762 | select Memos \ |
| 763 | --filter 'query_parallel_or(["content", "content", "content", "content"], \ |
| 764 | "and", \ |
| 765 | {"options": {"TokenFilterStopWord.enable": true}})' \ |
| 766 | --match_escalation_threshold -1 \ |
| 767 | --sort_keys -_score |
| 768 | ``` |
| 769 | |
| 770 | We don't want to match a keyword that is registered as stopword. |
| 771 | Therefore, we set `-1` to `match_escalation_threshold` in the above example. |
| 772 | We expect that Groonga doesn't return records in the above example because of escalation disable and search keyword(`and`) is registered as stopword. |
| 773 | However, If this problem occur, Groonga returns match record. |
| 774 | Because if we use `query_parallel_or()`, `match_escalation_threshold` doesn't work. |
| 775 | |
| 776 | - Fixed a bug that full-text search against a reference column of a vector didn't work. |
| 777 | |
| 778 | This problem has occured Groonga v14.0.0 or later. |
| 779 | This problem has effect if we execute full-text search against a reference column of a vector. |
| 780 | |
| 781 | We expected that Groonga returns `[1, "Linux MySQL"]` and `[2, "MySQL Groonga"]` as below example. |
| 782 | However, before the fix, Groonga always returned 0 hits as below because of we executed full-text search on a reference column of a vector. |
| 783 | |
| 784 | ``` |
| 785 | table_create bugs TABLE_PAT_KEY UInt32 |
| 786 | |
| 787 | table_create tags TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit |
| 788 | column_create tags name COLUMN_SCALAR ShortText |
| 789 | |
| 790 | column_create bugs tags COLUMN_VECTOR tags |
| 791 | |
| 792 | load --table bugs |
| 793 | [ |
| 794 | ["_key", "tags"], |
| 795 | [1, "Linux MySQL"], |
| 796 | [2, "MySQL Groonga"], |
| 797 | [3, "Mroonga"] |
| 798 | ] |
| 799 | |
| 800 | column_create tags bugs_tags_index COLUMN_INDEX bugs tags |
| 801 | |
| 802 | select --table bugs --filter 'tags @ "MySQL"' |
| 803 | [ |
| 804 | [ |
| 805 | 0, |
| 806 | 0.0, |
| 807 | 0.0 |
| 808 | ], |
| 809 | [ |
| 810 | [ |
| 811 | [ |
| 812 | 0 |
| 813 | ], |
| 814 | [ |
| 815 | [ |
| 816 | "_id", |
| 817 | "UInt32" |
| 818 | ], |
| 819 | [ |
| 820 | "_key", |
| 821 | "UInt32" |
| 822 | ], |
| 823 | [ |
| 824 | "tags", |
| 825 | "tags" |
| 826 | ] |
| 827 | ] |
| 828 | ] |
| 829 | ] |
| 830 | ] |
| 831 | ``` |
| 832 | |
| 833 | (release-14-0-3)= |
| 834 | |
| 835 | ## Release 14.0.3 - 2024-05-09 |
| 836 | |
| 837 | ### Improvements |
| 838 | |
| 839 | - We optimized performance as below. |
| 840 | |
| 841 | - We optimized performance of `OR` and `AND` search when the number of hits were many. |
| 842 | |
| 843 | - We optimized performance of prefix search(`@^`). |
| 844 | |
| 845 | - We optimized performance of `AND` search when the number of records of `A` more than `B` in condition of `A AND B`. |
| 846 | |
| 847 | - We optimized performance of search when we used many dynamic columns. |
| 848 | |
| 849 | - [{doc}`/reference/tokenizers/token_ngram`] Added new option `ignore_blank`. |
| 850 | |
| 851 | We can replace `TokenBigramIgnoreBlank` with `TokenNgram("ignore_blank", true)` as below. |
| 852 | |
| 853 | Here is example of use `TokenBigram`. |
| 854 | |
| 855 | ``` |
| 856 | tokenize TokenBigram "! ! !" NormalizerAuto |
| 857 | [ |
| 858 | [ |
| 859 | 0, |
| 860 | 1715155644.64263, |
| 861 | 0.001013517379760742 |
| 862 | ], |
| 863 | [ |
| 864 | { |
| 865 | "value": "!", |
| 866 | "position": 0, |
| 867 | "force_prefix": false, |
| 868 | "force_prefix_search": false |
| 869 | }, |
| 870 | { |
| 871 | "value": "!", |
| 872 | "position": 1, |
| 873 | "force_prefix": false, |
| 874 | "force_prefix_search": false |
| 875 | }, |
| 876 | { |
| 877 | "value": "!", |
| 878 | "position": 2, |
| 879 | "force_prefix": false, |
| 880 | "force_prefix_search": false |
| 881 | } |
| 882 | ] |
| 883 | ] |
| 884 | ``` |
| 885 | |
| 886 | Here is example of use `TokenBigramIgnoreBlank`. |
| 887 | |
| 888 | ``` |
| 889 | tokenize TokenBigramIgnoreBlank "! ! !" NormalizerAuto |
| 890 | [ |
| 891 | [ |
| 892 | 0, |
| 893 | 1715155680.323451, |
| 894 | 0.0009913444519042969 |
| 895 | ], |
| 896 | [ |
| 897 | { |
| 898 | "value": "!!!", |
| 899 | "position": 0, |
| 900 | "force_prefix": false, |
| 901 | "force_prefix_search": false |
| 902 | } |
| 903 | ] |
| 904 | ] |
| 905 | ``` |
| 906 | |
| 907 | Here is example of use `TokenNgram("ignore_blank", true)`. |
| 908 | |
| 909 | ``` |
| 910 | tokenize 'TokenNgram("ignore_blank", true)' "! ! !" NormalizerAuto |
| 911 | [ |
| 912 | [ |
| 913 | 0, |
| 914 | 1715155762.340685, |
| 915 | 0.001041412353515625 |
| 916 | ], |
| 917 | [ |
| 918 | { |
| 919 | "value": "!!!", |
| 920 | "position": 0, |
| 921 | "force_prefix": false, |
| 922 | "force_prefix_search": false |
| 923 | } |
| 924 | ] |
| 925 | ] |
| 926 | ``` |
| 927 | |
| 928 | - [{doc}`/install/ubuntu`] Add support for Ubuntu 24.04 LTS (Noble Numbat). |
| 929 | |
| 930 | ### Fixes |
| 931 | |
| 932 | - [{doc}`/reference/commands/request_cancel`] Fix a bug that Groonga may crash when we execute `request_cancel` command while we execute the other query. |
| 933 | |
| 934 | - Fixed the unexpected error when using `--post_filter` with `--offset` greater than the post-filtered result |
| 935 | |
| 936 | In the same situation, using `--filter` with `--offset` doesn't raise the error. |
| 937 | This inconsistency in behavior between `--filter` and `--post-filter` has now been resolved. |
| 938 | |
| 939 | ``` |
| 940 | table_create Users TABLE_PAT_KEY ShortText |
| 941 | column_create Users age COLUMN_SCALAR UInt32 |
| 942 | load --table Users |
| 943 | [ |
| 944 | ["_key", "age"], |
| 945 | ["Alice", 21], |
| 946 | ["Bob", 22], |
| 947 | ["Chris", 23], |
| 948 | ["Diana", 24], |
| 949 | ["Emily", 25] |
| 950 | ] |
| 951 | select Users \ |
| 952 | --filter 'age >= 22' \ |
| 953 | --post_filter 'age <= 24' \ |
| 954 | --offset 3 \ |
| 955 | --sort_keys -age --output_pretty yes |
| 956 | [ |
| 957 | [ |
| 958 | -68, |
| 959 | 1715224057.317582, |
| 960 | 0.001833438873291016, |
| 961 | "[table][sort] grn_output_range_normalize failed", |
| 962 | [ |
| 963 | [ |
| 964 | "grn_table_sort", |
| 965 | "/home/horimoto/Work/free-software/groonga.tag/lib/sort.c", |
| 966 | 1052 |
| 967 | ] |
| 968 | ] |
| 969 | ] |
| 970 | ] |
| 971 | ``` |
| 972 | |
| 973 | - Fixed a bug where incorrect search result could be returned when not all phrases within `(...)` matched using near phrase product. |
| 974 | |
| 975 | For example, there is no record which matched `(2)` condition using `--query '*NPP1"(a) (2)"'`. |
| 976 | In this case, the expected behavior would be return no record. However, the actual behavior was equal to the query `--query '*NPP and "(a)"` as below. |
| 977 | This means that despite no records matched `(2)`, records like `ax1` and `axx1` were incorrectly returned. |
| 978 | |
| 979 | ``` |
| 980 | table_create Entries TABLE_NO_KEY |
| 981 | column_create Entries content COLUMN_SCALAR Text |
| 982 | |
| 983 | table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram |
| 984 | column_create Terms entries_content COLUMN_INDEX|WITH_POSITION Entries content |
| 985 | load --table Entries |
| 986 | [ |
| 987 | {"content": "ax1"}, |
| 988 | {"content": "axx1"} |
| 989 | ] |
| 990 | |
| 991 | select Entries \ |
| 992 | --match_columns content \ |
| 993 | --query '*NPP1"(a) (2)"' \ |
| 994 | --output_columns 'content' |
| 995 | [ |
| 996 | [ |
| 997 | 0, |
| 998 | 1715224211.050228, |
| 999 | 0.001366376876831055 |
| 1000 | ], |
| 1001 | [ |
| 1002 | [ |
| 1003 | [ |
| 1004 | 2 |
| 1005 | ], |
| 1006 | [ |
| 1007 | [ |
| 1008 | "content", |
| 1009 | "Text" |
| 1010 | ] |
| 1011 | ], |
| 1012 | [ |
| 1013 | "ax1" |
| 1014 | ], |
| 1015 | [ |
| 1016 | "axx1" |
| 1017 | ] |
| 1018 | ] |
| 1019 | ] |
| 1020 | ] |
| 1021 | ``` |
| 1022 | |
| 1023 | - Fixed a bug that rehash failed or data in a table broke when rehash occurred that the table with `TABLE_HASH_KEY` has 2^28 or more records. |
| 1024 | |
| 1025 | - Fixed a bug that highlight position slipped out of place in the following cases. |
| 1026 | |
| 1027 | - If full width space existed before highlight target characters as below. |
| 1028 | |
| 1029 | We expected that Groonga returned `"Groonga <span class=\"keyword\">高</span>速!"`. |
| 1030 | However, Groonga returned `"Groonga <span class=\"keyword\">高速</span>!"` as below. |
| 1031 | |
| 1032 | ``` |
| 1033 | table_create Entries TABLE_NO_KEY |
| 1034 | column_create Entries body COLUMN_SCALAR ShortText |
| 1035 | |
| 1036 | table_create Terms TABLE_PAT_KEY ShortText \ |
| 1037 | --default_tokenizer 'TokenNgram("report_source_location", true)' \ |
| 1038 | --normalizer 'NormalizerNFKC150("report_source_offset", true)' |
| 1039 | column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body |
| 1040 | |
| 1041 | load --table Entries |
| 1042 | [ |
| 1043 | {"body": "Groonga 高速!"} |
| 1044 | ] |
| 1045 | select Entries \ |
| 1046 | --output_columns \ |
| 1047 | --match_columns body \ |
| 1048 | --query '高' \ |
| 1049 | --output_columns 'highlight_html(body, Terms)' |
| 1050 | [ |
| 1051 | [ |
| 1052 | 0, |
| 1053 | 1715215640.979517, |
| 1054 | 0.001608610153198242 |
| 1055 | ], |
| 1056 | [ |
| 1057 | [ |
| 1058 | [ |
| 1059 | 1 |
| 1060 | ], |
| 1061 | [ |
| 1062 | [ |
| 1063 | "highlight_html", |
| 1064 | null |
| 1065 | ] |
| 1066 | ], |
| 1067 | [ |
| 1068 | "Groonga <span class=\"keyword\">高速</span>!" |
| 1069 | ] |
| 1070 | ] |
| 1071 | ] |
| 1072 | ] |
| 1073 | ``` |
| 1074 | |
| 1075 | - If we used `TokenNgram("loose_blank", true)` and if highlight target characters included full width space as below. |
| 1076 | |
| 1077 | We expected that Groonga returned `"<span class=\"keyword\">山田 太郎</span>"`. |
| 1078 | However, Groonga returned `"<span class=\"keyword\">山田 太</span>"` as below. |
| 1079 | |
| 1080 | ``` |
| 1081 | table_create Entries TABLE_NO_KEY |
| 1082 | column_create Entries body COLUMN_SCALAR ShortText |
| 1083 | |
| 1084 | table_create Terms TABLE_PAT_KEY ShortText \ |
| 1085 | --default_tokenizer 'TokenNgram("loose_blank", true, "report_source_location", true)' \ |
| 1086 | --normalizer 'NormalizerNFKC150("report_source_offset", true)' |
| 1087 | column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body |
| 1088 | |
| 1089 | load --table Entries |
| 1090 | [ |
| 1091 | {"body": "山田 太郎"} |
| 1092 | ] |
| 1093 | |
| 1094 | select Entries --output_columns \ |
| 1095 | --match_columns body --query '山田太郎' \ |
| 1096 | --output_columns 'highlight_html(body, Terms)' --output_pretty yes |
| 1097 | [ |
| 1098 | [ |
| 1099 | 0, |
| 1100 | 1715220409.096246, |
| 1101 | 0.0004854202270507812 |
| 1102 | ], |
| 1103 | [ |
| 1104 | [ |
| 1105 | [ |
| 1106 | 1 |
| 1107 | ], |
| 1108 | [ |
| 1109 | [ |
| 1110 | "highlight_html", |
| 1111 | null |
| 1112 | ] |
| 1113 | ], |
| 1114 | [ |
| 1115 | "<span class=\"keyword\">山田 太</span>" |
| 1116 | ] |
| 1117 | ] |
| 1118 | ] |
| 1119 | ] |
| 1120 | ``` |
| 1121 | |
| 1122 | - If white space existed in the front of highlight target characters as below. |
| 1123 | |
| 1124 | We expected that Groonga returned `" <span class=\"keyword\">山</span>田太郎"`. |
| 1125 | However, Groonga returned `" <span class=\"keyword\">山</span>"` as below. |
| 1126 | |
| 1127 | ``` |
| 1128 | table_create Entries TABLE_NO_KEY |
| 1129 | column_create Entries body COLUMN_SCALAR ShortText |
| 1130 | |
| 1131 | table_create Terms TABLE_PAT_KEY ShortText \ |
| 1132 | --default_tokenizer 'TokenNgram("report_source_location", true)' \ |
| 1133 | --normalizer 'NormalizerNFKC150("report_source_offset", true)' |
| 1134 | column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body |
| 1135 | |
| 1136 | load --table Entries |
| 1137 | [ |
| 1138 | {"body": " 山田太郎"} |
| 1139 | ] |
| 1140 | |
| 1141 | select Entries \ |
| 1142 | --output_columns \ |
| 1143 | --match_columns body \ |
| 1144 | --query '山' \ |
| 1145 | --output_columns 'highlight_html(body, Terms)' --output_pretty yes |
| 1146 | [ |
| 1147 | [ |
| 1148 | 0, |
| 1149 | 1715221627.002193, |
| 1150 | 0.001977920532226562 |
| 1151 | ], |
| 1152 | [ |
| 1153 | [ |
| 1154 | [ |
| 1155 | 1 |
| 1156 | ], |
| 1157 | [ |
| 1158 | [ |
| 1159 | "highlight_html", |
| 1160 | null |
| 1161 | ] |
| 1162 | ], |
| 1163 | [ |
| 1164 | " <span class=\"keyword\">山</span>" |
| 1165 | ] |
| 1166 | ] |
| 1167 | ] |
| 1168 | ] |
| 1169 | ``` |
| 1170 | |
| 1171 | - If the second character of highlight target was full width space as below. |
| 1172 | |
| 1173 | We expected that Groonga returned `"<span class=\"keyword\">山 田</span>太郎"`. |
| 1174 | However, Groonga returned `"<span class=\"keyword\">山 田太</span>郎"` as below. |
| 1175 | |
| 1176 | ``` |
| 1177 | table_create Entries TABLE_NO_KEY |
| 1178 | column_create Entries body COLUMN_SCALAR ShortText |
| 1179 | |
| 1180 | table_create Terms TABLE_PAT_KEY ShortText \ |
| 1181 | --default_tokenizer 'TokenNgram("report_source_location", true)' \ |
| 1182 | --normalizer 'NormalizerNFKC150("report_source_offset", true)' |
| 1183 | column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body |
| 1184 | |
| 1185 | load --table Entries |
| 1186 | [ |
| 1187 | {"body": "山 田太郎"} |
| 1188 | ] |
| 1189 | |
| 1190 | select Entries \ |
| 1191 | --output_columns \ |
| 1192 | --match_columns body \ |
| 1193 | --query '山 田' \ |
| 1194 | --output_columns 'highlight_html(body, Terms)' |
| 1195 | [ |
| 1196 | [ |
| 1197 | 0, |
| 1198 | 1715222501.496007, |
| 1199 | 0.0005536079406738281 |
| 1200 | ], |
| 1201 | [ |
| 1202 | [ |
| 1203 | [ |
| 1204 | 0 |
| 1205 | ], |
| 1206 | [ |
| 1207 | [ |
| 1208 | "highlight_html", |
| 1209 | "<span class=\"keyword\">山 田太</span>郎" |
| 1210 | ] |
| 1211 | ] |
| 1212 | ] |
| 1213 | ] |
| 1214 | ] |
| 1215 | ``` |
| 1216 | |
| 1217 | (release-14-0-2)= |
| 1218 | |
| 1219 | ## Release 14.0.2 - 2024-03-29 |
| 1220 | |
| 1221 | ### Improvements |
| 1222 | |
| 1223 | - Reduced a log level of a log when Groonga setting normalizers/tokenizer/token_filters against temporary table. |
| 1224 | |
| 1225 | For example, the target log of this modification is the following log. |
| 1226 | |
| 1227 | ``` |
| 1228 | DDL:1234567890:set_normalizers NormalizerAuto |
| 1229 | ``` |
| 1230 | |
| 1231 | PGroonga sets normalizers against temporary table on start. So, this log becomes noise. |
| 1232 | Because this log become output when PGroonga start because of PGroonga's default log level is `notice`. |
| 1233 | |
| 1234 | Therefore, we reduce log level to `debug` for the log since this release. |
| 1235 | Thus, this log does not output when PGroonga start in default. |
| 1236 | |
| 1237 | (release-14-0-1)= |
| 1238 | |
| 1239 | ## Release 14.0.1 - 2024-03-14 |
| 1240 | |
| 1241 | ### Improvements |
| 1242 | |
| 1243 | - [{doc}`/reference/commands/load`] Stopped reporting an error when we `load` key that becomes an empty key by normalization. |
| 1244 | |
| 1245 | `"-"` becomes `""` with `NormalizerNFKC150("remove_symbol", true)`. So the following case reports a "empty key" error. |
| 1246 | |
| 1247 | ``` |
| 1248 | table_create Values TABLE_HASH_KEY ShortText \ |
| 1249 | --normalizers 'NormalizerNFKC150("remove_symbol", true)' |
| 1250 | table_create Data TABLE_NO_KEY |
| 1251 | column_create Data value COLUMN_SCALAR Values |
| 1252 | load --table Data |
| 1253 | [ |
| 1254 | {"value": "-"} |
| 1255 | ] |
| 1256 | ``` |
| 1257 | |
| 1258 | However, if we many `load` in such data, many error log are generated. |
| 1259 | Because Groonga output many "empty key" error because of Groonga can't register empty string to index. |
| 1260 | |
| 1261 | No problem even if empty string can't register to index in such case. |
| 1262 | Because we don't match anything even if we search by empty string. So, we stop reporting an "empty key" error in such case. |
| 1263 | |
| 1264 | ### Fixes |
| 1265 | |
| 1266 | - Fixed a crash bug if a request is canceled {doc}`/reference/functions/between` or range search. |
| 1267 | |
| 1268 | This bug doesn't necessarily occur. This bug occur when we cancel a request in the specific timing. |
| 1269 | This bug occur easily when search time is long such as sequential search. |
| 1270 | |
| 1271 | - Fixed a bug that {doc}`/reference/functions/highlight_html` may return invalid result when the following conditions are met. |
| 1272 | |
| 1273 | - We use multiple normalizers such as `NormalizerTable` and `NormalizerNFKC150`. |
| 1274 | - We highlight string include whitespace. |
| 1275 | |
| 1276 | For example, this bug occur such as the following case. |
| 1277 | |
| 1278 | ``` |
| 1279 | table_create NormalizationsIndex TABLE_PAT_KEY ShortText --normalizer NormalizerAuto |
| 1280 | |
| 1281 | table_create Normalizations TABLE_HASH_KEY UInt64 |
| 1282 | column_create Normalizations normalized COLUMN_SCALAR LongText |
| 1283 | column_create Normalizations target COLUMN_SCALAR NormalizationsIndex |
| 1284 | |
| 1285 | column_create NormalizationsIndex index COLUMN_INDEX Normalizations target |
| 1286 | |
| 1287 | |
| 1288 | table_create Lexicon TABLE_PAT_KEY ShortText \ |
| 1289 | --normalizers 'NormalizerTable("normalized", \ |
| 1290 | "Normalizations.normalized", \ |
| 1291 | "target", \ |
| 1292 | "target"), NormalizerNFKC150' |
| 1293 | |
| 1294 | table_create Names TABLE_HASH_KEY UInt64 |
| 1295 | column_create Names name COLUMN_SCALAR Lexicon |
| 1296 | |
| 1297 | load --table Names |
| 1298 | [ |
| 1299 | ["_key","name"], |
| 1300 | [1,"Sato Toshio"] |
| 1301 | ] |
| 1302 | |
| 1303 | select Names \ |
| 1304 | --query '_key:1 OR name._key:@"Toshio"' \ |
| 1305 | --output_columns 'highlight_html(name._key, Lexicon) |
| 1306 | |
| 1307 | [ |
| 1308 | [ |
| 1309 | 0, |
| 1310 | 1710401574.332274, |
| 1311 | 0.001911401748657227 |
| 1312 | ], |
| 1313 | [ |
| 1314 | [ |
| 1315 | [ |
| 1316 | 1 |
| 1317 | ], |
| 1318 | [ |
| 1319 | [ |
| 1320 | "highlight_html", |
| 1321 | null |
| 1322 | ] |
| 1323 | ], |
| 1324 | [ |
| 1325 | "sato <span class=\"keyword\">toshi</span>o" |
| 1326 | ] |
| 1327 | ] |
| 1328 | ] |
| 1329 | ] |
| 1330 | ``` |
| 1331 | |
| 1332 | - [{doc}`/install/ubuntu`] We become able to provide package for Ubuntu again. |
| 1333 | |
| 1334 | We don't provide packages for Ubuntu in Groonga version 14.0.0. |
| 1335 | Because we fail making Groonga package for Ubuntu by problrm of build environment for Ubuntu package. |
| 1336 | |
| 1337 | We fixed problrm of build environment for Ubuntu package in 14.0.1. So, we can provide packages for Ubuntu again since this release. |
| 1338 | |
| 1339 | - Fixed build error when we build from source by using [`clang`](https://clang.llvm.org/). [GitHub#1738][Reported by windymelt] |
| 1340 | |
| 1341 | ### Thanks |
| 1342 | |
| 1343 | - windymelt |
| 1344 | |
| 1345 | (release-14-0-0)= |
| 1346 | |
| 1347 | ## Release 14.0.0 - 2024-02-29 |
| 1348 | |
| 1349 | This is a major version up! |
| 1350 | But It keeps backward compatibility. We can upgrade to 14.0.0 without rebuilding database. |
| 1351 | |
| 1352 | ### Improvements |
| 1353 | |
| 1354 | - Added a new tokenizer `TokenH3Index` (experimental). |
| 1355 | |
| 1356 | `TokenH3Index`tokenizes WGS84GetPoint to UInt64(H3 index). |
| 1357 | |
| 1358 | - Added support for offline and online index construction with non text based tokenizer (experimental). |
| 1359 | |
| 1360 | `TokenH3Index` is one of non text based tokenizers. |
| 1361 | |
| 1362 | - [{doc}`/reference/commands/select`] Added support for searching by index with non text based tokenizer (experimental). |
| 1363 | |
| 1364 | `TokenH3Index` is one of non text based tokenizers. |
| 1365 | |
| 1366 | - Added new functions `distance_cosine()`, `distance_inner_product()`, `distance_l2_norm_squared()`, `distance_l1_norm()`. |
| 1367 | |
| 1368 | We can only get records that a small distance as vector with these functions and `limit N` |
| 1369 | |
| 1370 | These functions calculate distance in the `output` stage. |
| 1371 | |
| 1372 | However, we don't optimize these functions yet. |
| 1373 | |
| 1374 | - `distance_cosine()`: Calculate cosine similarity. |
| 1375 | - `distance_inner_product()`: Calculate inner product. |
| 1376 | - `distance_l2_norm_squared()`: Calculate euclidean distance. |
| 1377 | - `distance_l1_norm()`: Calculate manhattan distance. |
| 1378 | |
| 1379 | - Added a new function `number_round()`. |
| 1380 | |
| 1381 | - [{doc}`/reference/commands/load`] Added support for parallel `load`. |
| 1382 | |
| 1383 | This feature only enable when the `input_type` of `load` is `apache-arrow`. |
| 1384 | |
| 1385 | This feature one thread per column. If there are many target columns, it will reduce load time. |
| 1386 | |
| 1387 | - [{doc}`/reference/commands/select`] We can use uvector as much as possible for array literal in `--filter`. |
| 1388 | |
| 1389 | uvector is vector of elements with fix size. |
| 1390 | |
| 1391 | If all elements have the same type, we use uvector instead vector. |
| 1392 | |
| 1393 | - [{doc}`/reference/commands/status`] Added `n_workers` to output of `status`. |
| 1394 | |
| 1395 | - Optimized a dynamic column creation. |
| 1396 | |
| 1397 | - [WAL] Added support for rebuilding broken indexes in parallel. |
| 1398 | |
| 1399 | - [{doc}`/reference/commands/select`] Added support for `Int64` in `output_type=apache-arrow` for columns that reference other table. |
| 1400 | |
| 1401 | ### Fixes |
| 1402 | |
| 1403 | - [Windows] Fixed path for documents of `groonga-normalizer-mysql` in package for Windows. |
| 1404 | |
| 1405 | Documents of `groonga-normalizer-mysql` put under the `share/` in this release. |
| 1406 | |
| 1407 | - [{doc}`/reference/commands/select`] Fixed a bug that Groonga may crash when we use bitwise operations. |