Documentation

TermSearchQuery
in package
implements JsonSerializable, SearchQuery

A facet that gives the number of occurrences of the most recurring terms in all hits.

Interfaces, Classes, Traits and Enums

JsonSerializable
SearchQuery
Common interface for all classes, which could be used as a body of SearchQuery

Table of Contents

$boost  : float|null
$field  : string|null
$fuzziness  : int|null
$prefixLength  : int|null
$term  : string
__construct()  : mixed
boost()  : TermSearchQuery
Sets the boost for this query.
build()  : TermSearchQuery
Static helper to keep code more readable
field()  : TermSearchQuery
Sets the field for this query.
fuzziness()  : TermSearchQuery
Set the fuzziness for this query.
prefixLength()  : TermSearchQuery
Sets the prefix length for this query.

Properties

Methods

__construct()

public __construct(string $term) : mixed
Parameters
$term : string
Return values
mixed

prefixLength()

Sets the prefix length for this query.

public prefixLength(int $prefixLength) : TermSearchQuery
Parameters
$prefixLength : int

the prefix length to use.

Tags
since
4.0.0
Return values
TermSearchQuery

        

Search results