Browse Source

Handle /actions/apisearchjson.php searches

Qvitter uses this, for example

Ref. #3
master
Chimo 1 year ago
parent
commit
7d832b7ff4
No known key found for this signature in database
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      lib/ElasticSearch.php

+ 7
- 1
lib/ElasticSearch.php View File

@@ -253,8 +253,14 @@ class ElasticSearch extends SearchEngine
// TODO: Parse response, handle errors
}

// Compatibility with /actions/apisearchjson.php
function query($q)
{
return $this->esQuery($q);
}

// From SearchEngine class
function esQuery($q, $author, $type, $created)
public function esQuery($q, $author=null, $type=null, $created=null)
{
$default_field = 'text';


Loading…
Cancel
Save