-/* $Id: index.h,v 1.143 2005-06-09 10:39:53 adam Exp $
+/* $Id: index.h,v 1.145 2005-06-23 06:45:46 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
void *codec_handle;
};
+#if NATTR
+
+#else
struct sortKeys {
int buf_used;
int buf_max;
char *buf;
};
+#endif
struct zebra_register {
char *name;
int active; /* 0=shutdown, 1=enabled and inactive, 2=activated */
struct recKeys keys;
-#if 1
- struct sortKeys sortKeys;
+#if NATTR
+ struct recKeys sortKeys;
#else
- struct sortKey *sortKeys;
+ struct sortKeys sortKeys;
#endif
char **key_buf;
size_t ptr_top;
const char *term, int length_term, const char *flags,
int preserve_position, int term_type, NMEM rset_nmem,
struct rset_key_control *kctrl, int scope,
- struct ord_list *ol, int reg_type);
+ struct ord_list *ol, int reg_type,
+ zint hits_limit, const char *term_ref_id);
void resultSetAddTerm (ZebraHandle zh, ZebraSet s, int reg_type,
const char *db, int set,
void extract_flushRecordKeys (ZebraHandle zh, SYSNO sysno,
int cmd, struct recKeys *reckeys);
+#if NATTR
+void extract_flushSortKeys (ZebraHandle zh, SYSNO sysno,
+ int cmd, struct recKeys *skp);
+#else
void extract_flushSortKeys (ZebraHandle zh, SYSNO sysno,
int cmd, struct sortKeys *skp);
+#endif
void extract_schema_add (struct recExtractCtrl *p, Odr_oid *oid);
void extract_token_add (RecWord *p);
int explain_extract (void *handle, Record rec, data1_node *n);