Add facet structures
authorDennis Schafroth <dennis@indexdata.com>
Mon, 19 Jul 2010 15:24:24 +0000 (17:24 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Mon, 19 Jul 2010 15:24:24 +0000 (17:24 +0200)
src/zoom-p.h

index 5c3ae57..a9c6b33 100644 (file)
@@ -168,6 +168,7 @@ struct ZOOM_resultset_p {
 #if ZOOM_RESULT_LISTS
 #else
     ZOOM_resultset next;
+    ZOOM_facet_field **facets;
 #endif
 };
 
@@ -188,6 +189,18 @@ struct ZOOM_record_p {
     const char *diag_set;
 };
 
+struct facet_term_p {
+    char *term;
+    int frequency;
+};
+
+struct ZOOM_facet_field_p {
+    char *facet_name;
+    int num_terms;
+    struct facet_term_p *facet_terms;
+};
+
+
 struct ZOOM_record_cache_p {
     struct ZOOM_record_p rec;
     char *elementSetName;