Term Cleanup: In our elasticsearch query, filter results to only the taxonomy we want

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
elasticsearch, php
領域
backend, search

調査の方向性

まず、参照されている classifai-cleanup commit を確認し、タクソノミー比較に使用される term-index クエリを追跡します。投稿タグとカテゴリーがどのように処理されるかを確認し、続いてフィルタリングが Elasticsearch で行われ、結果の動作が WordPress 側での削除に依存せず、要求されたタクソノミーと一致することを検証します。

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

説明

Is your enhancement related to a problem? Please describe.

Originally reported by @dkotter:

Right now we search for matches against all terms within the term index. So if you have categories and tags indexed and you run a comparison on tags, categories will also be considered. We then remove those on the WordPress side but there's probably performance gains to be had by doing this all on the elasticsearch side.

See here for an initial test of this that seemed to work for post tags but not categories.

Designs

No response

Describe alternatives you've considered

Originally reported via https://github.com/10up/classifai-cleanup/issues/15

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要言語
PHP
スター
714
フォーク
68
平均マージ
4時間 32分
マージ済み PR(30日)
23

環境構築

はじめの一歩

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

10up/classifai のほかの issue

10up/classifai の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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