If you are doing a priority based search.Display the search result based on the exact or partial match, Then its a trivial task.You need to look in to Lucene Api`s, as i am doing it now.Will let you know if possible if get any solution.
Or if you have display only 10 records then you can set limit on the search result.Look into the SearchParameter Api(setLimit()).