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

Aperta
#911 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
elasticsearch, php
Ambito
backend, search

Direzione di ricerca

Iniziare esaminando il commit classifai-cleanup referenziato e tracciando la query term-index utilizzata per i confronti tra tassonomie. Verificare come vengono gestiti i tag e le categorie dei post, quindi verificare che il filtraggio avvenga in Elasticsearch e che il comportamento risultante corrisponda alla tassonomia richiesta senza dipendere dalla rimozione lato WordPress.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
PHP
Stelle
714
Fork
68
Merge medio
4h 32m
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 10up/classifai

Tutte le issue di 10up/classifai

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.