PHP
The SolrQuery class
The SolrQuery class
(No version information available, might only be in Git)
Introduction
Represents a collection of name-value pairs sent to the Solr server during a request.
Class synopsis
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
)
}
Predefined Constants
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
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 157 / 159523760. Delta: 0.05214 с