X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fsolr.h;h=8d9a65dc44270d047981124cc1d9859982abb92d;hp=b9d798fd358f22bde8eb0586e953339c15e5d26e;hb=5ef30a0bda9a010b88266f90a253a2c46e6d47db;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/include/yaz/solr.h b/include/yaz/solr.h index b9d798f..8d9a65d 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-2011 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: @@ -26,7 +26,7 @@ */ /** \file solr.h - \brief Header with public definitions about SOLR. + \brief Header with public definitions about Solr. */ #ifndef SOLR_H_INCLUDED @@ -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