Browse Source

Handle /actions/apisearchjson.php searches

Qvitter uses this, for example

Ref. #3
master
Chimo 11 months 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
253 253
         // TODO: Parse response, handle errors
254 254
     }
255 255
 
256
+    // Compatibility with /actions/apisearchjson.php
257
+    function query($q)
258
+    {
259
+        return $this->esQuery($q);
260
+    }
261
+
256 262
     // From SearchEngine class
257
-    function esQuery($q, $author, $type, $created)
263
+    public function esQuery($q, $author=null, $type=null, $created=null)
258 264
     {
259 265
         $default_field = 'text';
260 266
 

Loading…
Cancel
Save