Skip to content
Snippets Groups Projects
Commit b377030b authored by David Maus's avatar David Maus
Browse files

Provide connector method for term extraction

* VuFindSearch/Backend/Solr/Connector.php (terms): New method. Extract
  index terms.
* VuFindSearch/Backend/Solr/Backend.php (terms): Use connector method.
parent b49c4678
No related merge requests found
......@@ -301,7 +301,7 @@ class Backend implements BackendInterface, MoreLikeThis, RetrieveBatchInterface
$params->set('terms.lower.incl', 'false');
$params->set('terms.sort', 'index');
$response = $this->connector->query('term', $params);
$response = $this->connector->terms($params);
$terms = new Terms($this->deserialize($response));
return $terms;
}
......
......@@ -220,6 +220,18 @@ class Connector
return $this->select($params);
}
/**
* Extract terms from a SOLR index.
*
* @param ParamBag $params Parameters
*
* @return string
*/
public function terms(ParamBag $params)
{
return $this->query('term', $params);
}
/**
* Write to the SOLR index.
*
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment