Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
23 #ifndef CORE_SERVER_LUCENE_INCLUDE_LUCENE_FACET_H_
24 #define CORE_SERVER_LUCENE_INCLUDE_LUCENE_FACET_H_
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 #ifdef ALLOCATE_LUCENE_FACET_CONSTANTS
53 #define LUCENE_FACET_PREFIX GRASSROOTS_LUCENE_API
54 #define LUCENE_FACET_VAL(x) = x
55 #define LUCENE_CONCAT_VAL(x,y) = x y
58 #define LUCENE_FACET_PREFIX extern //GRASSROOTS_SERVICE_API
60 #define LUCENE_FACET_PREFIX extern //GRASSROOTS_SERVICE_API
62 #define LUCENE_FACET_PREFIX GRASSROOTS_SERVICE_API
65 #define LUCENE_FACET_VAL(x)
66 #define LUCENE_CONCAT_VAL(x,y)
GRASSROOTS_LUCENE_API void FreeLuceneFacet(LuceneFacet *facet_p)
Free a LuceneFacet.
#define GRASSROOTS_LUCENE_API
Definition: lucene_library.h:46
uint32 lf_count
Definition: lucene_facet.h:37
The keys for the Grassroots Schema.
Definition: lucene_facet.h:41
#define CONTEXT_PREFIX_SCHEMA_ORG_S
Definition: schema_keys.h:103
const LUCENE_FACET_PREFIX char *LF_COUNT_S LUCENE_FACET_VAL("count")
GRASSROOTS_LUCENE_API LuceneFacet * AllocateLuceneFacet(const char *name_s, const uint32 count)
Allocate a LuceneFacet to store search result metadata.
Definition: lucene_facet.h:34
LuceneFacet * lfn_facet_p
Definition: lucene_facet.h:44
GRASSROOTS_LUCENE_API void FreeLuceneFacetNode(ListItem *node_p)
Free a LuceneFacetNode.
ListItem lfn_node
Definition: lucene_facet.h:43
char * lf_name_s
Definition: lucene_facet.h:36
GRASSROOTS_LUCENE_API json_t * GetLuceneFacetAsJSON(const LuceneFacet *facet_p)
Get the JSON representation of a LuceneFacet.
GRASSROOTS_LUCENE_API LuceneFacet * GetLuceneFacetFromResultsJSON(const json_t *json_p)
Get a LuceneFacet from a JSON representation.
GRASSROOTS_LUCENE_API LuceneFacetNode * AllocateLuceneFacetNode(LuceneFacet *facet_p)
Allocate a LuceneFacetNode.
GRASSROOTS_LUCENE_API LuceneFacetNode * AllocateLuceneFacetNodeByParts(const char *name_s, const uint32 count)
Allocate a LuceneFacetNode.
const LUCENE_FACET_PREFIX char *LF_NAME_S LUCENE_CONCAT_VAL(CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43