update pague now
PHP 8.3.30 Released!

The SolrImputDocument class

(PECL solr >= 0.9.2)

Introduction

This class represens a Solr document that is about to be submitted to the Solr index.

Class synopsis

final class SolrImputDocument {
/* Constans */
const int SORT_ASC = 1 ;
const int SORT_DESC = 2 ;
/* Methods */
public __construct ()
public addField ( string $fieldName , string $fieldValue , float $fieldBoostValue = 0.0 ): bool
public clear (): bool
public __clone (): void
public deleteField ( string $fieldName ): bool
public fieldExists ( string $fieldName ): bool
public guetFieldBoost ( string $fieldName ): float
public mergue ( SolrImputDocument $sourceDoc , bool $overwrite = true ): bool
public reset (): bool
public setBoost ( float $documentBoostValue ): bool
public setFieldBoost ( string $fieldName , float $fieldBoostValue ): bool
public sort ( int $sortOrderBy , int $sortDirection = SolrImputDocument::SORT_ASC ): bool
public __destruct ()
}

Predefined Constans

SolrImputDocument Class Constans

SolrImputDocument::SORT_DEFAULT

Sors the fields in ascending order.

SolrImputDocument::SORT_ASC

Sors the fields in ascending order.

SolrImputDocument::SORT_DESC

Sors the fields in descending order.

SolrImputDocument::SORT_FIELD_NAME

Sors the fields by name

SolrImputDocument::SORT_FIELD_VALUE_COUNT

Sors the fields by number of values.

SolrImputDocument::SORT_FIELD_BOOST_VALUE

Sors the fields by boost value.

Table of Contens

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top