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.
lucene_document.h File Reference
#include "jansson.h"
#include "lucene_library.h"
#include "typedefs.h"
Include dependency graph for lucene_document.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  LuceneDocument
 A datatype for holding Lucene Documents. More...
 

Functions

GRASSROOTS_LUCENE_API void ClearLuceneDocument (LuceneDocument *doc_p)
 
GRASSROOTS_LUCENE_API size_t GetDocumentFieldSize (const LuceneDocument *doc_p, const char *key_s)
 
GRASSROOTS_LUCENE_API bool IsDocumentFieldMultiValued (const LuceneDocument *doc_p, const char *key_s, size_t *num_values_p)
 
const GRASSROOTS_LUCENE_API char * GetDocumentFieldValue (const LuceneDocument *doc_p, const char *key_s)
 
const GRASSROOTS_LUCENE_API char * GetDocumentFieldMultiValue (const LuceneDocument *doc_p, const char *key_s, size_t index)
 
GRASSROOTS_LUCENE_API json_t * GetCopyOfDocuemnt (const LuceneDocument *doc_p)
 

Function Documentation

◆ ClearLuceneDocument()

GRASSROOTS_LUCENE_API void ClearLuceneDocument ( LuceneDocument doc_p)

◆ GetDocumentFieldSize()

GRASSROOTS_LUCENE_API size_t GetDocumentFieldSize ( const LuceneDocument doc_p,
const char *  key_s 
)

◆ IsDocumentFieldMultiValued()

GRASSROOTS_LUCENE_API bool IsDocumentFieldMultiValued ( const LuceneDocument doc_p,
const char *  key_s,
size_t *  num_values_p 
)

◆ GetDocumentFieldValue()

const GRASSROOTS_LUCENE_API char* GetDocumentFieldValue ( const LuceneDocument doc_p,
const char *  key_s 
)

◆ GetDocumentFieldMultiValue()

const GRASSROOTS_LUCENE_API char* GetDocumentFieldMultiValue ( const LuceneDocument doc_p,
const char *  key_s,
size_t  index 
)

◆ GetCopyOfDocuemnt()

GRASSROOTS_LUCENE_API json_t* GetCopyOfDocuemnt ( const LuceneDocument doc_p)