Page MenuHomePhabricator

[Federated Values] Don't show remote items in global search
Closed, ResolvedPublic3 Estimated Story Points

Description

Currently remote items appear in global search as well as in value selection. Find a way to turn this off. This is a side effect that is not part of the Federated Values feature.

See attached images. All results but the first are coming in from Wikidata:

Screenshot 2025-11-12 at 17.50.15.png (1×1 px, 320 KB)

Event Timeline

To clarify something I gave as feedback yesterday in the November Wikibase user group meeting: when talking about search, I meant "site search should only show local entities; but if the statement values of those entities are indexed, then remote values should be too."

What I didn't mean is "the remote item should show for every site search matching that item's label" (what the screenshot here shows as the wrong behaviour, a statement I agree with).

I was under the mistaken impression that statement values showed up in "pages contain this" search. So for example if a local item contained a statement with the value including the word "Tamen" or a number like "1990" and it was searchable, the value of a remote item within a statement for that should be, too (and similarly be included in the RDF output), and it should show the local page for the item the statement with a remote item was on. This sometimes did work as I thought because (for example) the name of an event item might contain the year, which was also part of a statement value.

Of course, when entering a statement value you'd probably want to autosuggest both local and remote items.