The SolrClient class
Introduction
Used to send requests to a Solr server. Currently, cloning and serialization of SolrClient instances is not supported.
Class synopsis
final
SolrClient
{
/* Constants */
/* Methods */
public SolrUpdateResponse addDocument
( SolrInputDocument $doc
[, bool $allowDups = false
[, int $commitWithin = 0
]] )
public SolrUpdateResponse commit
([ int $maxSegments = "1"
[, bool $waitFlush = true
[, bool $waitSearcher = true
]]] )
public SolrUpdateResponse optimize
([ int $maxSegments = "1"
[, bool $waitFlush = true
[, bool $waitSearcher = true
]]] )
}Predefined Constants
SolrClient Node Types
- SolrClient::SEARCH_SERVLET_TYPE
-
Used when updating the search servlet.
- SolrClient::UPDATE_SERVLET_TYPE
-
Used when updating the update servlet.
- SolrClient::THREADS_SERVLET_TYPE
-
Used when updating the threads servlet.
- SolrClient::PING_SERVLET_TYPE
-
Used when updating the ping servlet.
- SolrClient::TERMS_SERVLET_TYPE
-
Used when updating the terms servlet.
- SolrClient::DEFAULT_SEARCH_SERVLET
-
This is the intial value for the search servlet.
- SolrClient::DEFAULT_UPDATE_SERVLET
-
This is the intial value for the update servlet.
- SolrClient::DEFAULT_THREADS_SERVLET
-
This is the intial value for the threads servlet.
- SolrClient::DEFAULT_PING_SERVLET
-
This is the intial value for the ping servlet.
- SolrClient::DEFAULT_TERMS_SERVLET
-
This is the intial value for the terms servlet used for the TermsComponent
Table of Contents
- SolrClient::addDocument — این متد سند را به اندیس اضافه میکند
- SolrClient::addDocuments — اضافه کردن مجموعه نمونههای SolrInputDocument به اندیس
- SolrClient::commit — نهایی کردن تمام اضافه/حذف انجام شده بر اندیس
- SolrClient::__construct — سازنده شی SolrClient
- SolrClient::deleteById — حذف با استفاده از Id
- SolrClient::deleteByIds — حذف با استفاده از Idها
- SolrClient::deleteByQueries — حذف تمام سندهای منطبق بر پرس و جو
- SolrClient::deleteByQuery — حذف تمام اسناد منطبق بر پرس و جوی داده شده
- SolrClient::__destruct — نابودگر SolrClient
- SolrClient::getDebug — بازگرداندن اطلاعات رفع خطا برای آخرین تلاش اتصال
- SolrClient::getOptions — بازگرداندن گزینههای کلاینت تعیین شده به صورت داخلی
- SolrClient::optimize — Defragment اندیس
- SolrClient::ping — بررسی روشن بودن سرور Solr
- SolrClient::query — ارسال پرس و جو به سرور
- SolrClient::request — ارسال درخواست بروزرسانی خام
- SolrClient::rollback — باز گرداندن تمام حذف/اضافه اندیس از آخرین کار. هیج گوشدهنده رویداد یا جستجوگر جدید نمیسازد
- SolrClient::setResponseWriter — Sets the response writer used to prepare the response from Solr
- SolrClient::setServlet — تغییر نوع servlet مشخص به مقدار جدید
- SolrClient::threads — بررسی وضعیت رشته
There are no user contributed notes for this page.
