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:
c56747b
)
Fix: use term factor unless disabled
author
Dennis Schafroth
<dennis@indexdata.com>
Tue, 18 Jan 2011 09:38:14 +0000
(10:38 +0100)
committer
Dennis Schafroth
<dennis@indexdata.com>
Tue, 18 Jan 2011 09:38:14 +0000
(10:38 +0100)
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
7e7a489
..
93b25ce
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-1269,10
+1269,10
@@
static int ingest_to_cluster(struct client *cl,
const char *use_term_factor_str = session_setting_oneval(sdb, PZ_TERMLIST_TERM_FACTOR);
int use_term_factor = 1;
+ // HACK: default to use term factor.
int term_factor = 1;
- if (use_term_factor_str)
+ if (use_term_factor_str && use_term_factor_str[0] != 0)
use_term_factor = atoi(use_term_factor_str);
-
if (use_term_factor) {
int maxrecs = client_get_maxrecs(cl);
int hits = (int) client_get_hits(cl);