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 Rajesh <ra...@aspiresys.com> on 2015/03/02 11:14:00 UTC
Sorting in SOLR
Hi,
I want to sort my results based on my query string.
For example, If I query by "Test Street", My results should be sorted in
such a way that the records containing both words should come first and the
records containing Test should come and the records containing street should
be displayed.
How Can I achieve this.
Thanks in advance,
Rajesh
--
View this message in context: http://lucene.472066.n3.nabble.com/Sorting-in-SOLR-tp4190294.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Sorting in SOLR
Posted by Aman Tandon <am...@gmail.com>.
Hi,
You can boost the results of "Test street" by 5, boost the test by 3 and
boost street by 1.5.
With Regards
Aman Tandon
On Mon, Mar 2, 2015 at 3:44 PM, Rajesh <ra...@aspiresys.com>
wrote:
> Hi,
>
> I want to sort my results based on my query string.
>
> For example, If I query by "Test Street", My results should be sorted in
> such a way that the records containing both words should come first and the
> records containing Test should come and the records containing street
> should
> be displayed.
>
> How Can I achieve this.
>
> Thanks in advance,
> Rajesh
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Sorting-in-SOLR-tp4190294.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>