|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.solr.core.query.HighlightOptions
public class HighlightOptions
Empty Options indicate to set hl=true. As long as there are no fields defined * will be used. Some
options like setFormatter(String) can be set directly. Any option can be set via addHighlightParameter(HighlightParameter).
| Nested Class Summary | |
|---|---|
static class |
HighlightOptions.FieldWithHighlightParameters
Field with hightlight query parameters |
static class |
HighlightOptions.HighlightParameter
Query Parameter to be used for highlighting |
| Field Summary | |
|---|---|
static Field |
ALL_FIELDS
|
| Constructor Summary | |
|---|---|
HighlightOptions()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Field ALL_FIELDS
| Constructor Detail |
|---|
public HighlightOptions()
| Method Detail |
|---|
public HighlightOptions addField(Field field)
field -
public HighlightOptions addField(String fieldname)
fieldname -
public HighlightOptions addField(String... fieldnames)
fieldnames -
public HighlightOptions addFields(Collection<String> fieldnames)
fieldnames -
public FilterQuery getQuery()
public HighlightOptions setQuery(FilterQuery query)
FilterQuery to be used for hl.q
query - public Integer getFragsize()
public HighlightOptions setFragsize(Integer fragsize)
hl.fragsize.
fragsize - public String getFormatter()
public HighlightOptions setFormatter(String formatter)
hl.formatter
formatter - public Integer getNrSnipplets()
public HighlightOptions setNrSnipplets(Integer nrSnipplets)
hl.snippets
nrSnipplets - public HighlightOptions setSimplePrefix(String prefix)
hl.simple.pre
prefix - public String getSimplePrefix()
public HighlightOptions setSimplePostfix(String postfix)
hl.simple.post
postfix - public String getSimplePostfix()
public List<Field> getFields()
public Collection<HighlightOptions.HighlightParameter> getHighlightParameters()
public HighlightOptions addHighlightParameter(String parameterName,
Object value)
parameterName - must not be nullvalue -
public HighlightOptions addHighlightParameter(HighlightOptions.HighlightParameter parameter)
parameter - must not be null
public <S> S getHighlightParameterValue(String parameterName)
parameterName -
public Collection<HighlightOptions.FieldWithHighlightParameters> getFieldsWithHighlightParameters()
public boolean hasQuery()
public boolean hasFields()
|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||