Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Help] How to access document metadata?

オープン
#183 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
elasticsearch, go, postgresql
領域
backend, cli

調査の方向性

この issue では、エントリポイント abc import、その transform 関数、Elasticsearch の _bulk リクエストが挙げられています。まず、これらのパスがドキュメントメタデータをどのように構築するかを追跡します。完了条件は、transform が routing などのメタデータを読み取り、設定できるかどうかを確認し、その後、parent/child import によって関連ドキュメントが正しく配置されることを検証することです。

索引モデルが issue の本文から書いたものです。

説明

I was able to setup import from postgress via abc import to ElasticSearch 7.7.
I would like to configure parent / child relationship so that I can use join queries. For this to work, http requests to Elastic must contain routing argument (requests with parent/child relationship without routing fails). This argument should contain a string that is always the same for all documents in a relation so that these documents can be stored in the same shard.

abc import does imports by sending _bulk requests to elastic. The first part of the _bulk item contains document metadata (_id, _type, ...) and the second part contains the actual document. Elastic alternatively accepts routing property in document metadata. What I haven't found is how can I access document metadata in transform function.

The transform function allows you to modify a document. Can I somehow access the document metadata and change it during import?

主要言語
Go
スター
471
フォーク
47
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appbaseio/abc のほかの issue

appbaseio/abc の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。