How to support wild card search and prefix search in single QueryBuilder.
I used the matchPhrasePrefixQuery() it supporting only Prefix Search.
I tried with another one that if filedQuery(). It working as expected.It supporting both prefix and wild card search. but if the data contains special symbols its not working.
I'am using the Standard Analyzer.
Template is :
{
"sfdc_template" : {
"template" : "*",
"order": 0,
"settings" :{
},
"mappings" : {
"_default_" : {
"_source" : {"enabled" : true },
"_all" : {"enabled" : false },
"_timestamp" : {"enabled" : true, "store" : "yes"},
"sfdc_record_id" : {"type" : "string", "store" : "yes", "index" : "not_analyzed"},
"sfdc_object_name" : {"type" : "string", "store" : "yes", "index" : "not_analyzed"},
"sfdc_field_name" : {"type" : "string", "store" : "yes", "index" : "not_analyzed"}
}
}
}
}