Crate milli_core

Source

Re-exports§

pub use self::heed_codec::BEU16StrCodec;
pub use self::heed_codec::BEU32StrCodec;
pub use self::heed_codec::BoRoaringBitmapCodec;
pub use self::heed_codec::BoRoaringBitmapLenCodec;
pub use self::heed_codec::CboRoaringBitmapCodec;
pub use self::heed_codec::CboRoaringBitmapLenCodec;
pub use self::heed_codec::FieldIdWordCountCodec;
pub use self::heed_codec::ObkvCodec;
pub use self::heed_codec::RoaringBitmapCodec;
pub use self::heed_codec::RoaringBitmapLenCodec;
pub use self::heed_codec::StrBEU32Codec;
pub use self::heed_codec::U8StrStrCodec;
pub use self::heed_codec::UncheckedU8StrStrCodec;
pub use self::index::Index;
pub use self::update::ChannelCongestion;
pub use charabia as tokenizer;
pub use heed;
pub use rhai;
pub use arroy;

Modules§

constants
database_stats
disabled_typos_terms
documents
facet
heed_codec
index
order_by_map
progress
prompt
proximity
score_details
update
vector

Macros§

make_atomic_progress
make_enum_progress

Structs§

AttributePatterns
DefaultSearchLogger
A dummy SearchLogger which does nothing.
ExternalDocumentsIds
FacetDistribution
FacetValueHit
FieldidsWeightsMap
FieldsIdsMap
Filter
FilterFeatures
FilterableAttributesFeatures
FilterableAttributesPatterns
FormatOptions
GlobalFieldsIdsMap
A fields ids map that can be globally updated to add fields
LocalizedAttributesRule
A rule that defines which locales are supported for a given attribute.
MatchBounds
MatcherBuilder
Structure used to build a Matcher allowing to customize formatting tags.
MatchingWords
Structure created from a query tree referencing words that match the given query tree.
PanicCatched
Search
SearchContext
A structure used throughout the execution of a search query.
SearchForFacetValues
SearchResult
SemanticSearch
Similar
ThreadPoolNoAbort
A rayon ThreadPool wrapper that can catch panics in the pool and modifies the install function accordingly.
ThreadPoolNoAbortBuilder
TimeBudget
Token
VisualSearchLogger

Enums§

AscDesc
AscDescError
This error type is never supposed to be shown to the end user. You must always cast it to a sort error or a criterion error.
CompressionType
The different supported types of compression.
Condition
Criterion
CriterionError
Error
FieldIdMapMissingEntry
FilterCondition
FilterableAttributesRule
GeoSortStrategy
Define the strategy used by the geo sort. The parameter represents the cache size, and, in the case of the Dynamic strategy, the point where we move from using the iterative strategy to the rtree.
InternalError
Member
OrderBy
How should we fetch the facets?
PatternMatch
SerializationError
SortError
TermsMatchingStrategy
UserError

Constants§

DEFAULT_VALUES_PER_FACET
The default number of values by facets that will be fetched from the key-value store.
MAX_FACET_VALUE_LENGTH
The maximum length a field value can be when inserted in an LMDB key.
MAX_POSITION_PER_ATTRIBUTE
MAX_WORD_LENGTH
The maximum length a word can be

Traits§

SearchLogger
Trait for structure logging the execution of a search query.

Functions§

absolute_from_relative_position
all_obkv_to_json
Transform every field of a raw obkv store into a JSON Object.
bucketed_position
Compute the “bucketed” absolute position from the field id and relative position in the field.
default_criteria
distance_between_two_points
Return the distance between two points in meters. Each points are composed of two f64, one latitude and one longitude.
execute_search
filtered_universe
is_faceted
Returns true if the field match one of the faceted fields. See the function is_faceted_by below to see what “matching” means.
is_faceted_by
Returns true if the field match the facet.
json_to_string
Transform a JSON value into a string that can be indexed.
lat_lng_to_xyz
Convert a point expressed in terms of latitude and longitude to a point in the cartesian coordinate expressed in terms of x, y and z.
normalize_facet
obkv_to_json
Transform a raw obkv store into a JSON Object.
relative_from_absolute_position

Type Aliases§

Attribute
BEU16
BEU32
BEU64
DocumentId
FastMap4
FastMap8
FieldDistribution
FieldId
GeoPoint
A GeoPoint is a point in cartesian plan, called xyz_point in the code. Its metadata is a tuple composed of 1. the DocumentId of the associated document and 2. the original point expressed in term of latitude and longitude.
Object
Position
Prefix
RelativePosition
Result
SmallString32
SmallVec8
SmallVec16
SmallVec32
Span
Weight