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 Shay Sofer <sh...@checkpoint.com> on 2014/07/16 12:02:48 UTC

Solr score manager

Hi All,

I need a specific score mechanism.

I would like to sort my results based on customize scoring field.
scoring for example -



1.       If this is a new object - 100

2.       Edited - 80

3.       Recent search - 50

4.       Opened - 40
and some more actions...

And then when execute a new search they sorted based on score field.

Example:
Object 1 : opened  = 40.
Object 2: New = 100
Object 3: edited X 2 + recent search X 1 = 210.

Result:

Object 3
Object 2
Object 1

Any good article for this? Examples?
I'm using Solr with Java.

Thanks in advance,
Shay.






Fwd: Solr score manager

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
---------- Forwarded message ----------
From: Shay Sofer <sh...@checkpoint.com>
Date: Wed, Jul 16, 2014 at 6:55 PM

That’s my question :-)

How should I manage this scoring system.

I guess that I need to add new field (my_score) and update him as I want.



-----Original Message-----
From: Alexandre Rafalovitch [mailto:arafalov@gmail.com]
Sent: Wednesday, July 16, 2014 1:53 PM
To: solr-user
Subject: Re: Solr score manager

How are you storing this information in your documents?

Regards,
    Alex
On 16/07/2014 5:03 pm, "Shay Sofer" <sh...@checkpoint.com> wrote:

> Hi All,
>
> I need a specific score mechanism.
>
> I would like to sort my results based on customize scoring field.
> scoring for example -
>
>
>
> 1.       If this is a new object - 100
>
> 2.       Edited - 80
>
> 3.       Recent search - 50
>
> 4.       Opened - 40
> and some more actions...
>
> And then when execute a new search they sorted based on score field.
>
> Example:
> Object 1 : opened  = 40.
> Object 2: New = 100
> Object 3: edited X 2 + recent search X 1 = 210.
>
> Result:
>
> Object 3
> Object 2
> Object 1
>
> Any good article for this? Examples?
> I'm using Solr with Java.
>
> Thanks in advance,
> Shay.
>
>
>
>
>
>


Email secured by Check Point

Re: Solr score manager

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
How are you storing this information in your documents?

Regards,
    Alex
On 16/07/2014 5:03 pm, "Shay Sofer" <sh...@checkpoint.com> wrote:

> Hi All,
>
> I need a specific score mechanism.
>
> I would like to sort my results based on customize scoring field.
> scoring for example -
>
>
>
> 1.       If this is a new object - 100
>
> 2.       Edited - 80
>
> 3.       Recent search - 50
>
> 4.       Opened - 40
> and some more actions...
>
> And then when execute a new search they sorted based on score field.
>
> Example:
> Object 1 : opened  = 40.
> Object 2: New = 100
> Object 3: edited X 2 + recent search X 1 = 210.
>
> Result:
>
> Object 3
> Object 2
> Object 1
>
> Any good article for this? Examples?
> I'm using Solr with Java.
>
> Thanks in advance,
> Shay.
>
>
>
>
>
>