Please help me! I am very new in Elgg and i am facing a search problem in elgg web service. I want to get all search result via elgg web service. I created other APIs and that work fine but search one don't work. my elgg version is 2.3.5. I use below code in my web service :
elgg_register_event_handler('init', 'system', 'hello_world_page_handler');
function hello_world_page_handler(){
}
function get_search_result($q){ $options = [ 'type' => 'object', 'query' => $q, 'search_type' => 'all' ]; return elgg_list_entities($options, 'elgg_search'); }
but it's return:
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Rohit Gupta@Rohit_1990_3676

Rohit Gupta - 0 likes
You must log in to post replies.This might help you
https://github.com/rohit1290/elgg_with_rest_api/blob/master/lib/search.php