Class docStats
java.lang.Object
org.apache.lucene.search.vectorhighlight.docStats
Get stats from a
FieldQuery in the context of the package
to access to protected methods.-
Method Summary
-
Method Details
-
occs
public static int occs(org.apache.lucene.index.IndexReader reader, int docId, String fieldName, org.apache.lucene.search.vectorhighlight.FieldQuery fieldQuery) throws IOException Get count of matching tokens in a document from a query.- Parameters:
reader- IndexReader of the indexdocId- document id to be highlightedfieldName- field of the document to get terms fromfieldQuery- FieldQuery object- Returns:
- count of matching tokens
- Throws:
IOException- If there is a low-level I/O error
-