case studywhat disease is thatin searchbodywhich has json structureyou specify the fields you' like to see returnedin this case the name of the disease should suffice you use the query string syntax to search in all the indexed fieldsfulltexttitleand name by adding you can give each field weight if symptom occurs in the titleit' five times more important than in the open textif it occurs in the name itselfit' considered ten times as important notice how "joint painis wrapped in pair of quotation marks if you didn' have the "signsjoint and pain would have been considered as two separate keywords rather than single phrase in elasticsearch this is called phrase matching let' look at the results in figure lupus is not in the top diseases returned diseases found figure lupus first search with results figure shows the top three results returned out of matching diseases the results are sorted by their matching scorethe variable _score the matching score is no simple thing to explainit takes into consideration how well the disease matches your query and how many times keyword was foundthe weights you gaveand so on currentlylupus doesn' even show up in the top three results luckily for youlupus has another distinct symptoma rash the rash doesn' always show up on the person' facebut it does happen and this is where lupus got its namethe face rash makes people vaguely resemble wolf your patient has rash but not the signature rash on the faceso add "rashto the symptoms without mentioning the face "query"'+fatigue+fever+"joint pain"+rash'