]> mj.ucw.cz Git - libucw.git/commit
Added secondary sorting (i.e., breaking ties when two documents have the same Q)
authorMartin Mares <mj@ucw.cz>
Sat, 20 Apr 2002 15:09:41 +0000 (15:09 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 20 Apr 2002 15:09:41 +0000 (15:09 +0000)
commit157acec25f2e60c76607edc3d62cf23fe47f4efe
treedc97eba5503f0e385a0e7fb80d108e29da16532d
parent545e490d1b044e8453c54a62b64e4da0d12bee65
Added secondary sorting (i.e., breaking ties when two documents have the same Q)
on any of the custom attributes. Just define CUSTOM_SORTING in lib/custom.h.

I've also removed secondary sorting of result heap by site ID inside refs.c
-- according to my best knowledge it wasn't required anywhere.

Maybe we can remove the CUSTOM_SORTING switch and just leave the sec_sort_key
in struct result_note initialized to zero, but it would cost us 4 bytes per
result_note which I wanted to avoid.
lib/custom.h
lib/index.h