| 19 | ) |
| 20 | |
| 21 | type Field interface { |
| 22 | // Name returns the path of the field from the root DocumentMapping. |
| 23 | // A root field path is "field", a subdocument field is "parent.field". |
| 24 | Name() string |
| 25 | // ArrayPositions returns the intermediate document and field indices |
| 26 | // required to resolve the field value in the document. For example, if the |
| 27 | // field path is "doc1.doc2.field" where doc1 and doc2 are slices or |
| 28 | // arrays, ArrayPositions returns 2 indices used to resolve "doc2" value in |
| 29 | // "doc1", then "field" in "doc2". |
| 30 | ArrayPositions() []uint64 |
| 31 | Options() index.FieldIndexingOptions |
| 32 | Analyze() |
| 33 | Value() []byte |
| 34 | |
| 35 | // NumPlainTextBytes should return the number of plain text bytes |
| 36 | // that this field represents - this is a common metric for tracking |
| 37 | // the rate of indexing |
| 38 | NumPlainTextBytes() uint64 |
| 39 | |
| 40 | Size() int |
| 41 | |
| 42 | EncodedFieldType() byte |
| 43 | AnalyzedLength() int |
| 44 | AnalyzedTokenFrequencies() index.TokenFrequencies |
| 45 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…