Topic on Project:Support desk

How to make a Cirrussearch query from within php

3
148.252.132.42 (talkcontribs)

Hi, I am trying to build some functionality into an extension and I need to get the results of a query (cirrussearch query), which I know how to do in js using the API.


For this extension, I need to do that in php, so I'm planning on just doing new ApiQuery() etc.

Is that the best way, or am I missing something obvious?


Thank you

Ammarpad (talkcontribs)
148.252.132.42 (talkcontribs)

Thank you very much Ammarpad.

The CirrusSearch API is also http api, my question was more related to the fact I'm calling it from within PHP.


i.e. using the quiery api from a browser that makes sense (or the cirrussearch api for that matter), but I'm wondering if from within PHP, is the best practice way also to use the ApiQuery API directly?


I'm just asking because I have grepped the code and I see generally no instances of apis being used within the php codebase, with the exception of tests of course.


Thank you

Reply to "How to make a Cirrussearch query from within php"