Struct tantivy::Document [] [src]

pub struct Document { /* fields omitted */ }

Tantivy's Document is the object that can be indexed and then searched for.

Documents are fundamentally a collection of unordered couple (field, value). In this list, one field may appear more than once.

Documents are really just a list of couple (field, value). In this list, one field may appear more than once.

Methods

impl Document
[src]

[src]

Creates a new, empty document object

[src]

Returns the number of (field, value) pairs.

[src]

Returns true iff the document contains no fields.

[src]

Retain only the field that are matching the predicate given in argument.

[src]

Adding a facet to the document.

[src]

Add a text field.

[src]

Add a u64 field

[src]

Add a u64 field

[src]

Add a field value

Important traits for &'a [u8]
[src]

field_values accessor

Important traits for Vec<u8>
[src]

Sort and groups the field_values by field.

The result of this method is not cached and is computed on the fly when this method is called.

Important traits for Vec<u8>
[src]

Returns all of the FieldValues associated the given field

[src]

Returns the first FieldValue associated the given field

Trait Implementations

impl Clone for Document
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Document
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Document
[src]

[src]

Returns the "default value" for a type. Read more

impl From<Vec<FieldValue>> for Document
[src]

[src]

Performs the conversion.

impl PartialEq for Document
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Document
[src]