Hi all,

I've noticed some peculiar scoring issues going on in my application. For
example, I have a field that is multivalued and has several records that
have the same value. For example,

<arr name="references">
  <str>National Society of Animal Lovers</str>
  <str>Nat. Soc. of Ani. Lov.</str>
</arr>

I have about 300 records with that exact value.

Now, when I do a search for references:(national society animal lovers), I
get the following results:

<id>252</id>
<id>159</id>
<id>82</id>
<id>452</id>
<id>105</id>

When I do a search for references:(nat soc ani lov), I get the results
ordered differently:

<id>510</id>
<id>122</id>
<id>501</id>
<id>82</id>
<id>252</id>

When I load all the records that match, I notice that at some point, the
scores aren't the same but differ by only a little:

1.471928 in one and the one before it was 1.471929

I turned on debugQuery=on and the scores for each of those two records are
exactly the same. Therefore, I think there is some kind of rounding error
going on.

Is there a way I can fix this?

Alternatively, can I sort by a rounded version of the score? I tried
sort=round(score,5) but I get the following message:

Can't determine Sort Order: 'round(score,5) ', pos=5

I also tried sort=sum(score,1) just to see if I was using round
incorrectly but I get an error message there too saying score is not a
recognized field.

Please help!

Thanks,

Brian Lamb

Reply via email to