public class HighLighterQuery
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private java.lang.String |
defaultFieldName |
private java.lang.String[] |
fields |
private boolean |
highlight |
private java.lang.String |
postTag |
private java.lang.String |
preTag |
private org.apache.lucene.search.Query |
query |
构造器和说明 |
---|
HighLighterQuery(boolean highlight) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getDefaultFieldName() |
java.lang.String[] |
getFields() |
java.lang.String |
getPostTag() |
java.lang.String |
getPreTag() |
org.apache.lucene.search.Query |
getQuery() |
boolean |
isHighlight() |
void |
setDefaultFieldName(java.lang.String defaultFieldName) |
void |
setFields(java.lang.String[] fields) |
void |
setHighlight(boolean highlight) |
void |
setPostTag(java.lang.String postTag) |
void |
setPreTag(java.lang.String preTag) |
void |
setQuery(org.apache.lucene.search.Query query) |
private boolean highlight
private java.lang.String defaultFieldName
private java.lang.String[] fields
private org.apache.lucene.search.Query query
private java.lang.String preTag
private java.lang.String postTag
public boolean isHighlight()
public java.lang.String getDefaultFieldName()
public void setDefaultFieldName(java.lang.String defaultFieldName)
defaultFieldName
- the defaultFieldName to setpublic void setHighlight(boolean highlight)
highlight
- the highlight to setpublic java.lang.String[] getFields()
public void setFields(java.lang.String[] fields)
fields
- the fields to setpublic org.apache.lucene.search.Query getQuery()
public void setQuery(org.apache.lucene.search.Query query)
query
- the query to setpublic java.lang.String getPreTag()
public void setPreTag(java.lang.String preTag)
preTag
- the preTag to setpublic java.lang.String getPostTag()
public void setPostTag(java.lang.String postTag)
postTag
- the postTag to set