Gunnar wrote:
Hi,
By default the results of wildcard searches have a constant score. You may give the recommendation from http://markmail.org/message/psgn7ag4ktld4za2 a try to change that. To access the scores of your query results, use ProjectionConstants.SCORE as described in the reference guide (http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html_single/#d0e5630).
Hth,
--Gunnar
Hi Gunnar, Sanne
I just tried that but now the partial matches are coming up on top instead of exact matches !
For Query "Gandalf*" , Search results are ->
Gandalfi Test M Test L
Gandalf Test M Test L
Gandalf Test M Test L
They should be the other way around. plain reverse sort wont help as we want only top 10 results, so exact matches might not even come up in top 10.
Sanne,
combining two queries won't help as now we are indexing the full name of a customer(first name + middle name + last name)
so a normal query will not give any results. so for above example just "gandalf" will not give any results.