Merge pull request #597 from caseymrm/patch-1
Add comments to Location struct
This commit is contained in:
commit
3885595cb8
|
@ -36,9 +36,14 @@ func (ap ArrayPositions) Equals(other ArrayPositions) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Location struct {
|
type Location struct {
|
||||||
|
// Pos is the position of the term within the field, starting at 1
|
||||||
Pos uint64 `json:"pos"`
|
Pos uint64 `json:"pos"`
|
||||||
|
|
||||||
|
// Start and End are the byte offsets of the term in the field
|
||||||
Start uint64 `json:"start"`
|
Start uint64 `json:"start"`
|
||||||
End uint64 `json:"end"`
|
End uint64 `json:"end"`
|
||||||
|
|
||||||
|
// ArrayPositions contains the positions of the term within any elements.
|
||||||
ArrayPositions ArrayPositions `json:"array_positions"`
|
ArrayPositions ArrayPositions `json:"array_positions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user