projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5957bba
)
Reset hits, record_offset later in client_start_search
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 10 Nov 2011 10:13:20 +0000
(11:13 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 10 Nov 2011 10:13:20 +0000
(11:13 +0100)
Because the search may not be executed anyway - if search is already
done and no native sorting is available.
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
4fe301f
..
5100f80
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-749,8
+749,6
@@
void client_start_search(struct client *cl)
assert(link);
- cl->hits = 0;
- cl->record_offset = 0;
cl->diagnostic = 0;
if (extra_args && *extra_args)
@@
-848,6
+846,8
@@
void client_start_search(struct client *cl)
}
}
}
+ cl->hits = 0;
+ cl->record_offset = 0;
rs = ZOOM_connection_search(link, q);
ZOOM_query_destroy(q);
ZOOM_resultset_destroy(cl->resultset);