source: trunk/java-client/org/nzdl/gsdl/util/NzdlConstants.java@ 2273

Last change on this file since 2273 was 2273, checked in by daven, 23 years ago

retain state of non-explicit preferences (e.g. casfolding, stemming)

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/*
2 * NzdlConstants.java
3 * Copyright (C) 2001 New Zealand Digital Library Project
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//the package we're in
21package org.nzdl.gsdl.util;
22
23/**
24 * Contains default values for: query and other stuff.
25 *
26 * @author Stuart Yeates ([email protected])
27 * @author Aziz Mahoui ([email protected])
28 * @author Gordon Paynter ([email protected])
29 * @author Dave Nichols ([email protected])
30 * @version $Revision: 2273 $
31 */
32public interface NzdlConstants {
33
34 String DEFAULT_QUERY_TERM = "";
35 String DEFAULT_QUERY_TYPE = "ranked";
36 boolean DEFAULT_CASE_FOLDING = true;
37 boolean DEFAULT_STEMMING = false;
38 String DEFAULT_CASE_FOLDING_STRING = "true";
39 String DEFAULT_STEMMING_STRING = "false";
40
41 int DEFAULT_START_RESULTS = 1;
42 int DEFAULT_END_RESULTS = 10;
43 int DEFAULT_MAX_DOCS = 200;
44
45 /* preferences not under explicit dialog/user control */
46
47 String STEMMING = "stemming";
48 String CASE_FOLDING = "casefolding";
49 String QUERYTYPE = "querytype";
50
51
52 /* Preference Strings */
53
54 String DISPLAY_FIRST_DOC = "Automatically display the first document";
55 String RAW_TEXT = "Always display raw text (don't interpret HTML)";
56 String MULTIPLE_SERVERS = "Connect to multiple servers";
57 String LOG_SERVICE = "Log at the NzdlService level";
58 String CACHE_CORBA = "Cache corba requests";
59 String SAVE_DOCS = "Save documents";
60
61/* these appear to have been generated by
62the idlj compiler but not any more - so
63they are are being placed here */
64
65public static final int FRtermFreq = 1;
66public static final int FRmatchterms = 2;
67public static final int FROID = 4 ;
68public static final int FRsubcol = 8;
69public static final int FRranking = 16;
70public static final int FRdocFreq = 32;
71public static final int FRmetadata = 64;
72public static final int FRfullTextBrowse = 128;
73
74/* The constants above are based on these definitions from the C++ receptionist
75
76#define FRtermFreq 1
77#define FRmatchTerms 2
78#define FROID 4
79#define FRsubCol 8
80#define FRranking 16
81#define FRdocFreq 32
82#define FRmetadata 64
83// used to indicate a full text browse query for mgpp
84#define FRfullTextBrowse 128
85
86*/
87
88}
89
90
Note: See TracBrowser for help on using the repository browser.