Elasticsearch-rails: How to create a mapping with join type?

Created on 8 Sep 2019  路  2Comments  路  Source: elastic/elasticsearch-rails

I'd like to use Join datatype.

I tried like as below.

settings index: {number_of_shards: 1, max_result_window: 10000000, } do
  mappings dynamic: 'false' do
    indexes :my_join_field, type: "join" do
      indexes :relation, { "question" => "answer" }
    end

I got error.

{"type":"mapper_parsing_exception","reason":"Mapping definition for [my_join_field] has unsupported parameters:  [fields : {relation={question=answer, type=text}}]"}}

How can I resolve that?

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings