I have an index of college with fields college_name,short_form,city_name,state_name.
suppose i search for the string 'college of' and want to get :
'college of enginners' above 'indian college of law' and 'punjab college of commerce'.
You could for instance add this query in a should clause of your main boolean query and set the boost to something high in order to ensure that hits with a field where the first word is "college" are ranked higher.
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.