3

我对 Elasticsearch 的索引器有疑问。我尝试索引标题:“Ali Baba et les quarante voleurs”。但是对于拼音“beider_morse”,我遇到了这个错误:

"IllegalArgumentException[TokenStream expanded to 1024 finite strings. Only <= 256 finite strings are supported]"

我有这个配置:

{
    settings: {
        index: {
            analysis: {
                filter: {
                    beider_morse: {
                        languageset: [
                            french
                        ]
                        type: phonetic
                        encoder: beider_morse
                    }
                }
                analyzer: {
                     personId-person: {
                         filter: asciifolding
                         tokenizer: standard
                     }
                     beider_morse-title: {
                         filter: beider_morse
                         tokenizer: whitespace
                     }
                }
            }
            number_of_shards: 4
            number_of_replicas: 1
        }
    }
    mappings: {
        film: {
            properties: {
                personIds: {
                    type: string
                    fields: {
                        personId: {
                            analyzer: personId-person
                            type: string
                        }
                    }
                }
                title: {
                    type: string
                    fields: {
                        completionb: {
                            max_input_length: 50
                            payloads: false
                            analyzer: beider_morse-title
                            preserve_position_increments: true
                            type: completion
                            preserve_separators: true
                        }
                    }
                }
                poster: {
                    index: not_analyzed
                    type: string
                }
            }
        }
    }
}

对于价值观:

{"title":"Ali Baba et les quarante voleurs","poster":["35362","http:\/\/demo.com\/g456fg879.jpg","2012-02-13 18:13:28.468422","Ali Baba et les quarante voleurs"],"personIds":["37058","37059","37060"]}

您有增加/解决此问题的想法吗?

4

0 回答 0