Thanks Gora. Inspired by the link, I've solved case 1 by putting it as a
exact match OR prefix match, such as "BAC" OR "BAC*".
But I can not find solution for case 2 and case 3 below.
Is there anyone can provide suggestions?

Thanks,

-----Original Message-----
From: Gora Mohanty [mailto:g...@mimirtech.com] 
Sent: Monday, December 26, 2011 12:33 PM
To: solr-user@lucene.apache.org
Subject: Re: sort issue in Solr

On Mon, Dec 26, 2011 at 8:59 AM, Robert Yu <robert...@morningstar.com>
wrote:
> I want Solr return results by relevancy, but it seems it does not make

> sense. For example, partial match does not return before exact match.
> Even I enabled term length in schema definition.
[...]

There are various factors that can affect Solr relevance.
* You should try your query with debugQuery=1 added,
   which will show you how the score of each document
   is being calculated.
* Please also take a look at
  http://wiki.apache.org/solr/SolrRelevancyCookbook

Regards,
Gora

Reply via email to