public interface Hit extends Result<Hit>
Modifier and Type | Method and Description |
---|---|
default int |
compareTo(Hit o) |
static Hit |
create(int doc,
int start,
int end)
Create a hit.
|
int |
doc()
Get the document this hit occurs in.
|
int |
end()
Get the end of this hit.
|
int |
start()
Get the start of this hit.
|
static Hit create(int doc, int start, int end)
doc
- Lucene document idstart
- position of first word of the hitend
- first word position after the hitdefault int compareTo(Hit o)
int doc()
int start()
int end()
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.