Skip to content

Commit 17d5869

Browse files
authored
update CHANGELOG, use github API in cliff (#2354)
* update CHANGELOG, use github API in cliff * reset version to 0.21.1, before release * chore: Release * remove unreleased from CHANGELOG
1 parent dfa3aed commit 17d5869

File tree

11 files changed

+129
-64
lines changed

11 files changed

+129
-64
lines changed

CHANGELOG.md

+62
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
Tantivy 0.22
2+
================================
3+
4+
Tantivy 0.22 will be able to read indices created with Tantivy 0.21.
5+
6+
#### Bugfixes
7+
- Fix null byte handling in JSON paths (null bytes in json keys caused panic during indexing) [#2345](https://github.com/quickwit-oss/tantivy/pull/2345)(@PSeitz)
8+
- Fix bug that can cause `get_docids_for_value_range` to panic. [#2295](https://github.com/quickwit-oss/tantivy/pull/2295)(@fulmicoton)
9+
- Avoid 1 document indices by increase min memory to 15MB for indexing [#2176](https://github.com/quickwit-oss/tantivy/pull/2176)(@PSeitz)
10+
- Fix merge panic for JSON fields [#2284](https://github.com/quickwit-oss/tantivy/pull/2284)(@PSeitz)
11+
- Fix bug occuring when merging JSON object indexed with positions. [#2253](https://github.com/quickwit-oss/tantivy/pull/2253)(@fulmicoton)
12+
- Fix empty DateHistogram gap bug [#2183](https://github.com/quickwit-oss/tantivy/pull/2183)(@PSeitz)
13+
- Fix range query end check (fields with less than 1 value per doc are affected) [#2226](https://github.com/quickwit-oss/tantivy/pull/2226)(@PSeitz)
14+
- Handle exclusive out of bounds ranges on fastfield range queries [#2174](https://github.com/quickwit-oss/tantivy/pull/2174)(@PSeitz)
15+
16+
#### Breaking API Changes
17+
- rename ReloadPolicy onCommit to onCommitWithDelay [#2235](https://github.com/quickwit-oss/tantivy/pull/2235)(@giovannicuccu)
18+
- Move exports from the root into modules [#2220](https://github.com/quickwit-oss/tantivy/pull/2220)(@PSeitz)
19+
- Accept field name instead of `Field` in FilterCollector [#2196](https://github.com/quickwit-oss/tantivy/pull/2196)(@PSeitz)
20+
- remove deprecated IntOptions and DateTime [#2353](https://github.com/quickwit-oss/tantivy/pull/2353)(@PSeitz)
21+
22+
#### Features/Improvements
23+
- Tantivy documents as a trait: Index data directly without converting to tantivy types first [#2071](https://github.com/quickwit-oss/tantivy/pull/2071)(@ChillFish8)
24+
- encode some part of posting list as -1 instead of direct values (smaller inverted indices) [#2185](https://github.com/quickwit-oss/tantivy/pull/2185)(@trinity-1686a)
25+
- **Aggregation**
26+
- Support to deserialize f64 from string [#2311](https://github.com/quickwit-oss/tantivy/pull/2311)(@PSeitz)
27+
- Add a top_hits aggregator [#2198](https://github.com/quickwit-oss/tantivy/pull/2198)(@ditsuke)
28+
- Support bool type in term aggregation [#2318](https://github.com/quickwit-oss/tantivy/pull/2318)(@PSeitz)
29+
- Support ip adresses in term aggregation [#2319](https://github.com/quickwit-oss/tantivy/pull/2319)(@PSeitz)
30+
- Support date type in term aggregation [#2172](https://github.com/quickwit-oss/tantivy/pull/2172)(@PSeitz)
31+
- Support escaped dot when addressing field [#2250](https://github.com/quickwit-oss/tantivy/pull/2250)(@PSeitz)
32+
33+
- Add ExistsQuery to check documents that have a value [#2160](https://github.com/quickwit-oss/tantivy/pull/2160)(@imotov)
34+
- Expose TopDocs::order_by_u64_field again [#2282](https://github.com/quickwit-oss/tantivy/pull/2282)(@ditsuke)
35+
36+
- **Memory/Performance**
37+
- Faster TopN: replace BinaryHeap with TopNComputer [#2186](https://github.com/quickwit-oss/tantivy/pull/2186)(@PSeitz)
38+
- reduce number of allocations during indexing [#2257](https://github.com/quickwit-oss/tantivy/pull/2257)(@PSeitz)
39+
- Less Memory while indexing: docid deltas while indexing [#2249](https://github.com/quickwit-oss/tantivy/pull/2249)(@PSeitz)
40+
- Faster indexing: use term hashmap in fastfield [#2243](https://github.com/quickwit-oss/tantivy/pull/2243)(@PSeitz)
41+
- term hashmap remove copy in is_empty, unused unordered_id [#2229](https://github.com/quickwit-oss/tantivy/pull/2229)(@PSeitz)
42+
- add method to fetch block of first values in columnar [#2330](https://github.com/quickwit-oss/tantivy/pull/2330)(@PSeitz)
43+
- Faster aggregations: add fast path for full columns in fetch_block [#2328](https://github.com/quickwit-oss/tantivy/pull/2328)(@PSeitz)
44+
- Faster sstable loading: use fst for sstable index [#2268](https://github.com/quickwit-oss/tantivy/pull/2268)(@trinity-1686a)
45+
46+
- **QueryParser**
47+
- allow newline where we allow space in query parser [#2302](https://github.com/quickwit-oss/tantivy/pull/2302)(@trinity-1686a)
48+
- allow some mixing of occur and bool in strict query parser [#2323](https://github.com/quickwit-oss/tantivy/pull/2323)(@trinity-1686a)
49+
- handle * inside term in lenient query parser [#2228](https://github.com/quickwit-oss/tantivy/pull/2228)(@trinity-1686a)
50+
- add support for exists query syntax in query parser [#2170](https://github.com/quickwit-oss/tantivy/pull/2170)(@trinity-1686a)
51+
- Add shared search executor [#2312](https://github.com/quickwit-oss/tantivy/pull/2312)(@MochiXu)
52+
- Truncate keys to u16::MAX in term hashmap [#2299](https://github.com/quickwit-oss/tantivy/pull/2299)(@PSeitz)
53+
- report if a term matched when warming up posting list [#2309](https://github.com/quickwit-oss/tantivy/pull/2309)(@trinity-1686a)
54+
- Support json fields in FuzzyTermQuery [#2173](https://github.com/quickwit-oss/tantivy/pull/2173)(@PingXia-at)
55+
- Read list of fields encoded in term dictionary for JSON fields [#2184](https://github.com/quickwit-oss/tantivy/pull/2184)(@PSeitz)
56+
- add collect_block to BoxableSegmentCollector [#2331](https://github.com/quickwit-oss/tantivy/pull/2331)(@PSeitz)
57+
- expose collect_block buffer size [#2326](https://github.com/quickwit-oss/tantivy/pull/2326)(@PSeitz)
58+
- Forward regex parser errors [#2288](https://github.com/quickwit-oss/tantivy/pull/2288)(@adamreichold)
59+
- Make FacetCounts defaultable and cloneable. [#2322](https://github.com/quickwit-oss/tantivy/pull/2322)(@adamreichold)
60+
- Derive Debug for SchemaBuilder [#2254](https://github.com/quickwit-oss/tantivy/pull/2254)(@GodTamIt)
61+
- add missing inlines to tantivy options [#2245](https://github.com/quickwit-oss/tantivy/pull/2245)(@PSeitz)
62+
163
Tantivy 0.21.1
264
================================
365
#### Bugfixes

Cargo.toml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy"
3-
version = "0.22.0-dev"
3+
version = "0.22.0"
44
authors = ["Paul Masurel <[email protected]>"]
55
license = "MIT"
66
categories = ["database-implementations", "data-structures"]
@@ -52,13 +52,13 @@ itertools = "0.12.0"
5252
measure_time = "0.8.2"
5353
arc-swap = "1.5.0"
5454

55-
columnar = { version= "0.2", path="./columnar", package ="tantivy-columnar" }
56-
sstable = { version= "0.2", path="./sstable", package ="tantivy-sstable", optional = true }
57-
stacker = { version= "0.2", path="./stacker", package ="tantivy-stacker" }
58-
query-grammar = { version= "0.21.0", path="./query-grammar", package = "tantivy-query-grammar" }
59-
tantivy-bitpacker = { version= "0.5", path="./bitpacker" }
60-
common = { version= "0.6", path = "./common/", package = "tantivy-common" }
61-
tokenizer-api = { version= "0.2", path="./tokenizer-api", package="tantivy-tokenizer-api" }
55+
columnar = { version= "0.3", path="./columnar", package ="tantivy-columnar" }
56+
sstable = { version= "0.3", path="./sstable", package ="tantivy-sstable", optional = true }
57+
stacker = { version= "0.3", path="./stacker", package ="tantivy-stacker" }
58+
query-grammar = { version= "0.22.0", path="./query-grammar", package = "tantivy-query-grammar" }
59+
tantivy-bitpacker = { version= "0.6", path="./bitpacker" }
60+
common = { version= "0.7", path = "./common/", package = "tantivy-common" }
61+
tokenizer-api = { version= "0.3", path="./tokenizer-api", package="tantivy-tokenizer-api" }
6262
sketches-ddsketch = { version = "0.2.1", features = ["use_serde"] }
6363
futures-util = { version = "0.3.28", optional = true }
6464
fnv = "1.0.7"

bitpacker/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-bitpacker"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
authors = ["Paul Masurel <[email protected]>"]
66
license = "MIT"

cliff.toml

+43-40
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,54 @@
11
# configuration file for git-cliff{ pattern = "foo", replace = "bar"}
22
# see https://github.com/orhun/git-cliff#configuration-file
33

4+
[remote.github]
5+
owner = "quickwit-oss"
6+
repo = "tantivy"
7+
48
[changelog]
59
# changelog header
610
header = """
711
"""
812
# template for the changelog body
913
# https://tera.netlify.app/docs/#introduction
1014
body = """
11-
{% if version %}\
12-
{{ version | trim_start_matches(pat="v") }} ({{ timestamp | date(format="%Y-%m-%d") }})
13-
==================
14-
{% else %}\
15-
## [unreleased]
16-
{% endif %}\
15+
## What's Changed
16+
17+
{%- if version %} in {{ version }}{%- endif -%}
1718
{% for commit in commits %}
18-
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | split(pat="\n") | first | trim | upper_first }}(@{{ commit.author.name }})\
19-
{% endfor %}
19+
{% if commit.github.pr_title -%}
20+
{%- set commit_message = commit.github.pr_title -%}
21+
{%- else -%}
22+
{%- set commit_message = commit.message -%}
23+
{%- endif -%}
24+
- {{ commit_message | split(pat="\n") | first | trim }}\
25+
{% if commit.github.pr_number %} \
26+
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}){% if commit.github.username %}(@{{ commit.github.username }}){%- endif -%} \
27+
{%- endif %}
28+
{%- endfor -%}
29+
30+
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
31+
{% raw %}\n{% endraw -%}
32+
## New Contributors
33+
{%- endif %}\
34+
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
35+
* @{{ contributor.username }} made their first contribution
36+
{%- if contributor.pr_number %} in \
37+
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
38+
{%- endif %}
39+
{%- endfor -%}
40+
41+
{% if version %}
42+
{% if previous.version %}
43+
**Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
44+
{% endif %}
45+
{% else -%}
46+
{% raw %}\n{% endraw %}
47+
{% endif %}
48+
49+
{%- macro remote_url() -%}
50+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
51+
{%- endmacro -%}
2052
"""
2153
# remove the leading and trailing whitespace from the template
2254
trim = true
@@ -25,53 +57,24 @@ footer = """
2557
"""
2658

2759
postprocessors = [
28-
{ pattern = 'Paul Masurel', replace = "fulmicoton"}, # replace with github user
29-
{ pattern = 'PSeitz', replace = "PSeitz"}, # replace with github user
30-
{ pattern = 'Adam Reichold', replace = "adamreichold"}, # replace with github user
31-
{ pattern = 'trinity-1686a', replace = "trinity-1686a"}, # replace with github user
32-
{ pattern = 'Michael Kleen', replace = "mkleen"}, # replace with github user
33-
{ pattern = 'Adrien Guillo', replace = "guilload"}, # replace with github user
34-
{ pattern = 'François Massot', replace = "fmassot"}, # replace with github user
35-
{ pattern = 'Naveen Aiathurai', replace = "naveenann"}, # replace with github user
36-
{ pattern = '', replace = ""}, # replace with github user
3760
]
3861

3962
[git]
4063
# parse the commits based on https://www.conventionalcommits.org
4164
# This is required or commit.message contains the whole commit message and not just the title
42-
conventional_commits = true
65+
conventional_commits = false
4366
# filter out the commits that are not conventional
44-
filter_unconventional = false
67+
filter_unconventional = true
4568
# process each line of a commit as an individual commit
4669
split_commits = false
4770
# regex for preprocessing the commit messages
4871
commit_preprocessors = [
49-
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "[#${2}](https://github.com/quickwit-oss/tantivy/issues/${2})"}, # replace issue numbers
72+
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = ""},
5073
]
5174
#link_parsers = [
5275
#{ pattern = "#(\\d+)", href = "https://github.com/quickwit-oss/tantivy/pulls/$1"},
5376
#]
5477
# regex for parsing and grouping commits
55-
commit_parsers = [
56-
{ message = "^feat", group = "Features"},
57-
{ message = "^fix", group = "Bug Fixes"},
58-
{ message = "^doc", group = "Documentation"},
59-
{ message = "^perf", group = "Performance"},
60-
{ message = "^refactor", group = "Refactor"},
61-
{ message = "^style", group = "Styling"},
62-
{ message = "^test", group = "Testing"},
63-
{ message = "^chore\\(release\\): prepare for", skip = true},
64-
{ message = "(?i)clippy", skip = true},
65-
{ message = "(?i)dependabot", skip = true},
66-
{ message = "(?i)fmt", skip = true},
67-
{ message = "(?i)bump", skip = true},
68-
{ message = "(?i)readme", skip = true},
69-
{ message = "(?i)comment", skip = true},
70-
{ message = "(?i)spelling", skip = true},
71-
{ message = "^chore", group = "Miscellaneous Tasks"},
72-
{ body = ".*security", group = "Security"},
73-
{ message = ".*", group = "Other", default_scope = "other"},
74-
]
7578
# protect breaking changes from being skipped due to matching a skipping commit_parser
7679
protect_breaking_commits = false
7780
# filter out the commits that are not matched by commit parsers

columnar/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-columnar"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "MIT"
66
homepage = "https://github.com/quickwit-oss/tantivy"
@@ -12,10 +12,10 @@ categories = ["database-implementations", "data-structures", "compression"]
1212
itertools = "0.12.0"
1313
fastdivide = "0.4.0"
1414

15-
stacker = { version= "0.2", path = "../stacker", package="tantivy-stacker"}
16-
sstable = { version= "0.2", path = "../sstable", package = "tantivy-sstable" }
17-
common = { version= "0.6", path = "../common", package = "tantivy-common" }
18-
tantivy-bitpacker = { version= "0.5", path = "../bitpacker/" }
15+
stacker = { version= "0.3", path = "../stacker", package="tantivy-stacker"}
16+
sstable = { version= "0.3", path = "../sstable", package = "tantivy-sstable" }
17+
common = { version= "0.7", path = "../common", package = "tantivy-common" }
18+
tantivy-bitpacker = { version= "0.6", path = "../bitpacker/" }
1919
serde = "1.0.152"
2020
downcast-rs = "1.2.0"
2121

common/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-common"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["Paul Masurel <[email protected]>", "Pascal Seitz <[email protected]>"]
55
license = "MIT"
66
edition = "2021"
@@ -14,7 +14,7 @@ repository = "https://github.com/quickwit-oss/tantivy"
1414

1515
[dependencies]
1616
byteorder = "1.4.3"
17-
ownedbytes = { version= "0.6", path="../ownedbytes" }
17+
ownedbytes = { version= "0.7", path="../ownedbytes" }
1818
async-trait = "0.1"
1919
time = { version = "0.3.10", features = ["serde-well-known"] }
2020
serde = { version = "1.0.136", features = ["derive"] }

ownedbytes/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Paul Masurel <[email protected]>", "Pascal Seitz <[email protected]>"]
33
name = "ownedbytes"
4-
version = "0.6.0"
4+
version = "0.7.0"
55
edition = "2021"
66
description = "Expose data as static slice"
77
license = "MIT"

query-grammar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-query-grammar"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
authors = ["Paul Masurel <[email protected]>"]
55
license = "MIT"
66
categories = ["database-implementations", "data-structures"]

sstable/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-sstable"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "MIT"
66
homepage = "https://github.com/quickwit-oss/tantivy"
@@ -10,8 +10,8 @@ categories = ["database-implementations", "data-structures", "compression"]
1010
description = "sstables for tantivy"
1111

1212
[dependencies]
13-
common = {version= "0.6", path="../common", package="tantivy-common"}
14-
tantivy-bitpacker = { version= "0.5", path="../bitpacker" }
13+
common = {version= "0.7", path="../common", package="tantivy-common"}
14+
tantivy-bitpacker = { version= "0.6", path="../bitpacker" }
1515
tantivy-fst = "0.5"
1616
# experimental gives us access to Decompressor::upper_bound
1717
zstd = { version = "0.13", features = ["experimental"] }

stacker/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-stacker"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "MIT"
66
homepage = "https://github.com/quickwit-oss/tantivy"
@@ -9,7 +9,7 @@ description = "term hashmap used for indexing"
99

1010
[dependencies]
1111
murmurhash32 = "0.3"
12-
common = { version = "0.6", path = "../common/", package = "tantivy-common" }
12+
common = { version = "0.7", path = "../common/", package = "tantivy-common" }
1313
ahash = { version = "0.8.11", default-features = false, optional = true }
1414
rand_distr = "0.4.3"
1515

tokenizer-api/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-tokenizer-api"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
license = "MIT"
55
edition = "2021"
66
description = "Tokenizer API of tantivy"

0 commit comments

Comments
 (0)