source: trunk/gsdl3/packages/mg/jni/MGWrapperImpl.h@ 3743

Last change on this file since 3743 was 3743, checked in by mdewsnip, 21 years ago

Initial implementation of MG JNI wrapper (C side).

  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/*
2 * MGWrapperImpl.h
3 * Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20
21#include "backend.h"
22
23
24/*************************************************************************
25 NOTES
26
27 - These data structures are based on the MGPP ones but are modified
28 slightly to reflect the different capabilities of the MG system.
29
30 *************************************************************************/
31
32
33typedef struct QueryInfo
34{
35 /* Name of index to use */
36 char* index;
37 /* Maximum number of documents to retrieve */
38 unsigned long maxDocs;
39 /* Whether to sort the matching documents by weight (boolean value) */
40 int sortByRank;
41
42 /* Whether term frequency information is desired (boolean value) */
43 int needTermFreqs;
44} QueryInfo;
45
46
47typedef struct MGWrapperData
48{
49 /* Information about a query, see above */
50 QueryInfo* queryInfo;
51 /* Whether to perform stemming and case-folding */
52 int defaultStemMethod;
53 /* Whether to perform boolean AND (1) or boolean OR (0) queries */
54 int defaultBoolCombine;
55} MGWrapperData;
Note: See TracBrowser for help on using the repository browser.