|
The SolrQuery class
(Èíôîðìàöèÿ î âåðñèè íåèçâåñòíà, âîçìîæíî, òîëüêî â SVN)
Ââåäåíèå
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 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
Ñîäåðæàíèå
|
|