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

Class: SolrDateField

Source Location: /src/indexer/SolrDateField.php

Class Overview


A date field that can be indexed by Solr.


Author(s):

Implements interfaces:

Constants

Methods



Class Details

[line 50]
A date field that can be indexed by Solr.



Tags:

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


[ Top ]


Class Methods


constructor __construct [line 84]

SolrDateField __construct( string $name, integer $timestamp, [float $boost = null])

Constructor for SolrDateField.



Tags:

access:  public


Parameters:

string   $name   The name of this field.
integer   $timestamp   The value of this date field as Unix time stamp.
float   $boost   The boost factor for this field (optional).

[ Top ]

method getBoost [line 129]

float getBoost( )

Returns the boost factor for this field.



Tags:

access:  public



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

method getName [line 111]

string getName( )

Returns the name of this field.



Tags:

access:  public



Implementation of:
SolrField::getName()
Returns the name of this field.
[ Top ]

method getValue [line 120]

string getValue( )

Returns the value of this field as string.



Tags:

access:  public



Implementation of:
SolrField::getValue()
Returns the value of this field as string.
[ Top ]


Class Constants

DATE_FORMAT =  'Y-m-d\TH:i:s\Z'

[line 54]

The date format expected by Solr.


[ Top ]



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