Opened 17 years ago

Closed 4 years ago

#235 closed enhancement (wontfix)

store the sort specification in the option map instead of separate variables

Reported by: tv+xapian.org Owned by: Olly Betts
Priority: normal Milestone: 1.4.x
Component: Omega Version: SVN trunk
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description (last modified by Olly Betts)

Hi,

the patch at http://people.debian.org/~tviehmann/list-search/xapian_omega_make_sortstuff_options.diff moves the sort specification into the option map and removes the sort_* variables in omega.h. This makes the sort specification better accessible from omegascript. Quite possibly, it could be improved by doing the same to docid_order.

The goal immediately at hand is to reduce the amount of changes to omega in the gmane/Debian list search patches, here to move the sort handling into the query templates.

Kind regards

Thomas

URL: http://people.debian.org/~tviehmann/list-search/xapian_omega_make_sortstuff_options.diff

Attachments (1)

xapian_omega_make_sortstuff_options.diff (3.5 KB ) - added by tv+xapian.org 17 years ago.
patch as described

Download all attachments as: .zip

Change History (13)

by tv+xapian.org, 17 years ago

patch as described

comment:1 by Olly Betts, 17 years ago

op_sys: LinuxAll
Owner: changed from New Bugs to Olly Betts
rep_platform: PCAll

comment:2 by Olly Betts, 17 years ago

Status: newassigned

comment:3 by Olly Betts, 17 years ago

Operating System: All
Summary: store the sort specifation in the option map instead of seperate variablesstore the sort specification in the option map instead of separate variables

Yes, I think docid_order should be too.

comment:5 by Olly Betts, 17 years ago

Description: modified (diff)
Milestone: 1.1.0

Thomas: Would you mind updating this to do the same with docid_order?

comment:6 by Olly Betts, 16 years ago

Milestone: 1.1.01.1.1

This isn't an incompatible change, so bumping to 1.1.1.

comment:7 by Olly Betts, 16 years ago

I've just been looking at applying this.

I hadn't thought about this before, but this is a bit problematic if we expect these to be usefully modifiable from the template (which I assume is the point), the interaction between CGI variables and $set{OPT,VALUE} isn't very helpful, and I'm not sure how to avoid this. If they aren't modifiable, it might be better to add new OmegaScript commands as that's how similar cases are currently handled. Or we could add read-only options perhaps.

Are the patches for the Debian list search available anywhere? I couldn't see a link on the Debian list search page.

I can see that providing more control here would be nice, but a concrete example would help me think about this.

comment:8 by Olly Betts, 16 years ago

Milestone: 1.1.11.1.3

comment:9 by Olly Betts, 15 years ago

Milestone: 1.1.31.2.0

Punting on this one for now.

comment:10 by tv, 15 years ago

I do not have access to the current Debian list search templates, sorry. Given that the rationale is a bit dubious, maybe closing this until someone needs it again is the best idea. I don't think I can do this myself, though.

comment:11 by Olly Betts, 12 years ago

Milestone: 1.2.x1.3.x

comment:12 by Olly Betts, 9 years ago

Milestone: 1.3.x1.4.x

I think it's worth keeping this open as a placeholder, but it's not a blocker for 1.4.0.

comment:13 by Olly Betts, 4 years ago

Resolution: wontfix
Status: assignedclosed

I've since become involved in maintaining the Debian search list search, and it's been using the packaged version of Omega for several years so I think whatever the motivation for this was is no longer relevant there. We also don't have a plan for how to implement this in a useful way, so I think it's probably best to close.

Note: See TracTickets for help on using tickets.