Page MenuHomePhabricator

Update Wikibase terms lookup/search logic to use ItemTermStore
Closed, InvalidPublic

Description

  • ItemTermStore should be used to lookup terms of Items (starting from item id) that are below the upper-bound configured in T224542, once items migration is switched to read one mode. All other terms for items that are above the upper-bound should continue to read from wb_terms (using TermsSqlIndex class).
  • For search (starting with text to get term ids), logic will have to read from both schemas and combine the results into one result set.
    • Careful here. Final result set need to be filtered for distinct results as the old wb_terms might still contain terms of all items below the upper-bound (which are now migrated to new schema). Migrated item terms will not be deleted directly after migration, and might never happen until we drop wb_terms at once a bit further in the future.

Event Timeline

For search (starting with text to get term ids), logic will have to read from both schemas and combine the results into one result set.

Do we use the term store for search in production?

Covered by more concrete tasks under the Checkpoint task