RawDocument
in package
implements
DocumentInterface
SOLR "raw document" class for submitting any type of data.
Tags
Interfaces, Classes, Traits and Enums
- DocumentInterface
- Interface for Solr document classes
Table of Contents
- $content : string
- Raw document text
- $encoding : string
- Text encoding
- $mime : string
- MIME type
- __construct() : mixed
- Constructor.
- getContent() : string
- Return serialized representation.
- getContentType() : string
- Return content MIME type.
Properties
$content
Raw document text
protected
string
$content
$encoding
Text encoding
protected
string
$encoding
$mime
MIME type
protected
string
$mime
Methods
__construct()
Constructor.
public
__construct(string $content, string $mime[, string|null $encoding = 'UTF-8' ]) : mixed
Parameters
- $content : string
-
Raw document text
- $mime : string
-
MIME type
- $encoding : string|null = 'UTF-8'
-
Text encoding (null for unspecified)
Return values
mixed —getContent()
Return serialized representation.
public
getContent() : string
Return values
string —getContentType()
Return content MIME type.
public
getContentType() : string