Scoring function in results

Hi All
I have few docs in my es index where the searching performing field is analyzed i am searching some pattern but i am not getting how es is prioritising the results i have observed following priority .

most matches will come with highest score.
term frequency in that sentence
special character contained sentence etc..

so is there any priority table in es to know how scoring function list of results .please help me in this

Thanks
phani