MediaWiki Api- within category text search

546 Views Asked by At

While I can get a list of pages within a specific category using 'categorymembers', how do i refine the search limiting results to those containing specific text? For example i want to search the Physics category limiting results to those pages containing the text "force". Is there a way to do this or do you have to combine search term as "physics force"?

thanks

2

There are 2 best solutions below

2
On BEST ANSWER

There is no way to refine the search in this way via the API. You would have to post-process the results on the client side in whatever manner you need.

1
On

You can include category as part of search string.

Here is an example