Ticket #14 (new defect)

Opened 3 years ago

namazu --sort=date inverted meaning? also --sort=field:date not working for mailnews files

Reported by: ot@zoy.org Assigned to: knok
Priority: lowest Milestone:
Component: namazu-2.0 Version:
Severity: minor Keywords:
Cc:

Description

Hello,

Has the behavior of --sort=date changed in 2.0.15? For the past few years, we were using --sort=date to get the most recent results first, and --sort=date --ascending to get the oldest results first. With 2.0.15 it seems like this has been inverted. Is it on purpose, or is it a bug?

Also, I tried --sort=field:date, which is apparently a new feature of 2.0.15, but it does not give expected results for my indexes of mailnews files. For example, the query:

$  /usr/bin/namazu --sort=field:date -n 10 "hello" . | grep "Date:" 
Date: Wed, 9 Nov 2005 13:07:00 +0900 
Date: Wed, 9 Jul 2003 13:29:52 -0400 (EDT) 
Date: Wed, 8 Mar 2000 16:37:35 -0500 (EST) 
Date: Wed, 8 Jun 2005 16:32:56 +0900 
Date: Wed, 8 Aug 2001 23:25:46 -0400 (EDT) 
Date: Wed, 7 Mar 2001 11:23:14 +0200 
Date: Wed, 7 Jan 2004 18:03:49 -0500 
Date: Wed, 6 Nov 2002 20:52:38 +0100 
Date: Wed, 6 Nov 2002 11:36:07 +0100 
Date: Wed, 6 Nov 2002 04:32:35 -0500 (EST) 

Which is... not really sorted with the Date: Field. I tried reindexing, without seeing any change. Am I doing something wrong?

Thank you,

[[ setup: namazu 2.0.15 from deb http://www.namazu.org/debian stable main ]]

-- olivier