update : 2015.11.03
php.shukuma.com
The SolrQuery class
The SolrQuery class
(PECL solr >= 0.9.2)
소개
Represents a collection of name-value pairs sent to the Solr server during a request.
클래스 개요
public SolrQuery addField
(
string $field
)
public SolrQuery addSortField
(
string $field
[,
int $order
= SolrQuery::ORDER_DESC
] )
public SolrQuery setFacet
(
bool $flag
)
public SolrQuery setFacetDateEnd
(
string $value
[,
string $field_override
] )
public SolrQuery setFacetDateGap
(
string $value
[,
string $field_override
] )
public SolrQuery setFacetLimit
(
int $limit
[,
string $field_override
] )
public SolrQuery setFacetMethod
(
string $method
[,
string $field_override
] )
public SolrQuery setFacetMissing
(
bool $flag
[,
string $field_override
] )
public SolrQuery setFacetOffset
(
int $offset
[,
string $field_override
] )
public SolrQuery setFacetPrefix
(
string $prefix
[,
string $field_override
] )
public SolrQuery setFacetSort
(
int $facetSort
[,
string $field_override
] )
public SolrQuery setGroup
(
bool $value
)
public SolrQuery setMlt
(
bool $flag
)
public SolrQuery setQuery
(
string $query
)
public SolrQuery setRows
(
int $rows
)
public SolrQuery setStart
(
int $start
)
public SolrQuery setStats
(
bool $flag
)
public SolrQuery setTerms
(
bool $flag
)
}
예약 상수
SolrQuery::ORDER_ASC
Used to specify that the sorting should be in acending order
SolrQuery::ORDER_DESC
Used to specify that the sorting should be in descending order
SolrQuery::FACET_SORT_INDEX
Used to specify that the facet should sort by index
SolrQuery::FACET_SORT_COUNT
Used to specify that the facet should sort by count
SolrQuery::TERMS_SORT_INDEX
Used in the TermsComponent
SolrQuery::TERMS_SORT_COUNT
Used in the TermsComponent
Table of Contents