Page MenuHomePhabricator

Enhance runSearch.php to output info needed for Relevance Lab
Closed, ResolvedPublic

Description

runSearch.php should optionally output the following info:

  • query: the query
  • totalHits: total number of hits found
  • hits: array of results with pageId, title, and snippets (the number of displayed result should be 20 by default)

Default operation should not change.

Output should be in a reasonable JSON format, on a single line. Investigate whether we need an additional library to write valid JSON, given the complexity of the output.

Event Timeline

TJones raised the priority of this task from to High.
TJones updated the task description. (Show Details)
TJones added subscribers: TJones, EBernhardson, dcausse.

Change 250441 had a related patch set uploaded (by EBernhardson):
Extend output of runSearch.php

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

Change 250441 merged by jenkins-bot:
Extend output of runSearch.php

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