Esempio n. 1
0
 /**
  * Query a lucene index
  *
  * @param string $underscoredIndexName The design document name of the index
  * @param string $indexType Type of the index to query
  * @param array $queryOptions
  * @return mixed
  * @author Felix Oertel <*****@*****.**>
  */
 public function queryIndex($underscoredIndexName, $indexType, array $queryOptions = NULL)
 {
     $requestOptions = $this->extractRequestOptions($queryOptions);
     $path = '/_fti/local/' . urlencode($this->getDatabaseName()) . '/_design/' . urlencode($underscoredIndexName) . '/search';
     return $this->connector->get($path, $queryOptions, NULL, $requestOptions);
 }
 /**
  * @test
  */
 public function listDatabasesWorks()
 {
     $response = $this->connector->get('/_all_dbs');
     $this->assertTrue(is_array($response));
 }