I am using PHP for creating this code
For example, if I am using "Doctor" its work well but if someone tries to "Doc" It does not give you anything,
{Data will be coming from Salesforce}
Please help me to find a proper solution for this matter
Thanks
Be aware that wildcard queries can use an enormous amount of memory and perform very badly
I would be very careful in using wildcards query.
You should take another look at match phrase prefix (btw it worked for me when I specified incomplete word). The advantae with match phrase prefix is that you can configure how many expansions you want, hence the performance can be easily controlled.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.