How to do multiple field search


(Thanigaivelan) #1

Hi,

I want to do multiple field search,

i want to search sub_cat_seo_url and region , below is my trial account and trial data

http://34c512XXXXXXX.us-east-1.aws.found.io:9200/check_episodes/episode/_search?q=+sub_cat_seo_url:news+region:15&sort=pubdate_timestamp:desc

when i tried only one field search it is working , but when i tried multiple field search it is not working.

$data['mappings']['episode']['properties']['sub_cat_seo_url']['type']='string';
$data['mappings']['episode']['properties']['sub_cat_seo_url']['index']='not_analyzed';
$data['mappings']['episode']['properties']['region']['type']='string';
$data['mappings']['episode']['properties']['region']['index']='not_analyzed';

Thanks

Thanigaivelan


(Mark Walkom) #2

I have edited your post to remove the full URL as you have no security enabled on that cluster!


(system) #3