support for embedded schema
Closed this issue · 1 comments
Tomoka64 commented
context
looks like right now you have to define schema to make mix elasticsearch.build
task work.
i tried with embedded schema, this is the error i got
rollback []
** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "nil" does not exist
query: SELECT t0."id", t0."live_stream_id", t0."username", t0."visitor_id" FROM "nil" AS t0
(db_connection 2.4.1) lib/db_connection.ex:1284: DBConnection.prepare_declare!/4
(db_connection 2.4.1) lib/db_connection.ex:1063: anonymous fn/4 in DBConnection.reduce/3
(elixir 1.13.3) lib/stream.ex:1517: anonymous fn/5 in Stream.resource/3
(elixir 1.13.3) lib/stream.ex:1719: Enumerable.Stream.do_each/4
(elixir 1.13.3) lib/stream.ex:880: Stream.do_transform/5
(elixir 1.13.3) lib/stream.ex:1719: Enumerable.Stream.do_each/4
(elixir 1.13.3) lib/stream.ex:880: Stream.do_transform/5
(elixir 1.13.3) lib/stream.ex:1719: Enumerable.Stream.do_each/4
(elixir 1.13.3) lib/enum.ex:4144: Enum.reduce/3
(ecto_sql 3.5.4) lib/ecto/adapters/sql.ex:1027: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
(db_connection 2.4.1) lib/db_connection.ex:1531: DBConnection.run_transaction/4
(naboo 0.0.1) lib/naboo/elasticsearch/elasticsearch_store.ex:167: Naboo.ElasticsearchStore.transaction/1
(elasticsearch 1.0.0) lib/elasticsearch/indexing/bulk.ex:104: Elasticsearch.Index.Bulk.upload/4
(elasticsearch 1.0.0) lib/elasticsearch/indexing/index.ex:36: Elasticsearch.Index.hot_swap/2
(elasticsearch 1.0.0) lib/mix/elasticsearch.build.ex:84: Mix.Tasks.Elasticsearch.Build.build/3
(elasticsearch 1.0.0) lib/mix/elasticsearch.build.ex:62: anonymous fn/4 in Mix.Tasks.Elasticsearch.Build.run/1
(elixir 1.13.3) lib/enum.ex:4144: anonymous fn/3 in Enum.reduce/3
(elixir 1.13.3) lib/enum.ex:4475: Enumerable.List.reduce/3
(elixir 1.13.3) lib/enum.ex:4144: Enum.reduce/3
(elasticsearch 1.0.0) lib/mix/elasticsearch.build.ex:61: Mix.Tasks.Elasticsearch.Build.run/1
[os_mon] memory supervisor port (memsup): Erlang has closed
** (exit) 1
(mix 1.13.3) lib/mix/tasks/cmd.ex:64: Mix.Tasks.Cmd.run/1
(mix 1.13.3) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.3) lib/mix/project.ex:396: Mix.Project.in_project/4
(elixir 1.13.3) lib/file.ex:1560: File.cd!/2
(mix 1.13.3) lib/mix/task.ex:531: anonymous fn/4 in Mix.Task.recur/1
(elixir 1.13.3) lib/enum.ex:2396: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.13.3) lib/mix/task.ex:530: Mix.Task.recur/1
(mix 1.13.3) lib/mix/project_stack.ex:221: Mix.ProjectStack.recur/1
would be nice if you can support embedded schema as well. or let me know if there is already a way to solve this. 🙏
Tomoka64 commented
figured out thanks!