Hi All,
I have a mapping in the following format .
"mappings": {
        "user_profiles": {
            "properties": {
                "firstName": {
                    "properties": {                  
                        "pan": {
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"
                        },
                        "google": {
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"
                        },
                        "fb": {
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"
                        },
                        "twiter": {
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"
                        }                 
                    }               
                },
                "lastName": {
                    "properties": {                  
                        "pan": {
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"                    
                        },
                        "google": {
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"
                        },
                        "fb": { 
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"
                        },
                        "twiter": {
                            "type": "string",
                            "analyzer": "nGramAnalyzer",
                            "search_analyzer": "whitespaceAnalyzer"
                        }                 
                    }               
                }
            }
        }
    }
i will insert data into elastic search. but the thing is that while searching i need to get names in the order of precedence.
For Ex: if the user has pan.fb,twitter. I need to display the pan first name.Is there a way to set priority to fields so top priority field will be returned?