[Xapian-discuss] Omega Collapse option
Olly Betts
olly at survex.com
Thu Sep 8 21:28:45 BST 2005
On Thu, Sep 08, 2005 at 08:24:26PM +0100, Sam Liddicott wrote:
> All this requires putting the "unique"-ified URL fragment as a value, to
> collapse on, as a field, so you can extract it from the results to
> generate the sub-search URL and as a term so that you can restrict the
> sub-search.
Actually, you don't need it as a field as well as a value - you can use
$value{0} instead of $field{collapsekey} (assuming you're collapsing on
value 0 of course). Since the matcher will have had to read the value
anyway, there's little overhead in reading it again to display the
results.
Cheers,
Olly
More information about the Xapian-discuss
mailing list