From: Jim C. <gre...@yg...> - 2002-06-12 11:51:04
|
Budd, Sinclair's bits of Tue, 11 Jun 2002 translated to: >I am using Dig 3.2.0b4-20020505 . >I do not seem to be able to order the results by the use of >search_results_order configuration attribute. >such as search_results_order: www.cts * >Is there anything I can do to rectify this. It appears that a bit of the code associated with that functionality broke at some point. I am attaching a patch that seems to fix the problem. The patch is against the htdig-3.2.0b4-20020609 snapshot. It is just my best guess at a reasonable fix, so use at your own risk and all that ;) The patch addresses two problems that I found. The first was that in Display::buildMatchList(), the call to matches.Add() was always passing an empty string for the URL. The second was that the value returned from MatchArea::Match() was always opposite of what it should have been. Jim |