added matching in url field in Table_API_p search

pull/1/head
Michael Peter Christen 11 years ago
parent 691d7e70fa
commit dc38d35986

@ -46,7 +46,7 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
These recorded actions can be used to repeat specific actions and to send them
to a scheduler for a periodic execution.
</p>::#(/inline)#
#(showtable)#::
#(showtable)#::
<form action="Table_API_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8" id="apilist">
<fieldset>
<legend><label for="apilist">Recorded Actions</label></legend>

@ -245,7 +245,7 @@ public class Table_API_p {
boolean dark = true;
boolean scheduledactions = false;
int c = 0;
String type, comment;
String type, comment, url;
// first prepare a list
while (mapIterator.hasNext()) {
r = mapIterator.next();
@ -257,7 +257,8 @@ public class Table_API_p {
continue;
}
comment = UTF8.String(r.get(WorkTables.TABLE_API_COL_COMMENT));
if (!query.matcher(comment).matches()) {
url = UTF8.String(r.get(WorkTables.TABLE_API_COL_URL));
if (!(query.matcher(comment).matches() || query.matcher(url).matches())) {
continue;
}
if (c >= startRecord) {

Loading…
Cancel
Save