1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 08:20:01 +00:00

changed es mapping to disable fields that don't need querying

This commit is contained in:
aldacron 2017-05-16 22:12:58 -07:00
parent 4a777376a2
commit b2a7b49757

View file

@ -57,35 +57,50 @@ mappings:
fielddata: true
created_time:
type: date
index: false
# Only in the ES index for generating magnet links
info_hash:
enabled: false
filesize:
type: long
index: false
anonymous:
type: boolean
index: false
trusted:
type: boolean
index: false
remake:
type: boolean
index: false
complete:
type: boolean
index: false
hidden:
type: boolean
index: false
deleted:
type: boolean
index: false
has_torrent:
type: boolean
index: false
download_count:
type: long
index: false
leech_count:
type: long
index: false
seed_count:
type: long
index: false
# these ids are really only for filtering, thus keyword
uploader_id:
type: keyword
index: false
main_category_id:
type: keyword
index: false
sub_category_id:
type: keyword
type: keyword
index: false