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

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

"Some" queries are now performed as ranked queries rather than boolean OR queries. Equivalent terms for each of the query terms are also recorded.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 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 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 term frequency information is desired (boolean value) */
40 int needTermFreqs;
41} QueryInfo;
42
43
44typedef struct MGWrapperData
45{
46 /* Information about a query, see above */
47 QueryInfo* queryInfo;
48 /* Whether to perform stemming and case-folding */
49 int defaultStemMethod;
50 /* Whether to perform boolean AND (1) or boolean OR (0) queries */
51 int defaultBoolCombine;
52} MGWrapperData;
Note: See TracBrowser for help on using the repository browser.