You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Amit <am...@techepoch.com> on 2008/10/23 17:02:03 UTC

Ranking result on the basis of field value irrespective of score

Hi All,

 

How  we can do the ranking on the basis of specific field value irrespective
of score in solr?

 

For example:

                           Let say field “language” which content values
like “German,English,French,Chines,Arabic”.

          So I want English language document come first irrespective of
score.

 

Thanks in advance any kind reply.

 

Regards,

 Amit

 



No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.549 / Virus Database: 270.8.2/1740 - Release Date: 22-10-2008
19:24
 

Re: Ranking result on the basis of field value irrespective of score

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Create your languages field (or a copy) in such a way that sort gives you
the order you want. Then just query Solr with "sort=language asc" parameter.

2008/10/23 Amit <am...@techepoch.com>

> Hi All,
>
>
>
> How  we can do the ranking on the basis of specific field value
> irrespective
> of score in solr?
>
>
>
> For example:
>
>                           Let say field "language" which content values
> like "German,English,French,Chines,Arabic".
>
>          So I want English language document come first irrespective of
> score.
>
>
>
> Thanks in advance any kind reply.
>
>
>
> Regards,
>
>  Amit
>
>
>
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.549 / Virus Database: 270.8.2/1740 - Release Date: 22-10-2008
> 19:24
>
>


-- 
Regards,
Shalin Shekhar Mangar.