Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BurntSushi/imdb-rename
/ functions
Functions
335 in github.com/BurntSushi/imdb-rename
⨍
Functions
335
◇
Types & classes
63
↓ 45 callers
Method
push
Add a new scored value to this collection. The score provided must be less than or equal to every other score in this collection, otherwise this meth
imdb-index/src/scored.rs:32
↓ 26 callers
Method
map
Consume this scored value and map its value using the function given, returning a new scored value with the result of the map and an unchanged score.
imdb-index/src/scored.rs:154
↓ 19 callers
Method
is_none
Returns true if and only if no similarity function was selected.
imdb-index/src/search.rs:689
↓ 16 callers
Method
iter
Execute the given function over each ngram in the text provided using the given size configuration. We don't use normal Rust iterators here because a
imdb-index/src/index/names.rs:1251
↓ 12 callers
Method
kind
Return a reference to the kind of this error.
imdb-index/src/error.rs:18
↓ 12 callers
Method
value
Return a reference to the underlying value.
imdb-index/src/scored.rs:168
↓ 11 callers
Method
insert
Associate the given identifier with the given integer. If the given key is not strictly lexicographically greater than the previous key, then an erro
imdb-index/src/index/id.rs:54
↓ 11 callers
Method
len
Returns the number of results in this collection.
imdb-index/src/scored.rs:77
↓ 11 callers
Method
name
Set the name to query by. The name given here is normalized and broken down into components automatically to facilitate fuzzy searching. Note that i
imdb-index/src/search.rs:272
↓ 11 callers
Method
title
Return a reference to the underlying `Title`.
imdb-index/src/index/mod.rs:68
↓ 9 callers
Method
with_score
Consume this scored value and return a new scored value that drops the existing score and replaces it with the given score. This panics if the given
imdb-index/src/scored.rs:146
↓ 8 callers
Method
contains
(&self, t: Option<&T>)
imdb-index/src/search.rs:776
↓ 8 callers
Method
get
Return the integer associated with the given ID, if it exists.
imdb-index/src/index/id.rs:29
↓ 8 callers
Method
index_dir
Returns the directory containing this index's files.
imdb-index/src/index/mod.rs:325
↓ 8 callers
Method
into_iter
(self)
imdb-index/src/scored.rs:102
↓ 8 callers
Method
is_empty
Returns true if and only if this collection is empty.
imdb-index/src/scored.rs:82
↓ 8 callers
Method
score
Return the score with the current document ID. If this iterator has been exhausted, then this returns `None`.
imdb-index/src/index/names.rs:800
↓ 8 callers
Method
trim
Trim this collection so that it contains at most the first `size` results.
imdb-index/src/scored.rs:70
↓ 7 callers
Method
as_str
Return a string representation of this title kind. This string representation is intended to be the same string representation used in the IMDb data
imdb-index/src/record.rs:101
↓ 7 callers
Method
deserialize
(d: D)
imdb-index/src/search.rs:530
↓ 7 callers
Method
into_vec
Consume this collection and return the underlying sorted sequence of scored values.
imdb-index/src/scored.rs:93
↓ 7 callers
Method
posting
Return the current posting. If this iterator has been exhausted, then this returns `None`.
imdb-index/src/index/names.rs:782
↓ 7 callers
Method
similarity
(&self, query: &Query, name: &str)
imdb-index/src/search.rs:192
↓ 6 callers
Method
collect
Collect the top K results from the given searcher using the given index reader. Return the results with normalized scores sorted in order of best-to-w
imdb-index/src/index/names.rs:311
↓ 6 callers
Function
csv_reader_builder
A function for creating a CSV reader builder that is pre-loaded with the correct settings for reading all IMDb CSV files.
imdb-index/src/util.rs:67
↓ 6 callers
Method
finish
Finish writing the index. This must be called, otherwise the index will likely be unreadable.
imdb-index/src/index/id.rs:62
↓ 6 callers
Method
is_empty
Return true if and only if this query is empty. Searching with an empty query always yields no results.
imdb-index/src/search.rs:254
↓ 6 callers
Method
len
Returns the document frequency for the term corresponding to these postings.
imdb-index/src/index/names.rs:788
↓ 6 callers
Method
map_score
Consume this scored value and map its score using the function given, return a new `Scored` with an unchanged value. This panics if score returned by
imdb-index/src/scored.rs:162
↓ 6 callers
Method
position
Return the current position of this writer.
imdb-index/src/index/writer.rs:34
↓ 5 callers
Function
csv_file
Builds a CSV reader (using `csv_reader_builder`) that is backed by a file. While this read can be seeked, it will be less efficient than using a memor
imdb-index/src/util.rs:90
↓ 5 callers
Method
data_dir
Returns the data directory that this index returns results for.
imdb-index/src/index/mod.rs:320
↓ 5 callers
Method
flush
(&self)
src/logger.rs:45
↓ 5 callers
Method
insert
Inserts the given name to this index, and associates it with the provided `NameID`. Multiple names may be associated with the same `NameID`.
imdb-index/src/index/names.rs:1059
↓ 5 callers
Function
parse_many_lossy
Parse a sequence of values from clap.
imdb-eval/src/main.rs:329
↓ 5 callers
Method
rescore
Recomputes the scores in this collection using the given function. The results are then re-sorted according to the new scores.
imdb-index/src/scored.rs:60
↓ 5 callers
Method
score
Return the score for this item. In general, no restrictions are placed on the range of scores, however most search APIs that use it will return score
imdb-index/src/scored.rs:130
↓ 4 callers
Method
cmp
(&self, other: &PostingIter<'i>)
imdb-index/src/index/names.rs:893
↓ 4 callers
Function
create_file
Creates a file and truncates it.
imdb-index/src/util.rs:107
↓ 4 callers
Function
create_index
Creates a name index, where each name provided is assigned its own unique ID, starting at 0.
imdb-index/src/index/names.rs:1343
↓ 4 callers
Method
docid
Return the current document ID. If this iterator has been exhausted, then this returns `None`.
imdb-index/src/index/names.rs:794
↓ 4 callers
Method
entity_from_title
Returns the `MediaEntity` for the given `Title`. This is like the `entity` method, except it takes a `Title` record as given.
imdb-index/src/index/mod.rs:235
↓ 4 callers
Method
episode
Return a reference to the underlying `Episode`, if it exists.
imdb-index/src/index/mod.rs:73
↓ 4 callers
Method
find
Return a (possibly empty) iterator over all AKA records for the given IMDb ID.
imdb-index/src/index/aka.rs:73
↓ 4 callers
Method
flush
(&mut self)
imdb-index/src/index/writer.rs:61
↓ 4 callers
Function
from_optional_u32
( label: &'static str, bytes: &[u8], )
imdb-index/src/index/episode.rs:259
↓ 4 callers
Method
into_pair
Consume this scored value and return the underlying pair of score and `T`.
imdb-index/src/scored.rs:180
↓ 4 callers
Function
mmap_file
Builds a file-backed memory map.
imdb-index/src/util.rs:99
↓ 4 callers
Function
name_query
Build a name query, and disable the dynamic stop word detection. It would be nice to test the stop word detection, but it makes writing unit tests ve
imdb-index/src/index/names.rs:1358
↓ 4 callers
Method
next
(&mut self)
imdb-index/src/index/aka.rs:105
↓ 4 callers
Method
read_record
Read the CSV `Title` record beginning at the given file offset. If no such record exists, then this returns `None`. If there was a problem reading t
imdb-index/src/index/mod.rs:338
↓ 4 callers
Method
search
Execute a search.
imdb-index/src/index/names.rs:245
↓ 4 callers
Method
set_score
Set the score, replacing the existing value with the given value. This panics if the given score is `NaN`.
imdb-index/src/scored.rs:137
↓ 3 callers
Method
as_slice
Return a slice of search results in order.
imdb-index/src/scored.rs:87
↓ 3 callers
Method
cmp
(&self, other: &Scored<T>)
imdb-index/src/scored.rs:201
↓ 3 callers
Method
create_index
(&self)
src/main.rs:195
↓ 3 callers
Method
entity
Returns the `MediaEntity` for the given IMDb ID. An entity includes an [`Episode`](struct.Episode.html) and [`Rating`](struct.Rating.html) records if
imdb-index/src/index/mod.rs:224
↓ 3 callers
Function
fst_set_builder_file
Creates an FST set builder for the given file path.
imdb-index/src/util.rs:121
↓ 3 callers
Function
fst_set_file
Open an FST set file for the given file path as a memory map.
imdb-index/src/util.rs:133
↓ 3 callers
Method
index
Return a mutable reference to the underlying index for this searcher.
imdb-index/src/search.rs:86
↓ 3 callers
Method
into_value
Consume this scored value, drop the score and return the underlying `T`.
imdb-index/src/scored.rs:174
↓ 3 callers
Method
kind
Add a title kind to filter by. Multiple title kinds can be added to query, and search results must match at least one of them. Note that it is not p
imdb-index/src/search.rs:329
↓ 3 callers
Method
matches
Returns true if and only if the given entity matches this query. Note that this only applies filters in this query. e.g., The name aspect of the quer
imdb-index/src/search.rs:409
↓ 3 callers
Method
next
(&mut self)
imdb-index/src/index/names.rs:459
↓ 3 callers
Function
open_file
Opens a file for reading.
imdb-index/src/util.rs:114
↓ 3 callers
Method
size
Set the maximum number of results to be returned by a search. Note that setting this number too high (e.g., `> 10,000`) can impact performance. This
imdb-index/src/search.rs:317
↓ 2 callers
Function
choose
Make a choice among the search results given. If there is no clear winner, then a prompt is shown to the end user, where they must make a selection.
src/util.rs:16
↓ 2 callers
Method
choose_one
Execute a search against the given searcher with the given query and choose a single result from the search. If no obvious single result stands out, t
src/rename.rs:539
↓ 2 callers
Method
create
Create a new index using default settings. Calling this method is expensive, and one should expect this to take dozens of seconds or more to complete
imdb-index/src/index/mod.rs:165
↓ 2 callers
Function
csv_mmap
Builds a CSV reader (using `csv_reader_builder`) that is backed by a seekable memory map. We use memory maps for this even though we could use a norm
imdb-index/src/util.rs:79
↓ 2 callers
Function
dataset_path
Build the path on disk for a dataset, given the directory and the dataset name.
src/download.rs:83
↓ 2 callers
Method
document_length
Return the length, in terms, of the given document. This panics if the given document id does not correspond to an indexed document.
imdb-index/src/index/names.rs:271
↓ 2 callers
Function
download_one
Downloads a single data set, decompresses it and writes it to the corresponding file path in the given directory.
src/download.rs:53
↓ 2 callers
Method
flush
(&self)
imdb-eval/src/logger.rs:47
↓ 2 callers
Function
fst_map_builder_file
Creates an FST map builder for the given file path.
imdb-index/src/util.rs:144
↓ 2 callers
Function
fst_map_file
Open an FST map file for the given file path as a memory map.
imdb-index/src/util.rs:156
↓ 2 callers
Method
index
Either open or create an index suitable for this specification. If no index exists in the expected sub-directory of `eval_dir`, then a new index is c
imdb-eval/src/eval.rs:191
↓ 2 callers
Method
matches_title
Returns true if and only if the given title matches this query. This ignores non-title filters.
imdb-index/src/search.rs:418
↓ 2 callers
Method
name_query
Build a query and seed it with the given name, after sanitizing the name.
src/rename.rs:526
↓ 2 callers
Method
name_scorer
Set the scorer to use for name searches. The name scorer is used to rank results from searching the IMDb name index. If no name query is given, then
imdb-index/src/search.rs:290
↓ 2 callers
Method
needs_episode
Returns true if and only if this query has an episode filter.
imdb-index/src/search.rs:513
↓ 2 callers
Method
needs_rating
Returns true if and only if this query has a rating filter.
imdb-index/src/search.rs:508
↓ 2 callers
Method
ngram_size
Set the ngram size on this index. When creating an index, ngrams with this size will be used.
imdb-index/src/index/mod.rs:501
↓ 2 callers
Method
ngram_type
Set the type of ngram generation to use. The default type is `Window`.
imdb-index/src/index/mod.rs:493
↓ 2 callers
Method
normalize
Normalizes the scores in this collection such that all scores are in the range `[0, 1]` where the top result always has score `1.0`. This operation i
imdb-index/src/scored.rs:42
↓ 2 callers
Function
normalize_query
(s: &str)
imdb-index/src/index/names.rs:1324
↓ 2 callers
Method
num_docs
Return the total number of documents have been assigned doc ids.
imdb-index/src/index/names.rs:1107
↓ 2 callers
Method
path
Return the underlying path to this temporary directory.
imdb-index/src/index/tests.rs:89
↓ 2 callers
Method
rating
Return a reference to the underlying `Rating`, if it exists.
imdb-index/src/index/mod.rs:78
↓ 2 callers
Function
read_episode
(bytes: &[u8])
imdb-index/src/index/episode.rs:186
↓ 2 callers
Function
read_le_u32
(slice: &[u8])
imdb-index/src/index/names.rs:1330
↓ 2 callers
Method
search
Execute a search with the given `Query`. Generally, the results returned are ranked in relevance order, where each result has a score associated with
imdb-index/src/search.rs:69
↓ 2 callers
Method
search
Execute a search against the given searcher with the given query. If this exact query has been previously executed by this renamer, then a cache of r
src/rename.rs:558
↓ 2 callers
Method
season_ge
Set the lower inclusive bound on a title's season. This automatically limits all results to episodes.
imdb-index/src/search.rs:367
↓ 2 callers
Method
season_le
Set the upper inclusive bound on a title's season. This automatically limits all results to episodes.
imdb-index/src/search.rs:375
↓ 2 callers
Method
serialize
(&self, s: S)
imdb-index/src/search.rs:521
↓ 2 callers
Method
specs
Build all evaluation specifications as indicated by command line options.
imdb-eval/src/main.rs:169
↓ 2 callers
Function
to_optional_epnum
(ep: &Episode)
imdb-index/src/index/episode.rs:284
↓ 2 callers
Function
to_optional_season
(ep: &Episode)
imdb-index/src/index/episode.rs:272
↓ 2 callers
Method
version
(expected: u64, got: u64)
imdb-index/src/error.rs:59
next →
1–100 of 335, ranked by callers