SearchRequestConverter
Table of Contents
-
getSearchRequest()
: SearchQueryRequest
-
handleNumericRangeFacet()
: Facet
-
handleTermFacet()
: Facet
-
convertFacets()
: array<string|int, mixed>
-
convertFieldSort()
: Sorting
-
convertGeoDistanceSort()
: Sorting
-
convertIdSort()
: Sorting
-
convertScoreSort()
: Sorting
-
convertSimpleStringSort()
: Sorting
-
convertSort()
: array<string|int, mixed>
-
convertStyle()
: int
-
getBooleanFieldQuery()
: Query
-
getBooleanQuery()
: Query
-
getConjunctionQuery()
: Query
-
getDateRangeQuery()
: Query
-
getDisjunctionQuery()
: Query
-
getDocIdQuery()
: Query
-
getGeoBoundingBoxQuery()
: Query
-
getGeoDistanceQuery()
: Query
-
getGeoPolygonQuery()
: Query
-
getLatLng()
: LatLng
-
getMatchAllQuery()
: Query
-
getMatchNoneQuery()
: Query
-
getMatchPhraseQuery()
: Query
-
getMatchQuery()
: Query
-
getNumericRangeQuery()
: Query
-
getOperator()
: int
-
getPhraseQuery()
: Query
-
getPrefixQuery()
: Query
-
getQueryStringQuery()
: Query
-
getRegexpQuery()
: Query
-
getShouldMin()
: int|null
-
getTermQuery()
: Query
-
getTermRangeQuery()
: Query
-
getWildcardQuery()
: Query
-
handleDateRangeFacet()
: Facet
-
handleQuery()
: Query
getSearchRequest()
public
static getSearchRequest(string $indexName, SearchQuery $query, array<string|int, mixed> $exportedOptions) : SearchQueryRequest
Parameters
-
$indexName
: string
-
-
$query
: SearchQuery
-
-
$exportedOptions
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
SearchQueryRequest
—
handleNumericRangeFacet()
public
static handleNumericRangeFacet(stdClass $facet) : Facet
Parameters
-
$facet
: stdClass
-
Return values
Facet
—
handleTermFacet()
public
static handleTermFacet(stdClass $facet) : Facet
Parameters
-
$facet
: stdClass
-
Return values
Facet
—
convertFacets()
private
static convertFacets(array<string|int, mixed> $facets) : array<string|int, mixed>
Parameters
-
$facets
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—
convertFieldSort()
private
static convertFieldSort(stdClass $spec) : Sorting
Parameters
-
$spec
: stdClass
-
Return values
Sorting
—
convertGeoDistanceSort()
private
static convertGeoDistanceSort(stdClass $spec) : Sorting
Parameters
-
$spec
: stdClass
-
Return values
Sorting
—
convertIdSort()
private
static convertIdSort(stdClass $spec) : Sorting
Parameters
-
$spec
: stdClass
-
Return values
Sorting
—
convertScoreSort()
private
static convertScoreSort(stdClass $spec) : Sorting
Parameters
-
$spec
: stdClass
-
Return values
Sorting
—
convertSimpleStringSort()
private
static convertSimpleStringSort(string $field) : Sorting
Parameters
-
$field
: string
-
Return values
Sorting
—
convertSort()
private
static convertSort(array<string|int, mixed> $encodedSort) : array<string|int, mixed>
Parameters
-
$encodedSort
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
array<string|int, mixed>
—
convertStyle()
private
static convertStyle(string $style) : int
Parameters
-
$style
: string
-
-
throws
-
InvalidArgumentException
Return values
int
—
getBooleanFieldQuery()
private
static getBooleanFieldQuery(BooleanFieldSearchQuery $query) : Query
Parameters
-
$query
: BooleanFieldSearchQuery
-
Return values
Query
—
getBooleanQuery()
private
static getBooleanQuery(BooleanSearchQuery $query) : Query
Parameters
-
$query
: BooleanSearchQuery
-
-
throws
-
InvalidArgumentException
Return values
Query
—
getConjunctionQuery()
private
static getConjunctionQuery(ConjunctionSearchQuery $query) : Query
Parameters
-
$query
: ConjunctionSearchQuery
-
-
throws
-
InvalidArgumentException
Return values
Query
—
getDateRangeQuery()
private
static getDateRangeQuery(DateRangeSearchQuery $query) : Query
Parameters
-
$query
: DateRangeSearchQuery
-
Return values
Query
—
getDisjunctionQuery()
private
static getDisjunctionQuery(DisjunctionSearchQuery $query) : Query
Parameters
-
$query
: DisjunctionSearchQuery
-
Return values
Query
—
getDocIdQuery()
private
static getDocIdQuery(DocIdSearchQuery $query) : Query
Parameters
-
$query
: DocIdSearchQuery
-
Return values
Query
—
getGeoBoundingBoxQuery()
private
static getGeoBoundingBoxQuery(GeoBoundingBoxSearchQuery $query) : Query
Parameters
-
$query
: GeoBoundingBoxSearchQuery
-
Return values
Query
—
getGeoDistanceQuery()
private
static getGeoDistanceQuery(GeoDistanceSearchQuery $query) : Query
Parameters
-
$query
: GeoDistanceSearchQuery
-
Return values
Query
—
getGeoPolygonQuery()
private
static getGeoPolygonQuery(GeoPolygonQuery $query) : Query
Parameters
-
$query
: GeoPolygonQuery
-
Return values
Query
—
getLatLng()
private
static getLatLng(float $long, float $lat) : LatLng
Parameters
-
$long
: float
-
-
$lat
: float
-
Return values
LatLng
—
getMatchAllQuery()
private
static getMatchAllQuery(MatchAllSearchQuery $query) : Query
Parameters
-
$query
: MatchAllSearchQuery
-
Return values
Query
—
getMatchNoneQuery()
private
static getMatchNoneQuery(MatchNoneSearchQuery $query) : Query
Parameters
-
$query
: MatchNoneSearchQuery
-
Return values
Query
—
getMatchPhraseQuery()
private
static getMatchPhraseQuery(MatchPhraseSearchQuery $query) : Query
Parameters
-
$query
: MatchPhraseSearchQuery
-
Return values
Query
—
getMatchQuery()
private
static getMatchQuery(MatchSearchQuery $query) : Query
Parameters
-
$query
: MatchSearchQuery
-
-
throws
-
InvalidArgumentException
Return values
Query
—
getNumericRangeQuery()
private
static getNumericRangeQuery(NumericRangeSearchQuery $query) : Query
Parameters
-
$query
: NumericRangeSearchQuery
-
Return values
Query
—
getOperator()
private
static getOperator(string $operator) : int
Parameters
-
$operator
: string
-
-
throws
-
InvalidArgumentException
Return values
int
—
getPhraseQuery()
private
static getPhraseQuery(PhraseSearchQuery $query) : Query
Parameters
-
$query
: PhraseSearchQuery
-
Return values
Query
—
getPrefixQuery()
private
static getPrefixQuery(PrefixSearchQuery $query) : Query
Parameters
-
$query
: PrefixSearchQuery
-
Return values
Query
—
getQueryStringQuery()
private
static getQueryStringQuery(QueryStringSearchQuery $query) : Query
Parameters
-
$query
: QueryStringSearchQuery
-
Return values
Query
—
getRegexpQuery()
private
static getRegexpQuery(RegexpSearchQuery $query) : Query
Parameters
-
$query
: RegexpSearchQuery
-
Return values
Query
—
getShouldMin()
private
static getShouldMin(DisjunctionSearchQuery $query) : int|null
Parameters
-
$query
: DisjunctionSearchQuery
-
Return values
int|null
—
getTermQuery()
private
static getTermQuery(TermSearchQuery $query) : Query
Parameters
-
$query
: TermSearchQuery
-
Return values
Query
—
getTermRangeQuery()
private
static getTermRangeQuery(TermRangeSearchQuery $query) : Query
Parameters
-
$query
: TermRangeSearchQuery
-
Return values
Query
—
getWildcardQuery()
private
static getWildcardQuery(WildcardSearchQuery $query) : Query
Parameters
-
$query
: WildcardSearchQuery
-
Return values
Query
—
handleDateRangeFacet()
private
static handleDateRangeFacet(stdClass $facet) : Facet
Parameters
-
$facet
: stdClass
-
Return values
Facet
—
handleQuery()
private
static handleQuery(SearchQuery $query) : Query
Parameters
-
$query
: SearchQuery
-
-
throws
-
InvalidArgumentException
Return values
Query
—