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 created this task.Oct 27 2015, 11:01 PM
TJones raised the priority of this task from to High.
TJones updated the task description. (Show Details)
TJones added subscribers: TJones, EBernhardson, dcausse.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 27 2015, 11:01 PM
TJones set Security to None.Oct 27 2015, 11:06 PM
TJones added a subscriber: Smalyshev.

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

Deskana closed this task as Resolved.Dec 4 2015, 5:18 AM
Deskana moved this task from Needs Reporting to Resolved on the Discovery-Search (Current work) board.
Deskana added a subscriber: Deskana.