CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Simple Match query builder, currently based on FullTextQueryStringQueryBuilder to reuse its parsing logic. More...
Public Member Functions | |
__construct (SearchConfig $config, array $feature, array $settings) | |
Public Member Functions inherited from CirrusSearch\Query\FullTextQueryStringQueryBuilder | |
build (SearchContext $searchContext, $term) | |
Search articles with provided term. | |
buildDegraded (SearchContext $searchContext) | |
Attempt to build a degraded query from the query already built into $context. | |
Protected Member Functions | |
buildSearchTextQuery (SearchContext $context, array $fields, AbstractQuery $nearMatchQuery, $queryString) | |
Build the primary query used for full text search. | |
buildHighlightQuery (SearchContext $context, array $fields, $queryText, $slop) | |
Builds the highlight query. | |
buildPhraseRescoreQuery (SearchContext $context, array $fields, $queryText, $slop) | |
Builds the phrase rescore query. | |
getMultiTermRewriteMethod () | |
@inheritDoc | |
Protected Member Functions inherited from CirrusSearch\Query\FullTextQueryStringQueryBuilder | |
isPhraseRescoreNeeded (SearchContext $searchContext) | |
Determines if a phrase rescore is needed. | |
maybeWrapWithTokenCountRouter ( $queryText, \Elastica\Query\AbstractQuery $query) | |
Additional Inherited Members | |
Protected Attributes inherited from CirrusSearch\Query\FullTextQueryStringQueryBuilder | |
$config | |
Simple Match query builder, currently based on FullTextQueryStringQueryBuilder to reuse its parsing logic.
It will only support queries that do not use the lucene QueryString syntax and fallbacks to FullTextQueryStringQueryBuilder in such cases. It generates only simple match/multi_match queries. It supports merging multiple clauses into a dismax query with 'in_dismax'.
CirrusSearch\Query\FullTextSimpleMatchQueryBuilder::__construct | ( | SearchConfig | $config, |
array | $features, | ||
array | $settings ) |
SearchConfig | $config | |
KeywordFeature[] | $features | |
array[] | $settings | currently ignored |
Reimplemented from CirrusSearch\Query\FullTextQueryStringQueryBuilder.
|
protected |
Builds the highlight query.
SearchContext | $context | |
string[] | $fields | |
string | $queryText | |
int | $slop |
Reimplemented from CirrusSearch\Query\FullTextQueryStringQueryBuilder.
|
protected |
Builds the phrase rescore query.
SearchContext | $context | |
string[] | $fields | |
string | $queryText | |
int | $slop |
Reimplemented from CirrusSearch\Query\FullTextQueryStringQueryBuilder.
|
protected |
Build the primary query used for full text search.
If query_string syntax is not used the experimental query is built. We fallback to parent implementation otherwise.
SearchContext | $context | |
string[] | $fields | |
AbstractQuery | $nearMatchQuery | |
string | $queryString |
Reimplemented from CirrusSearch\Query\FullTextQueryStringQueryBuilder.
|
protected |
@inheritDoc
Reimplemented from CirrusSearch\Query\FullTextQueryStringQueryBuilder.