X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fsolr.h;h=a901966159cfa640971742f21af72ed1522cca0d;hp=09ecdcc6d1a071eeb5e1c678b871ace8f202d6ed;hb=6437a10ee3d3160d01d04afe071901e8f496ad34;hpb=fabec8cc81c901ee77f71e3d8667494b57507e7d diff --git a/include/yaz/solr.h b/include/yaz/solr.h index 09ecdcc..a901966 100644 --- a/include/yaz/solr.h +++ b/include/yaz/solr.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data. + * Copyright (C) 1995-2013 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -41,10 +41,10 @@ typedef struct solr_parser *SOLR_parser; /** \brief creates a SOLR parser. \returns CCL parser - + Returns SOLR parser or NULL if parser could not be created. */ -YAZ_EXPORT +YAZ_EXPORT SOLR_parser solr_parser_create(void); /** \brief destroys a SOLR parser. @@ -52,7 +52,7 @@ SOLR_parser solr_parser_create(void); This function does nothing if NULL if received. */ -YAZ_EXPORT +YAZ_EXPORT void solr_parser_destroy(SOLR_parser cp); /** \brief parses a SOLR query (string) @@ -61,7 +61,7 @@ void solr_parser_destroy(SOLR_parser cp); \retval 0 success \retval !=0 failure */ -YAZ_EXPORT +YAZ_EXPORT int solr_parser_string(SOLR_parser cp, const char *str); /** \brief parses SOLR query (query stream) @@ -71,14 +71,14 @@ int solr_parser_string(SOLR_parser cp, const char *str); \param client_data data to be passed to stream functions \retval 0 success \retval !=0 failure - + This function is similar to solr_parser_string but takes a functions to read each query character from a stream. - + The functions pointers getbytes, ungetbyte are similar to that known from stdios getc, ungetc. */ -YAZ_EXPORT +YAZ_EXPORT int solr_parser_stream(SOLR_parser cp, int (*getbyte)(void *client_data), void (*ungetbyte)(int b, void *client_data), @@ -89,7 +89,7 @@ int solr_parser_stream(SOLR_parser cp, \param f file where query is read from \retval 0 success \retval !=0 failure - + This function is similar to solr_parser_string but reads from stdio FILE handle instead. */ @@ -129,7 +129,7 @@ struct solr_node { char *value; /** left operand */ struct solr_node *left; - /** right operand */ + /** right operand */ struct solr_node *right; /** modifiers (NULL for no list) */ struct solr_node *modifiers; @@ -260,7 +260,7 @@ solr_transform_t solr_transform_open_fname(const char *fname); YAZ_EXPORT int solr_transform_define_pattern(solr_transform_t ct, const char *pattern, const char *value); - + /** \brief destroys a SOLR transform handle