Page MenuHomePhabricator

Limit completion suggester building to single project
Closed, DeclinedPublic

Description

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.

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.

debt triaged this task as Medium priority.Jul 20 2016, 3:59 PM
debt moved this task from needs triage to This Quarter on the Discovery-Search board.

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.

debt subscribed.

Declined - see T139498#3157557 for more info