Hello,
i have following search code
if ( $location ){
$name_value_pairs['location'] = array(
'name' => 'location',
'value' => '%'.$location.'%',
'operand' => 'LIKE'
);
}
$options['metadata_name_value_pairs'] = $name_value_pairs;
$content = elgg_list_entities_from_metadata($options);
It only works case-sensitive. I would like to make it case-insensitive like the standard search function. How can i do it?
Thx for help!
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.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
You must log in to post replies.Use the 'metadata_case_sensitive' parameter: http://reference.elgg.org/engine_2lib_2metadata_8php.html#aec4b6f0b9565e3554acb9b39ef34a2ac