Our front-desk officer selects from the list of Products by searching through typing. Consider following six options:
Hepatitis B Virus (HBV)
Hepatitis B Virus (HBV DNA Quantitative) - PCR
Hepatitis B Virus (HBV DNA Qualitative) - PCR
Hepatitis C (HCV)
Hepatitis C Virus (HCV RNA)(Qualitative) - PCR
Hepatitis C Virus (HCV RNA) (Quantitative) - PCR
In order to search for the second product “Hepatitis B Virus (HBV DNA Quantitative) - PCR”, he has to type “Hepatitis B Virus (HBV DNA quan” then the maximum-filtered result appears.
What the user wants is to type ‘HBV PCR’, and the auto-complete list shows all those records containing ‘HBV’ or ‘PCR’ in the title at any position. Can it be done? If so, which method of Product class needs to be changed?
In fact, we have products which have many words matching to each other. We want to filter the results in the auto-complete based on the words typed in any order rather than the order in which they actually appear - as the user is unaware of the actual order of words in the name.