diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62b7065151..4f29feca90 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,7 +68,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Run tests - run: cargo +stable nextest run --features ${{ matrix.features.flags }} --verbose --workspace + run: cargo +stable test --features ${{ matrix.features.flags }} --verbose --workspace - name: Run doctests run: cargo +stable test --doc --features ${{ matrix.features.flags }} --verbose --workspace diff --git a/src/core/index.rs b/src/core/index.rs index fa5a3a8e03..4ac0c3cdcf 100644 --- a/src/core/index.rs +++ b/src/core/index.rs @@ -417,7 +417,7 @@ impl Index { } /// Accessor for the fast field tokenizer manager. - pub fn tokenizer_fast_field(&self) -> &TokenizerManager { + pub fn fast_field_tokenizer(&self) -> &TokenizerManager { &self.fast_field_tokenizers } diff --git a/src/indexer/segment_writer.rs b/src/indexer/segment_writer.rs index a207fd2eaf..c21d7d5348 100644 --- a/src/indexer/segment_writer.rs +++ b/src/indexer/segment_writer.rs @@ -84,7 +84,7 @@ impl SegmentWriter { ) -> crate::Result { let schema = segment.schema(); let tokenizer_manager = segment.index().tokenizers().clone(); - let tokenizer_manager_fast_field = segment.index().tokenizer_fast_field().clone(); + let tokenizer_manager_fast_field = segment.index().fast_field_tokenizer().clone(); let table_size = compute_initial_table_size(memory_budget_in_bytes)?; let segment_serializer = SegmentSerializer::for_segment(segment, false)?; let per_field_postings_writers = PerFieldPostingsWriter::for_schema(&schema); diff --git a/src/schema/text_options.rs b/src/schema/text_options.rs index 57f2f10229..cd1a04a226 100644 --- a/src/schema/text_options.rs +++ b/src/schema/text_options.rs @@ -30,7 +30,7 @@ enum FastFieldOptions { /// Flag to enable/disable IsEnabled(bool), /// Enable with tokenizer. The tokenizer must be available on the fast field tokenizer manager. - /// `Index::tokenizer_fast_field`. + /// `Index::fast_field_tokenizer`. EnabledWithTokenizer { with_tokenizer: TokenizerName }, } @@ -116,7 +116,7 @@ impl TextOptions { /// stored as is, which equals to the "raw" tokenizer. The tokenizer can be used to apply /// normalization like lower case. /// The passed tokenizer_name must be available on the fast field tokenizer manager. - /// `Index::tokenizer_fast_field`. + /// `Index::fast_field_tokenizer`. /// /// The original text can be retrieved via /// [`TermDictionary::ord_to_term()`](crate::termdict::TermDictionary::ord_to_term)