RawJSONDocument
extends RawDocument
in package
SOLR "raw JSON" document class for manual overrides.
Tags
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|null $encoding = null ]) : mixed
Parameters
- $content : string
-
Raw document text
- $encoding : string|null = null
-
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