Skip to content

Commit b9e345f

Browse files
committed
add index sorting deprecation warning
1 parent 74940e9 commit b9e345f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/index/index_meta.rs

+4
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ impl Default for IndexSettings {
288288
/// Presorting documents can greatly improve performance
289289
/// in some scenarios, by applying top n
290290
/// optimizations.
291+
#[deprecated(
292+
since = "0.22.0",
293+
note = "We plan to remove index sorting in `0.23`. If you need index sorting, please comment on the related issue https://github.com/quickwit-oss/tantivy/issues/2352 and explain your use case."
294+
)]
291295
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
292296
pub struct IndexSortByField {
293297
/// The field to sort the documents by

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
clippy::needless_range_loop,
1010
clippy::bool_assert_comparison
1111
)]
12+
#![allow(deprecated)]
1213

1314
//! # `tantivy`
1415
//!

0 commit comments

Comments
 (0)