Browse Source

Fix purely negative search filtering

spaghetti 8 years ago
parent
commit
b5128f6336
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      classes/torrentsearch.class.php

+ 1
- 0
classes/torrentsearch.class.php View File

615
     }
615
     }
616
     $TorrentCount = count($AllTorrents);
616
     $TorrentCount = count($AllTorrents);
617
     $this->SphQLTor = new SphinxqlQuery();
617
     $this->SphQLTor = new SphinxqlQuery();
618
+    $this->SphQLTor->where_match('_all', 'fake', false);
618
     $this->SphQLTor->select('id')->from('torrents, delta');
619
     $this->SphQLTor->select('id')->from('torrents, delta');
619
     foreach ($this->UsedTorrentFields as $Field => $Term) {
620
     foreach ($this->UsedTorrentFields as $Field => $Term) {
620
       $this->SphQLTor->where_match($Term, $Field, false);
621
       $this->SphQLTor->where_match($Term, $Field, false);

Loading…
Cancel
Save