-/* $Id: recctrl.h,v 1.15 2006-04-26 11:12:31 adam Exp $
+/* $Id: recctrl.h,v 1.16 2006-05-02 08:27:43 marc Exp $
Copyright (C) 1995-2006
Index Data ApS
char *encoding; /* preferred character encoding */
zint localno; /* local id of record */
int score; /* score 0-1000 or -1 if none */
+ int staticrank; /* static rank >= 0, 0 if none */
int recordSize; /* size of record in bytes */
char *fname; /* name of file (or NULL if internal) */
data1_handle dh;
-/* $Id: retrieve.c,v 1.38 2006-04-25 13:52:38 adam Exp $
+/* $Id: retrieve.c,v 1.39 2006-05-02 08:27:43 marc Exp $
Copyright (C) 1995-2005
Index Data ApS
}
}
retrieveCtrl.localno = sysno;
+ retrieveCtrl.staticrank = recordAttr->staticrank;
retrieveCtrl.score = score;
retrieveCtrl.recordSize = recordAttr->recordSize;
retrieveCtrl.odr = stream;
-/* $Id: alvis.c,v 1.9 2006-04-26 11:12:31 adam Exp $
+/* $Id: alvis.c,v 1.10 2006-05-02 08:27:43 marc Exp $
Copyright (C) 1995-2005
Index Data ApS
window_size = atoi(schema->include_snippet);
params[0] = 0;
- set_param_str(params, "schema", esn, p->odr);
+ set_param_int(params, "id", p->localno, p->odr);
if (p->fname)
set_param_str(params, "filename", p->fname, p->odr);
+ if (p->staticrank >= 0)
+ set_param_int(params, "rank", p->staticrank, p->odr);
+ set_param_str(params, "schema", esn, p->odr);
if (p->score >= 0)
set_param_int(params, "score", p->score, p->odr);
set_param_int(params, "size", p->recordSize, p->odr);
- set_param_int(params, "id", p->localno, p->odr);
if (window_size >= 0)
set_param_xml(params, "snippet", snippet_doc(p, 1, window_size),
-/* $Id: xslt.c,v 1.19 2006-04-26 13:27:16 marc Exp $
+/* $Id: xslt.c,v 1.20 2006-05-02 08:27:43 marc Exp $
Copyright (C) 1995-2005
Index Data ApS
window_size = atoi(schema->include_snippet);
params[0] = 0;
- set_param_str(params, "schema", esn, p->odr);
+ set_param_int(params, "id", p->localno, p->odr);
if (p->fname)
set_param_str(params, "filename", p->fname, p->odr);
+ if (p->staticrank >= 0)
+ set_param_int(params, "rank", p->staticrank, p->odr);
+ set_param_str(params, "schema", esn, p->odr);
if (p->score >= 0)
set_param_int(params, "score", p->score, p->odr);
set_param_int(params, "size", p->recordSize, p->odr);
- set_param_int(params, "id", p->localno, p->odr);
if (window_size >= 0)
set_param_xml(params, "snippet", snippet_doc(p, 1, window_size),