私はelasticsearchの初心者で、私は自分の問題を解決することはできません。 はここに私の問題です:弾性検索複数のフィールド
{"email"=>"[email protected]",
"full_name"=>"Lilla Fritz Ritchie",
"location"=>"Connecticut",
"postition"=>"Developer",
"about"=>
"Atque nihil dolorum et quod ea aut debitis. Aliquid commodi eos et architecto nostrum. Rerum aut sunt sed molestiae consequatur. Ut ut est id voluptatem maiores. Sed voluptate aut consequatur asperiores reprehenderit iure optio.",
"skills"=>
[{"name"=>"SQLServer", "year_experience"=>2},
{"name"=>"MySQL", "year_experience"=>6},
{"name"=>"Aps.net", "year_experience"=>7},
{"name"=>"Ruby on Rails", "year_experience"=>8},
{"name"=>"PHP", "year_experience"=>4},
{"name"=>"Amazon EC2", "year_experience"=>4}],
"id"=>3}
これは、ES内のユーザー文書があり、私はスキルと年の経験を持つ、対応する人を見つける必要があります。 例:私の入力はRuby on Rails 8年の経験と5年間の経験を持つAmazon EC2のスキルです。
- 年の経験によってレールスキルや順序にルビーを持っている:
=>は結果を期待しています。
誰でも、私はそのケースのESクエリを書くことができます。私の悪い英語については申し訳ありません。
「私の入力はRuby on Rails 8年の経験であり、Amazon EC2のスキルは5年の経験です」というスキルを求めていると思います。 – user3775217