Last active
July 14, 2016 17:45
-
-
Save jorendorff/ffe86749f96103ed5163131d617eba3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // "Term" means word. | |
| // Note: The hits in each Vec<Hit> are sorted by document_id. | |
| type TermIndex = HashMap<String, SortedVec<Hit>>; | |
| struct Hit { | |
| /// Index into a single giant list of all the documents in the corpus | |
| document_id: u32, | |
| /// List of all the places within this document where the term appears. | |
| offsets: SortedVec<u32> | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment