in src/OpenSearch/Endpoints/TermVectors.php [29:53]
public function getURI(): string
{
if (isset($this->index) !== true) {
throw new RuntimeException(
'index is required for termvectors'
);
}
$index = $this->index;
$id = $this->id ?? null;
$type = $this->type ?? null;
if (isset($type)) {
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}
if (isset($type) && isset($id)) {
return "/$index/$type/$id/_termvectors";
}
if (isset($type)) {
return "/$index/$type/_termvectors";
}
if (isset($id)) {
return "/$index/_termvectors/$id";
}
return "/$index/_termvectors";
}