Page MenuHomePhabricator

Search API endpoint
Closed, ResolvedPublic2 Estimated Story Points

Description

https://gerrit.wikimedia.org/r/#/c/126996/

API: includes/api/ApiFlowSearch.php
Query class (similar to other formatter): includes/Formatter/SearchQuery.php

Simple example query: http://mediawiki.dev/api.php?action=flow&submodule=search&qterm=test
-> Note that because of a recent change, &page=… is also required - that param is for now completely ignored (wasn’t there when I worked on this), but using &title= or &pageid=. This needs to be addressed: either not require it (unlike other APIs) & allow multiple or no page, or make sure we use the &page= param

TODO: results undergo default formatter.revision treatment - this will likely change once we implement the frontent as we’ll need specialized data, specific to search
Let's address that as part of T78790, once we implement the frontend.

Revisions and Commits

rEFLW extension-Flow
rMEXT MediaWiki Extensions

Event Timeline

matthiasmullie claimed this task.
matthiasmullie raised the priority of this task from to Medium.
matthiasmullie updated the task description. (Show Details)
matthiasmullie changed Security from none to None.
matthiasmullie added a subscriber: matthiasmullie.

Change 126996 had a related patch set uploaded (by Matthias Mullie):
[WIP] search

https://gerrit.wikimedia.org/r/126996

Patch-For-Review

Change 195892 had a related patch set uploaded (by Matthias Mullie):
Search API endpoint

https://gerrit.wikimedia.org/r/195892

Change 126996 abandoned by Matthias Mullie:
Search

Reason:
I've split this one into 5 patches, which should make this more manageable to review. 2 of them are more Elastic/Cirrus-focussed, the rest is Flow-specific.

https://gerrit.wikimedia.org/r/195888 - Flow
https://gerrit.wikimedia.org/r/195889 - Search
https://gerrit.wikimedia.org/r/195890 - Flow
https://gerrit.wikimedia.org/r/195891 - Search
https://gerrit.wikimedia.org/r/195892 - Flow

https://gerrit.wikimedia.org/r/126996

DannyH renamed this task from Search API endpoint to U10. Search API endpoint.Apr 8 2015, 10:25 PM
DannyH renamed this task from U10. Search API endpoint to Search API endpoint.Apr 9 2015, 12:09 AM

Change 195892 merged by jenkins-bot:
Search API endpoint

https://gerrit.wikimedia.org/r/195892