[Xapian-discuss] Patch to enable numeric sorting in Omega using scriptindex

Olly Betts olly at survex.com
Mon Apr 28 02:09:00 BST 2008


On Sun, Apr 27, 2008 at 06:34:29PM -0500, Yevgeny Binder wrote:
> Here is a quick patch to perform numeric sorting instead of the  
> default string sort in Omega 1.0.6. This must be decided at index  
> time, and is specified by replacing VALUE= with NUMERIC= in the  
> database spec file (this patch is for scriptindex only). A slightly  
> better approach, other than redesigning Omega (or Xapian?) to allow  
> setting the sort method at search time, would be to use NUMERIC as a  
> flag that modifies the VALUE= action, but I was just looking for an  
> easy hack. I hope to see this patch, or something like it, added to  
> the next release.

The 1.0 branch is supposed to now be "bug fixes only", but something
like this can certainly go in 1.1.0.

Could you regenerate the patch with "diff -u" and attach it to a new
ticket in trac?

Cheers,
    Olly



More information about the Xapian-discuss mailing list