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 _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

