Andreas Korth wrote:
> On 23.08.2007, at 14:32, Mlynco Mlynco wrote:
>
>> I am using acts_as_ferret and have a problem with scoring. I would
>> like
>> to organize it in such way that, if any of the searched terms fits, I
>> get 1.0 score as a result. I will explain it on the example.
>
> Sounds to me like the wrong approach. You won't get Ferret to score a
> document with 1.0 if there are more terms in the document than you
> search for.
>
>> I have in index:
>>
>> a) "one two three four"
>> b) "one two three"
>> c) "one two"
>> d) "one"
>>
>> When I search for "one" I would like to get 1.0 score for all of
>> indexed
>> elements. When I search for "one two" I get 1.0 score for a),b),c).
>
> Question is: What do you actually want to achieve? Why do you want
> the documents to be scored this way? I'm sure there's a better way to
> do it.
>
> You might want to check out phrase queries (i.e. using quotes) and
> boolean operators and see if a combination of them might work for you.
>
> Cheers,
> Andreas
Andreas,
Probably you are right. What I don't what to do is to decrease the score
for elements which have some additional terms.
So, ie I am looking for a recipe. I have indexed some of them with such
ingredients:
recipe1: "beef"
recipe2: "onion beef chicken"
recipe3: "onion beef chicken tomato"
Looking for a "beef" I wouldn't like to "punish" recipe2 and recipe3
because they are richer, I would like to treat them in the same way.
Actually the score does not have to be 1.0, but I would like it to be
the same for all recipes mentioned above.
Any suggestions?
Thanks a lot,
mlynco
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk