gpt4 book ai didi

elasticsearch - elasticsearch 7xx异常.RequestError

转载 作者:行者123 更新时间:2023-12-03 02:21:45 32 4
gpt4 key购买 nike

请帮助我解决elasticsearch的问题。
安装了https://github.com/nyaadevs/nyaa软件包后,使用elasticsearch的搜索不起作用。 config.yml是为旧版本的Elasticsearch <6创建的。现在,最新版本的Elastic(7xx)。

enter image description here

配置文件

settings:
analysis:
analyzer:
my_search_analyzer:
type: custom
tokenizer: standard
char_filter:
- my_char_filter
filter:
- lowercase
my_index_analyzer:
type: custom
tokenizer: standard
char_filter:
- my_char_filter
filter:
- resolution
- lowercase
- word_delimit
- my_ngram
- trim_zero
- unique
# For exact matching - separate each character for substring matching + lowercase
exact_analyzer:
tokenizer: exact_tokenizer
filter:
- lowercase
# For matching full words longer than the ngram limit (15 chars)
my_fullword_index_analyzer:
type: custom
tokenizer: standard
char_filter:
- my_char_filter
filter:
- lowercase
- word_delimit
# Skip tokens shorter than N characters,
# since they're already indexed in the main field
- fullword_min
- unique

tokenizer:
# Splits input into characters, for exact substring matching
exact_tokenizer:
type: pattern
pattern: "(.)"
group: 1

filter:
my_ngram:
type: edgeNGram
min_gram: 1
max_gram: 15
fullword_min:
type: length
# Remember to change this if you change the max_gram below!
min: 16
resolution:
type: pattern_capture
patterns: ["(\\d+)[xX](\\d+)"]
trim_zero:
type: pattern_capture
patterns: ["0*([0-9]*)"]
word_delimit:
type: word_delimiter
preserve_original: true
split_on_numerics: false
char_filter:
my_char_filter:
type: mapping
mappings: ["-=>_", "!=>_", "_=>\\u0020"]
index:
id_field: integer
sort.order: desc
# we're running a single es node, so no sharding necessary,
# plus replicas don't really help either.
number_of_shards: 1
number_of_replicas : 0
# since we disabled the _all field, default query the
# name of the torrent.
query:
default_field: display_name
mappings:
properties:
title:
type: text
boost: 2
content:
type: text
id:
type: integer

看起来您的帖子大部分是代码;请添加更多详细信息。看来您的帖子大部分是代码;请添加更多详细信息。看来您的帖子大部分是代码;请添加更多详细信息。

最佳答案

不熟悉w / nyaa,但id_field: integer看起来可疑。

不应该是id_field: id吗?

关于elasticsearch - elasticsearch 7xx异常.RequestError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62202742/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com