NyaaV3/nyaa
Anna-Maria Meriniemi 0b78428abc [ES Change] Improve Elasticsearch term quoting (#473)
* Optimize Elasticsearch fullword field

Since the main display_name field ngrams words up to 15 characters,
anything to and under that will already be indexed - the fullword field
(which we have for words longer than 15 characters) needs to index only
words longer than that.

* Preprocess ES terms for better literal matching

This commit adds a new .exact subfield to display_name, which holds a
barely-filtered version of the original title we can do "literal"
matching against. This is not real substring matching, but quoting
terms now actually does something!

Implements a simple preprocessor for the search terms to extract quoted
parts from the search terms, optionally prefixed with - to negate them.
The preprocessor will create a query that'll join all three query-types:
the simple_query_string, must-phrases and must-not-phrases.
2018-04-13 17:06:25 -07:00
..
static Add some rel attributes to links inside markdown (#461) 2018-03-25 16:30:07 -07:00
templates Fix nuke button prompt (#469) 2018-04-04 23:32:04 +02:00
views Commit editing time 2018-04-02 13:18:39 -07:00
__init__.py Use Flask-Assets to minify self-hosted JS files (#468) 2018-04-04 16:02:05 +02:00
api_handler.py Move bencoded info dicts from mysql torrent_info table to info_dict directory. DB change! 2018-02-02 20:39:02 +01:00
backend.py Implement comment locking (#439) 2018-03-25 17:03:49 -07:00
bencode.py bencode: fix nontermination on empty or malformed input 2017-07-24 20:53:48 -06:00
email.py [Config change] Password reset by email (#381) 2017-10-08 04:34:40 +03:00
extensions.py Refactor into an app factory [2 of 2] (#322) 2017-08-01 21:02:08 +03:00
forms.py Implement comment locking (#439) 2018-03-25 17:03:49 -07:00
models.py Revert "[Schema change] Torrents flags bitflag column to indexed columns (#471)" 2018-04-08 08:36:42 +02:00
search.py [ES Change] Improve Elasticsearch term quoting (#473) 2018-04-13 17:06:25 -07:00
template_utils.py Fix keyError from pop (#407) 2017-11-06 23:52:25 +02:00
torrents.py Fix flat PR (#446) 2018-02-04 13:56:29 +01:00
utils.py Redo nuke functionality (#459) 2018-03-25 16:24:44 -07:00