Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/deploy/ansible
tomleb ba683c3bcb Improve search and fix '*' in search box (#871)
* Improve ES search

The new performance is very good.
Some examples on my 1.5gb vm:
INFO[0153] Query 'shingeki' took 6 milliseconds.
INFO[0125] Query 'アニメ' took 17 milliseconds.
INFO[0102] Query 'shingeki -kyojin horrible ' took 12 milliseconds

Looking at the criteria we wanted here:
https://pad.riseup.net/p/i8DrilHDWRvf, it meets:

1. Fast: sub-100ms for a typical query, sub-50ms is good and sub-20ms is
optimal
2. Prefix match: "horrible" finds horriblesubs
3. Substring match? "アニメ" finds "TVアニメ"
4. Position-independent terms ("shingeki kyojin" finds the same as
"kyojin shingeki")
5. Works with short term lengths correctly and fast (no in "kyoukai no
kanata", 04 in "horrible shingeki 04" etc)
7. (nice to have) search negation: shingeki kyojin -horriblesubs

* Use match_all query instead of *, fix *
2017-06-01 08:38:29 +10:00
..
group_vars Improve search and fix '*' in search box (#871) 2017-06-01 08:38:29 +10:00
roles Improve search and fix '*' in search box (#871) 2017-06-01 08:38:29 +10:00
create_elasticsearch_index.yml Add reindexing every 5 minutes, and a bunch of other things (#852) 2017-05-30 21:22:12 -05:00
hosts
install_nyaa.yml Playbook to install latest nyaa straight from github (#843) 2017-05-30 21:48:20 -05:00
populate_elasticsearch_index.yml Add reindexing every 5 minutes, and a bunch of other things (#852) 2017-05-30 21:22:12 -05:00
restore_database.yml Restore db and populate es from playbook 2017-05-17 19:05:58 -04:00
setup_server.yml Create main directory and add elasticsearch configuration 2017-05-17 19:05:58 -04:00