php_solr
[ class tree: php_solr ] [ index: php_solr ] [ all elements ]

Class: SolrSimpleDocument

Source Location: /src/indexer/SolrSimpleDocument.php

Class Overview


A Solr Document.


Author(s):

Implements interfaces:

Methods



Class Details

[line 49]
A Solr Document.



Tags:

author:  Alexander M. Turek <rabus@users.sourceforge.net>


[ Top ]


Class Methods


constructor __construct [line 70]

SolrSimpleDocument __construct( [ $fields = array()], [float $boost = null])

Creates a new Solr document.



Tags:

access:  public


Parameters:

array(SolrField)   $fields   The fields of the document.
float   $boost   The boost value for this document (optional).

[ Top ]

method addField [line 90]

void addField( SolrField $field)

Adds a field



Tags:

access:  public


Parameters:

SolrField   $field  

[ Top ]

method getBoost [line 110]

float getBoost( )

Returns the boost factor for this document.

If the default boost shall be used for this document, null is returned.




Tags:

access:  public



Implementation of:
SolrDocument::getBoost()
Returns the boost factor for this document.
[ Top ]

method getFields [line 99]

array(SolrField) getFields( )

Returns the fields of this document.



Tags:

access:  public



Implementation of:
SolrDocument::getFields()
Returns the fields of this document.
[ Top ]


Documentation generated on Wed, 20 May 2009 12:51:11 +0000 by phpDocumentor 1.4.2