使用拼音beider_morse在Elasticsearch中编制索引时出错

时间:2014-04-11 15:20:09

标签: elasticsearch phonetics

我对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"]}

你有想法增加/修复这个吗?

0 个答案:

没有答案