-void ranking_query(int lineno, ZebraHandle zh, char *query,
- int exphits, char *firstrec, int firstscore );
+int tl_ranking_query(ZebraHandle zh, char *query,
+ int exphits, char *firstrec, int firstscore
+ ) GCC_ATTRIBUTE((warn_unused_result));
+
+/**
+ * meta_query makes a query, checks number of hits, and for
+ * checks that the all records in result set has the proper identifiers (ids)
+ */
+int tl_meta_query(ZebraHandle zh, char *query, int exphits,
+ zint *ids
+ ) GCC_ATTRIBUTE((warn_unused_result));
+
+/**
+ * if filter given by name does not exist, exit nicely but warn in log
+ */
+void tl_check_filter(ZebraService zs, const char *name);