downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SolrClient::addDocument> <SolrObject::offsetUnset
[edit] Last updated: Fri, 24 May 2013

view this page in

La clase SolrClient

(No hay información de versión disponible, podría estar únicamente en SVN)

Introducción

Usada para enviar solicitudes al servidor Solr. Actualmente no está soportado clonar y serializar instancias de SolrClient.

Sinopsis de la Clase

final SolrClient {
/* Constantes */
const integer SEARCH_SERVLET_TYPE = 1 ;
const integer UPDATE_SERVLET_TYPE = 2 ;
const integer THREADS_SERVLET_TYPE = 4 ;
const integer PING_SERVLET_TYPE = 8 ;
const integer TERMS_SERVLET_TYPE = 16 ;
const string DEFAULT_SEARCH_SERVLET = select ;
const string DEFAULT_UPDATE_SERVLET = update ;
const string DEFAULT_THREADS_SERVLET = admin/threads ;
const string DEFAULT_PING_SERVLET = admin/ping ;
const string DEFAULT_TERMS_SERVLET = terms ;
/* Métodos */
public SolrUpdateResponse addDocument ( SolrInputDocument $doc [, bool $allowDups = false [, int $commitWithin = 0 ]] )
public void addDocuments ( array $docs [, bool $allowDups = false [, int $commitWithin = 0 ]] )
public SolrUpdateResponse commit ([ int $maxSegments = "1" [, bool $waitFlush = true [, bool $waitSearcher = true ]]] )
public __construct ( array $clientOptions )
public SolrUpdateResponse deleteById ( string $id )
public SolrUpdateResponse deleteByIds ( array $ids )
public SolrUpdateResponse deleteByQueries ( array $queries )
public SolrUpdateResponse deleteByQuery ( string $query )
public void __destruct ( void )
public string getDebug ( void )
public array getOptions ( void )
public SolrUpdateResponse optimize ([ int $maxSegments = "1" [, bool $waitFlush = true [, bool $waitSearcher = true ]]] )
public SolrPingResponse ping ( void )
public SolrQueryResponse query ( SolrParams $query )
public void request ( string $raw_request )
public SolrUpdateResponse rollback ( void )
public void setResponseWriter ( string $responseWriter )
public bool setServlet ( int $type , string $value )
public void threads ( void )
}

Constantes predefinidas

SolrClient::SEARCH_SERVLET_TYPE

Usado cuando se actualiza servlet de búsqueda.

SolrClient::UPDATE_SERVLET_TYPE

Usado cuando se actualiza el servlet de actualización.

SolrClient::THREADS_SERVLET_TYPE

Usado cuando se actualiza el servlet de hilos.

SolrClient::PING_SERVLET_TYPE

Usado cuando se actualiza el servlet de ping.

SolrClient::TERMS_SERVLET_TYPE

Usado cuando se actualiza el servlet de términos.

SolrClient::DEFAULT_SEARCH_SERVLET

Este es el valor inicial del servlet de búsqueda.

SolrClient::DEFAULT_UPDATE_SERVLET

Este es el valor inicial del servlet de actualizacion.

SolrClient::DEFAULT_THREADS_SERVLET

Este es el valor inicial del servlet de hilos.

SolrClient::DEFAULT_PING_SERVLET

Este es el valor inicial del servlet de ping.

SolrClient::DEFAULT_TERMS_SERVLET

Este es el valor inicial del servlet de términos usados por TermsComponent

Tabla de contenidos



add a note add a note User Contributed Notes SolrClient - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites