When merging multiple projects into the same index, it is likely (?) that we will still want to have per-wiki completion search. Evaluate if this is the case and add necessary code to the completion suggester build process to only index documents from the correct project.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | debt | T139498 Support multi-project indices | |||
Declined | None | T139504 Limit completion suggester building to single project |
Event Timeline
This would mostly work by adding a query condition to the scroll used to source documents. I'm thinking it might be best to wait until after the index is rebuilt with the wiki field populated before doing this though, to keep things simple.
Sidenote: There was a related idea in the Community Wishlist, which I've filed as T151479: Cross-wiki search completion suggestor based on interwiki prefixes so that it doesn't get forgotten. (IIUC it is unfeasible in the short-term, but the backend work required for it is ongoing, and it could potentially be a feature in the long-term.)
cross-wiki completion suggester would be a bit different. Since the request is based on interwiki prefixes it's likely we could detect the provided prefix in the interwiki map, and simply issue the query against the correct index. There might need to be some frontend changes to the suggestion box, and our satisfaction tracking code, to make it all play nice together.