Added rpn_facet which does little at this stage.
[idzebra-moved-to-github.git] / index / rpnfacet.c
1 /* $Id: rpnfacet.c,v 1.1 2007-11-01 14:56:07 adam Exp $
2    Copyright (C) 1995-2007
3    Index Data ApS
4
5 This file is part of the Zebra server.
6
7 Zebra is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
21 */
22
23 #include <stdio.h>
24 #include <assert.h>
25 #if HAVE_UNISTD_H
26 #include <unistd.h>
27 #endif
28 #include <ctype.h>
29
30 #include <yaz/diagbib1.h>
31 #include "index.h"
32 #include <zebra_xpath.h>
33 #include <yaz/wrbuf.h>
34 #include <attrfind.h>
35 #include <charmap.h>
36 #include <rset.h>
37 #include <yaz/oid_db.h>
38
39 ZEBRA_RES rpn_facet(ZebraHandle zh, ODR stream, NMEM nmem,
40                     struct rset_key_control *kc,
41                     Z_AttributesPlusTerm *zapt,
42                     int *position, int *num_entries, 
43                     ZebraScanEntry **list,
44                     int *is_partial, RSET limit_set,
45                     const char *index_type,
46                     int ord_no, int *ords)
47 {
48     /* for each ord .. */
49     /*   check that sort idx exist for ord */
50     /*   sweep through result set and sort_idx at the same time */
51     zebra_setError(zh, YAZ_BIB1_TEMPORARY_SYSTEM_ERROR, 
52                    "facet not implemented");
53                 
54     return ZEBRA_FAIL;
55 }
56
57 /*
58  * Local variables:
59  * c-basic-offset: 4
60  * indent-tabs-mode: nil
61  * End:
62  * vim: shiftwidth=4 tabstop=8 expandtab
63  */
64