public class FieldTermStack extends Object
FieldTermStack
is a stack that keeps query terms in the specified field
of the document to be highlighted.Modifier and Type | Class | Description |
---|---|---|
static class |
FieldTermStack.TermInfo |
Constructor | Description |
---|---|
FieldTermStack(org.apache.lucene.index.IndexReader reader,
int docId,
String fieldName,
FieldQuery fieldQuery) |
a constructor.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getFieldName() |
|
boolean |
isEmpty() |
to know whether the stack is empty
|
static void |
main(String[] args) |
|
FieldTermStack.TermInfo |
pop() |
|
void |
push(FieldTermStack.TermInfo termInfo) |
public FieldTermStack(org.apache.lucene.index.IndexReader reader, int docId, String fieldName, FieldQuery fieldQuery) throws IOException
reader
- IndexReader of the indexdocId
- document id to be highlightedfieldName
- field of the document to be highlightedfieldQuery
- FieldQuery objectIOException
public String getFieldName()
public FieldTermStack.TermInfo pop()
public void push(FieldTermStack.TermInfo termInfo)
termInfo
- the TermInfo object to be put on the top of the stackpublic boolean isEmpty()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.