mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2025-12-23 02:29:57 +00:00
@@ -100,7 +100,7 @@ impl Executor {
|
||||
|
||||
/// Spawn a task on the pool, returning a future completing on task success.
|
||||
///
|
||||
/// If the task panic, returns `Err(())`.
|
||||
/// If the task panics, returns `Err(())`.
|
||||
#[cfg(feature = "quickwit")]
|
||||
pub fn spawn_blocking<T: Send + 'static>(
|
||||
&self,
|
||||
|
||||
@@ -7,7 +7,7 @@ use crate::{DocId, Score};
|
||||
|
||||
/// Query that matches all of the documents.
|
||||
///
|
||||
/// All of the document get the score 1.0.
|
||||
/// All of the documents get the score 1.0.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct AllQuery;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ use crate::schema::{Field, IndexRecordOption, Term};
|
||||
|
||||
/// `PhraseQuery` matches a specific sequence of words.
|
||||
///
|
||||
/// For instance the phrase query for `"part time"` will match
|
||||
/// the sentence
|
||||
/// For instance, the phrase query for `"part time"` will match
|
||||
/// the sentence:
|
||||
///
|
||||
/// **Alan just got a part time job.**
|
||||
///
|
||||
@@ -15,7 +15,7 @@ use crate::schema::{Field, IndexRecordOption, Term};
|
||||
/// **This is my favorite part of the job.**
|
||||
///
|
||||
/// [Slop](PhraseQuery::set_slop) allows leniency in term proximity
|
||||
/// for some performance tradeof.
|
||||
/// for some performance trade-off.
|
||||
///
|
||||
/// Using a `PhraseQuery` on a field requires positions
|
||||
/// to be indexed for this field.
|
||||
|
||||
Reference in New Issue
Block a user