mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 19:49:59 +00:00
changed es mapping to disable fields that don't need querying
This commit is contained in:
parent
4a777376a2
commit
b2a7b49757
|
@ -57,35 +57,50 @@ mappings:
|
||||||
fielddata: true
|
fielddata: true
|
||||||
created_time:
|
created_time:
|
||||||
type: date
|
type: date
|
||||||
|
index: false
|
||||||
# Only in the ES index for generating magnet links
|
# Only in the ES index for generating magnet links
|
||||||
info_hash:
|
info_hash:
|
||||||
enabled: false
|
enabled: false
|
||||||
filesize:
|
filesize:
|
||||||
type: long
|
type: long
|
||||||
|
index: false
|
||||||
anonymous:
|
anonymous:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
index: false
|
||||||
trusted:
|
trusted:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
index: false
|
||||||
remake:
|
remake:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
index: false
|
||||||
complete:
|
complete:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
index: false
|
||||||
hidden:
|
hidden:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
index: false
|
||||||
deleted:
|
deleted:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
index: false
|
||||||
has_torrent:
|
has_torrent:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
index: false
|
||||||
download_count:
|
download_count:
|
||||||
type: long
|
type: long
|
||||||
|
index: false
|
||||||
leech_count:
|
leech_count:
|
||||||
type: long
|
type: long
|
||||||
|
index: false
|
||||||
seed_count:
|
seed_count:
|
||||||
type: long
|
type: long
|
||||||
|
index: false
|
||||||
# these ids are really only for filtering, thus keyword
|
# these ids are really only for filtering, thus keyword
|
||||||
uploader_id:
|
uploader_id:
|
||||||
type: keyword
|
type: keyword
|
||||||
|
index: false
|
||||||
main_category_id:
|
main_category_id:
|
||||||
type: keyword
|
type: keyword
|
||||||
|
index: false
|
||||||
sub_category_id:
|
sub_category_id:
|
||||||
type: keyword
|
type: keyword
|
||||||
|
index: false
|
Loading…
Reference in a new issue