[Xapian-discuss] Sorting by date and time
Christiano Anderson
anderson at pegasus.eti.br
Thu Oct 6 20:08:35 BST 2005
Em Ter, 2005-10-04 às 19:48 +0100, Olly Betts escreveu:
> (c) Arrange that documents are indexed in exact date order (or close
> enough that you don't care about discrepancies) and then implement
> "sort by date" by using set_weighting_scheme(BoolWeight()) and
> set_docid_order(DESCENDING) - currently you'll need to patch Omega
> to do this.
This can work fine for me, the documents are indexed in exact date order
(older documents are indexed first). I still quite confused with Xapian
classes and couldn't find the right places on omega.cc to make the
changes. I've tried to implement in very different ways, but after my
changes I could hardly compile Omega and when it's sucessfully compiled,
it doesn't work. :(
I know that you are a busy man, but I would be very glad if you point
where in omega.cc I should make the changes.
Thanks a lot for any help,
cheers,
Christiano
More information about the Xapian-discuss
mailing list