Commit 48967e5b authored by muhammadaliqasmi's avatar muhammadaliqasmi

get and set methods added for hl.tag.pre and hl.tag.post. To be used with...

get and set methods added for hl.tag.pre and hl.tag.post. To be used with hl.useFastVectorHighlighting. Refer to http://wiki.apache.org/solr/HighlightingParameters/#hl.useFastVectorHighlighter
parent b33c09bf
......@@ -437,6 +437,57 @@ class Solarium_Query_Select_Component_Highlighting extends Solarium_Query_Select
return $this->getOption('simplepostfix');
}
/**
* Set tag prefix option
*
* Solr option h1.tag.post
*
* @param string $prefix
* @return Solarium_Query_Select_Component_Highlighting Provides fluent interface
*/
public function setTagPrefix($prefix)
{
return $this->_setOption('tagprefix', $prefix);
}
/**
* Get tag prefix option
*
* Solr option hl.tag.pre
*
* @return string|null
*/
public function getTagPrefix()
{
return $this->getOption('tagprefix');
}
/**
* Set tag postfix option
*
* Solr option h1.tag.post
*
* @param string $postfix
* @return Solarium_Query_Select_Component_Highlighting Provides fluent interface
*/
public function setTagPostfix($postfix)
{
return $this->_setOption('tagpostfix', $postfix);
}
/**
* Get tag postfix option
*
* Solr option hl.tag.post
*
* @return string|null
*/
public function getTagPostfix()
{
return $this->getOption('tagpostfix');
}
/**
* Set fragmenter option
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment