public class Context
extends java.lang.Object
Constructor and Description |
---|
Context(org.apache.lucene.search.Query query,
java.util.Map<java.lang.String,java.lang.String> queryStrings)
Constructs a context generator
|
Modifier and Type | Method and Description |
---|---|
boolean |
getContext(java.io.Reader in,
java.io.Writer out,
java.lang.String urlPrefix,
java.lang.String morePrefix,
java.lang.String path,
Definitions tags,
boolean limit,
java.util.List<Hit> hits)
???.
|
boolean |
isEmpty() |
public Context(org.apache.lucene.search.Query query, java.util.Map<java.lang.String,java.lang.String> queryStrings)
query
- the query to generate the result forqueryStrings
- map from field names to queries against the fieldspublic boolean isEmpty()
public boolean getContext(java.io.Reader in, java.io.Writer out, java.lang.String urlPrefix, java.lang.String morePrefix, java.lang.String path, Definitions tags, boolean limit, java.util.List<Hit> hits)
in
- File to be matchedout
- to write the contextmorePrefix
- to link to more... pagepath
- path of the filetags
- format to highlight defs.limit
- should the number of matching lines be limited?