Hi Anyone help me to build a suggester auto complete based on multiple fields? There are two fields in my schema. Category and Subcategory and I'm trying to build suggester based on these 2 fields. When the suggestions result, how can I distinguish from which filed it come from?
I used a copyfields to combine multiple fields into single field and use that field in suggester But this will return the combined result of category and subcategory. I can't differentiate the results that fetch from which field These are the copyfields for autocomplete <copyField source="category" dest="businessAutoComplete"/> <copyField source="subcategory" dest="businessAutoComplete"/> Suggestions should know from which field its from. For Eg my suggester returns 5 results for the keyword "schools". In that result 2 from the category field and 3 from the subcategory field. Schools (Category) Primary Schools (Subcategory) Driving Schools (Subcategory) Day care and play school (Subcategory) Day Care/Play School (Category) Is there any way to build like this ?? -- [image: hifx_logo] <http://hifx.in/> *dhanesh s.R * Team Lead t: (+91) 484 4011750 (ext. 712) | m: (+91) 99 4 6666 703 e: dhan...@hifx.in | w: www.hifx.in <https://www.facebook.com/HiFXIT> <https://twitter.com/HiFXTweets> <https://www.linkedin.com/company/2889649> <https://plus.google.com/104259935226993895226/about> -- ------------------------------ IMPORTANT: This is an e-mail from HiFX IT Media Services Pvt. Ltd. Its content are confidential to the intended recipient. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. It may not be disclosed to or used by anyone other than its intended recipient, nor may it be copied in any way. If received in error, please email a reply to the sender, then delete it from your system. Although this e-mail has been scanned for viruses, HiFX cannot ultimately accept any responsibility for viruses and it is your responsibility to scan attachments (if any). Before you print this email or attachments, please consider the negative environmental impacts associated with printing.