You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "rawmanster@gmail.com" <ra...@gmail.com> on 2009/03/21 03:36:08 UTC
Random sorting results
Hi,
In the search application I'm working on I would like to prevent the
user from getting always the same search results for a certain query,
but without affecting results quality too much.
In order to do so I'm processing the hits in smaller chunks and doing
some random shuffle inside the chunk
For example, If I have a 1000 hits result set and I shuffle the
results in 50 hit chunks, I might not get the best match first (and
for my current application thats ok), but I won't get the last one
first.
What I'd like to know is if there is a better way to affect the
sorting (maybe affecting the scoring) so I can get this behaviour
without having to do the processing myself.
Any help would be appreciated.
Thanks a lot.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Random sorting results
Posted by Chris Lu <ch...@gmail.com>.
Maybe you can adjust your ranking algorithm. For example, rank the most
recent results higher?
--
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes: http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes
DBSight customer, a shopping comparison site, (anonymous per request) got 2.6 Million Euro funding!
rawmanster@gmail.com wrote:
> Hi,
> In the search application I'm working on I would like to prevent the
> user from getting always the same search results for a certain query,
> but without affecting results quality too much.
> In order to do so I'm processing the hits in smaller chunks and doing
> some random shuffle inside the chunk
> For example, If I have a 1000 hits result set and I shuffle the
> results in 50 hit chunks, I might not get the best match first (and
> for my current application thats ok), but I won't get the last one first.
> What I'd like to know is if there is a better way to affect the
> sorting (maybe affecting the scoring) so I can get this behaviour
> without having to do the processing myself.
> Any help would be appreciated.
> Thanks a lot.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org