Package com.yahoo.prelude.query
Class Highlight
- java.lang.Object
-
- com.yahoo.prelude.query.Highlight
-
-
Field Summary
Fields Modifier and Type Field Description static String
HIGHLIGHTTERMS
The name of the property map which contains extra highlight terms
-
Constructor Summary
Constructors Constructor Description Highlight()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHighlightPhrase(String field, List<String> phrase)
Add custom highlight phrasevoid
addHighlightTerm(String field, String item)
Add custom highlight termHighlight
clone()
Map<String,AndItem>
getHighlightItems()
Returns the modifiable map of highlight items (never null)Map<String,List<String>>
getHighlightTerms()
void
prepare()
Prepares this for binary serialization.
-
-
-
Field Detail
-
HIGHLIGHTTERMS
public static final String HIGHLIGHTTERMS
The name of the property map which contains extra highlight terms- See Also:
- Constant Field Values
-
-
Method Detail
-
addHighlightTerm
public void addHighlightTerm(String field, String item)
Add custom highlight term- Parameters:
field
- the field nameitem
- the term to be highlighted
-
addHighlightPhrase
public void addHighlightPhrase(String field, List<String> phrase)
Add custom highlight phrase- Parameters:
field
- the field namephrase
- the list of terms to be highlighted as a phrase
-
getHighlightItems
public Map<String,AndItem> getHighlightItems()
Returns the modifiable map of highlight items (never null)
-
prepare
public void prepare()
Prepares this for binary serialization. For internal use - seeQuery.prepare()
-
-