web search done right
upgrade tantivy to 0.22
Mikkel Denker4e12528aa29b
diff --git a/Cargo.lock b/Cargo.lockindex 73e51ea3..82a50a16 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -429,6 +429,12 @@ version = "0.21.7"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"+[[package]]+name = "base64"+version = "0.22.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51"+[[package]]name = "base64ct"version = "1.6.0"@@ -494,9 +500,9 @@ checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf"[[package]]name = "bitpacking"-version = "0.8.4"+version = "0.9.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a8c7d2ac73c167c06af4a5f37e6e59d84148d57ccbe4480b76f0273eefea82d7"+checksum = "4c1d3e2bfd8d06048a179f7b17afc3188effa10385e7b00dc65af6aae732ea92"dependencies = ["crunchy",]@@ -1602,12 +1608,12 @@ dependencies = [[[package]]name = "fs4"-version = "0.7.0"+version = "0.8.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29f9df8a11882c4e3335eb2d18a0137c505d9ca927470b0cac9c6f0ae07d28f7"+checksum = "21dabded2e32cd57ded879041205c60a4a4c4bab47bd0fd2fa8b01f30849f02b"dependencies = ["rustix",- "windows-sys 0.48.0",+ "windows-sys 0.52.0",][[package]]@@ -2440,6 +2446,15 @@ dependencies = ["either",]+[[package]]+name = "itertools"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"+dependencies = [+ "either",+]+[[package]]name = "itoa"version = "0.4.8"@@ -3165,8 +3180,9 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"[[package]]name = "ownedbytes"-version = "0.6.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3a059efb063b8f425b948e042e6b9bd85edfe60e913630ed727b23e2dfcc558"dependencies = ["stable_deref_trait",]@@ -4891,13 +4907,13 @@ dependencies = [[[package]]name = "tantivy"-version = "0.21.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.22.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8d0582f186c0a6d55655d24543f15e43607299425c5ad8352c242b914b31856"dependencies = ["aho-corasick 1.1.2","arc-swap",- "async-trait",- "base64 0.21.7",+ "base64 0.22.0","bitpacking","byteorder 1.5.0","census",@@ -4908,14 +4924,13 @@ dependencies = ["fnv","fs4","htmlescape",- "itertools 0.11.0",+ "itertools 0.12.1","levenshtein_automata","log","lru","lz4_flex","measure_time","memmap2",- "murmurhash32","num_cpus","once_cell","oneshot",@@ -4943,20 +4958,22 @@ dependencies = [[[package]]name = "tantivy-bitpacker"-version = "0.5.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "284899c2325d6832203ac6ff5891b297fc5239c3dc754c5bc1977855b23c10df"dependencies = ["bitpacking",][[package]]name = "tantivy-columnar"-version = "0.2.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "12722224ffbe346c7fec3275c699e508fd0d4710e629e933d5736ec524a1f44e"dependencies = [+ "downcast-rs","fastdivide",- "fnv",- "itertools 0.11.0",+ "itertools 0.12.1","serde","tantivy-bitpacker","tantivy-common",@@ -4966,8 +4983,9 @@ dependencies = [[[package]]name = "tantivy-common"-version = "0.6.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8019e3cabcfd20a1380b491e13ff42f57bb38bf97c3d5fa5c07e50816e0621f4"dependencies = ["async-trait","byteorder 1.5.0",@@ -4978,28 +4996,31 @@ dependencies = [[[package]]name = "tantivy-fst"-version = "0.4.0"+version = "0.5.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc3c506b1a8443a3a65352df6382a1fb6a7afe1a02e871cee0d25e2c3d5f3944"+checksum = "d60769b80ad7953d8a7b2c70cdfe722bbcdcac6bccc8ac934c40c034d866fc18"dependencies = ["byteorder 1.5.0",- "regex-syntax 0.6.29",+ "regex-syntax 0.8.2","utf8-ranges",][[package]]name = "tantivy-query-grammar"-version = "0.21.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.22.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "847434d4af57b32e309f4ab1b4f1707a6c566656264caa427ff4285c4d9d0b82"dependencies = ["nom",][[package]]name = "tantivy-sstable"-version = "0.2.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c69578242e8e9fc989119f522ba5b49a38ac20f576fc778035b96cc94f41f98e"dependencies = [+ "tantivy-bitpacker","tantivy-common","tantivy-fst","zstd 0.13.0",@@ -5007,17 +5028,20 @@ dependencies = [[[package]]name = "tantivy-stacker"-version = "0.2.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c56d6ff5591fc332739b3ce7035b57995a3ce29a93ffd6012660e0949c956ea8"dependencies = ["murmurhash32",+ "rand_distr","tantivy-common",][[package]]name = "tantivy-tokenizer-api"-version = "0.2.0"-source = "git+https://github.com/quickwit-oss/tantivy?rev=182f58cea#182f58cea6bb012fc81b20a92317484e861e0e80"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a0dcade25819a89cfe6f17d932c9cedff11989936bf6dd4f336d50392053b04"dependencies = ["serde",]diff --git a/Cargo.toml b/Cargo.tomlindex 3262452b..aacf5296 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -112,7 +112,7 @@ serde = { version = "1.0.137", features = ["rc", "derive"] }serde_json = "1.0.81"serde_urlencoded = "0.7.1"strum = { version = "0.26.2", features = ["derive"] }-tantivy = { git = "https://github.com/quickwit-oss/tantivy", rev = "182f58cea" }+tantivy = { version = "0.22.0" }thiserror = "1.0.31"tikv-jemallocator = "0.5"tokenizers = "0.13.2"