You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ARCHITECTURE.md
-24Lines changed: 0 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,6 @@ The schema defines all of the fields that the indexes [`Document`](src/schema/do
106
106
107
107
Depending on the type of the field, you can decide to
108
108
109
-
- put it in the docstore
110
109
- store it as a fast field
111
110
- index it
112
111
@@ -135,29 +134,6 @@ This conversion is done by the serializer.
135
134
Finally, the reader is in charge of offering an API to read on this on-disk read-only representation.
136
135
In tantivy, readers are designed to require very little anonymous memory. The data is read straight from an mmapped file, and loading an index is as fast as mmapping its files.
137
136
138
-
## [store/](src/store): Here is my DocId, Gimme my document
139
-
140
-
The docstore is a row-oriented storage that, for each document, stores a subset of the fields
141
-
that are marked as stored in the schema. The docstore is compressed using a general-purpose algorithm
142
-
like LZ4.
143
-
144
-
**Useful for**
145
-
146
-
In search engines, it is often used to display search results.
147
-
Once the top 10 documents have been identified, we fetch them from the store, and display them or their snippet on the search result page (aka SERP).
148
-
149
-
**Not useful for**
150
-
151
-
Fetching a document from the store is typically a "slow" operation. It usually consists in
152
-
153
-
- searching into a compact tree-like data structure to find the position of the right block.
154
-
- decompressing a small block
155
-
- returning the document from this block.
156
-
157
-
It is NOT meant to be called for every document matching a query.
158
-
159
-
As a rule of thumb, if you hit the docstore more than 100 times per search query, you are probably misusing tantivy.
160
-
161
137
## [fastfield/](src/fastfield): Here is my DocId, Gimme my value
162
138
163
139
Fast fields are stored in a column-oriented storage that allows for random access.
0 commit comments