Struct tantivy::query::MoreLikeThisQuery [−][src]
pub struct MoreLikeThisQuery { /* fields omitted */ }
Expand description
A query that matches all of the documents similar to a document or a set of field values provided.
Examples
use tantivy::DocAddress;
use tantivy::query::MoreLikeThisQuery;
let query = MoreLikeThisQuery::builder()
.with_min_doc_frequency(1)
.with_max_doc_frequency(10)
.with_min_term_frequency(1)
.with_min_word_length(2)
.with_max_word_length(5)
.with_boost_factor(1.0)
.with_stop_words(vec!["for".to_string()])
.with_document(DocAddress::new(2, 1));
Implementations
Creates a new builder.
Trait Implementations
Create the weight associated to a query. Read more
Returns an Explanation
for the score of the document.
Returns the number of documents matching the query.
Auto Trait Implementations
impl RefUnwindSafe for MoreLikeThisQuery
impl Send for MoreLikeThisQuery
impl Sync for MoreLikeThisQuery
impl Unpin for MoreLikeThisQuery
impl UnwindSafe for MoreLikeThisQuery
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more