SearchAnythingByNamespace
De Semantic MediaWiki - Sandbox
http://wikimedia.7.x6.nabble.com/seems-broken-td5058385.html
[[:+]] as a condition searches for any object value (which means not only pages) with an assigned NS_MAIN namespace.
{{#ask: [[:+]] |limit=5 |format=table }}
Debug outputElasticStore{ "smw": { "query": "[[:+]]", "sort": { "": "ASC" }, "metrics": { "query size": 1, "query depth": 0 }, "description_log": [ { "NamespaceDescription": "[[:+]]" } ] }, "elastic": [ { "index": "smw-data-db9910120150926-02100_", "body": { "_source": false, "from": 0, "size": 6, "query": { "constant_score": { "filter": { "bool": { "filter": { "term": { "subject.namespace": 0 } } } } } }, "sort": [ { "subject.sortkey.sort": { "order": "asc" }, "subject.title.sort": { "order": "asc" } } ] } }, { "_shards": { "total": 1, "successful": 1, "failed": 0 }, "valid": true, "explanations": [ { "index": "smw-data-db9910120150926-02100_-v1", "valid": true, "explanation": "ConstantScore(#subject.namespace:[0 TO 0])" } ] } ] }