I propose to extend the debbugs SOAP interface by a full text search via
the hyperestraier search engine, bundled in debbugs. I have implemented
a proof of concept on debbugs.gnu.org, see below for a test script.
The extension could be a new function Debbugs::SOAP::search_est like this:
my @results = search_est([phrase => 'armstrong AND debbugs',
skip => 10,
max => 20,
[severity => 'normal',
operator => 'STRINC',
[date => '',
order => 'NUMA',
Returns an arrayref of hashrefs which output the status for specific
sets of bugs, and the found snippets.
'phrase' is a search phrase as used by the hyperestraier search engine,
see <http://fallabs.com/hyperestraier/uguide-en.html#searchcond> for syntax.
'skip' defines how many search results shall be skipped, 'max' defines
the maximum number of results to be returned. Both values are used
for paged display.
All other hashes define a search condidition for a given attribute.
Attributes are '@cdate', '@title', '@author', 'status', 'subject',
'date', 'submitter', 'package', 'tags' or 'severity'. Their values
could be a string or a number. If an attribute has a value,
'operator' defines the comparison operator, see the hyperestraier
user guide for valid operators.
'order' is optional, it defines the sort order of the results. It
could be combined with an empty-value attribute, in this case the
attribute is not used for search but for sorting of the result. If
several hashes contain the 'order' spec, the last one will be used.
Returns a sorted set of hits; this is an array of hashes with the