; >Erik
> >
> >
> >
> > >
> > > -Chris
> > >
> > >
> > > On Thu, 14 Oct 2004 12:42:37 -0400, Richard Alpert
> > > <[EMAIL PROTECTED]> wrote:
> > >> Oh, yeah, of course. I'm sorry, I wasn't re
gt;
> >> Richard
> >>
> >>
> >>
> >>
> >> -Original Message-
> >> From: Chris Fraschetti [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, October 14, 2004 12:42 PM
> >> To: Richard Alpert
> >> Subject: Re:
ichard Alpert
Subject: Re: sorting and score ordering
Richard, thank you, but i would need the score to be changed inside
lucene in order for the sort to work properly... my earlier questions
was in regards to rounding the score internally in order to allow for
a secondary sort to take hold when simila
>
>
>
> -Original Message-
> From: Chris Fraschetti [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 14, 2004 12:42 PM
> To: Richard Alpert
> Subject: Re: sorting and score ordering
>
> Richard, thank you, but i would need the score to be changed insid
Is there a way to generalize the score that lucene is comparing ? I.e.
round it off to say a precision of 0.## ? In order to make this sort
work better with 'duplicate' values? (by my terms... hits that have
scores within within a certain distance of eachother.)
-Chris
On Thu, 14 Oct 2004 11:27:
On Oct 13, 2004, at 5:40 PM, Chris Fraschetti wrote:
and finally if i do
SortField score_sort = ScoreField.FIELD_SCORE;
SortField rank_sort = new SortField(RANK_FIELD, true);
SortField[] sort_fields = {score_sort, rank_sort};
Sort sort = new Sort(sort_fields);
hits = searcher.search(query, sort
If i do the following...
SortField score_sort = ScoreField.FIELD_SCORE;
Sort sort = new Sort(score_sort);
hits = searcher.search(query, sort);
I get the results orderd by the lucene score.
also, if i do...
SortField rank_sort = new SortField(RANK_FIELD, true);
Sort sort = new Sort(rank_sort);
h
Use SortField.FIELD_SCORE as the first element in the SortField[] when you
pass it to sort method.
Praveen
- Original Message -
From: "Chris Fraschetti" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 2004
Will do.
My other question was: the 'score' for a page as far as I know, is
only accessible post-search... and is not contained in a field. How
can I specift the score as a sort field when there is no field 'score'
?
-Chris
On Wed, 13 Oct 2004 21:06:14 +0200, Daniel Naber
<[EMAIL PROTECTED]> wr
On Wednesday 13 October 2004 20:44, Chris Fraschetti wrote:
> I haven't seen an example on how to apply two sorts to a search.. can
> you help me out with that?
Check out the documentation for Sort(SortField[] fields) and SortField.
Regards
Daniel
--
http://www.danielnaber.de
---
Paul Elschot wrote:
Along with that, is there a simple way to assign a new scorer to the
searcher? So I can use the same lucene algorithm for my hits, but
tweak it a little to fit my needs?
There is no one to one relationship between a seacher and a scorer.
But you can use a different Similarity i
I haven't seen an example on how to apply two sorts to a search.. can
you help me out with that?
-Chris
On Wed, 13 Oct 2004 20:03:05 +0200, Daniel Naber
<[EMAIL PROTECTED]> wrote:
> On Wednesday 13 October 2004 19:53, Chris Fraschetti wrote:
>
> > Is there a way I can (without recompiling) ...
On Wednesday 13 October 2004 19:53, Chris Fraschetti wrote:
> Is there a way I can (without recompiling) ... make the score have
> priority and then my sort take affect when two results have the same
> rank?
>
> Along with that, is there a simple way to assign a new scorer to the
> searcher? So I c
On Wednesday 13 October 2004 19:53, Chris Fraschetti wrote:
> Is there a way I can (without recompiling) ... make the score have
> priority and then my sort take affect when two results have the same
> rank?
You can just (explicitly) sort by score and use some other field as a
second sort key.
Is there a way I can (without recompiling) ... make the score have
priority and then my sort take affect when two results have the same
rank?
Along with that, is there a simple way to assign a new scorer to the
searcher? So I can use the same lucene algorithm for my hits, but
tweak it a little to
As far as my testing showed, the sort will take priority, because it's
basically an opt-in sort as opposed to the defaulted score sort. So
you're basically displaying a sorted set over all your results as
opposed to sorting the most relevant results.
Hope this helps
Nader Henein
Chris Fraschett
If I use a Sort instance on my searcher, what will have priority?
Score or Sort? Assuming I have a pages with .9, .9, and .5 scores, ...
if the .5 has a higher 'sort' value, will it return higher than one of
the .9 lucene score values if they are lower?
--
17 matches
Mail list logo