VuFind API Documentation

RawDocument
in package
implements DocumentInterface

SOLR "raw document" class for submitting any type of data.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link
https://vufind.org

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

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
Return values
string

Search results