Change semantics of rank lead.
[pazpar2-moved-to-github.git] / src / session.h
index b6b3ca2..45fdbb3 100644 (file)
@@ -163,7 +163,7 @@ enum pazpar2_error_code session_search(struct session *s, const char *query,
                                        const char *maxrecs,
                                        const char *filter, const char *limit,
                                        const char **addinfo,
-                                       const char *sort_field, int increasing);
+                                       struct reclist_sortparms *sort_parm);
 struct record_cluster **show_range_start(struct session *s,
                                          struct reclist_sortparms *sp,
                                          int start,
@@ -196,6 +196,7 @@ void session_log(struct session *s, int level, const char *fmt, ...)
 struct session_sorted_results {
     const char *field;
     int increasing;
+    int position;
     struct session_sorted_results *next;
 };