Documentation

DocIdSearchQuery
in package
implements SearchQuery

A FTS query that matches on Couchbase document IDs. Useful to restrict the search space to a list of keys (by using this in a compound query).

Interfaces, Classes, Traits and Enums

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

Table of Contents

$boost  : float|null
$documentIds  : array<string|int, mixed>
$field  : string|null
__construct()  : mixed
boost()  : DocIdSearchQuery
Sets the boost for this query.
build()  : DocIdSearchQuery
Static helper to keep code more readable
docIds()  : DocIdSearchQuery
Sets the document ids to restrict the search to.
field()  : DocIdSearchQuery
Sets the field for this query.

Properties

Methods

docIds()

Sets the document ids to restrict the search to.

public docIds(string ...$documentIds) : DocIdSearchQuery
Parameters
$documentIds : string

the document ids to restrict the search to.

Tags
since
4.0.0
Return values
DocIdSearchQuery

        

Search results