Bolt\Storage\Query\SearchWeighter::setContentType PHP Method

setContentType() public method

Sets the ContentType that we are weighting, that is, what type the results array is. That allows us to map against the configuration to see which fields to scan for relevant text.
public setContentType ( string $type )
$type string
    public function setContentType($type)
    {
        $this->contentType = $type;
    }