01: /*
02: * regain - A file search engine providing plenty of formats
03: * Copyright (C) 2004 Til Schneider
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library 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 GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: *
19: * Contact: Til Schneider, info@murfman.de
20: *
21: * CVS information:
22: * $RCSfile$
23: * $Source$
24: * $Date: 2005-03-01 21:28:04 +0100 (Di, 01 Mrz 2005) $
25: * $Author: til132 $
26: * $Revision: 47 $
27: */
28: package net.sf.regain.search;
29:
30: /**
31: * Some constants used in several search classes.
32: *
33: * @author Til Schneider, www.murfman.de
34: */
35: public interface SearchConstants {
36:
37: /** The default maximum number of results to show on one page. */
38: public static final int DEFAULT_MAX_RESULTS = 10;
39:
40: /**
41: * The name of the attribute containing the current hit Document within the
42: * list tag.
43: */
44: public static final String ATTR_CURRENT_HIT = "currentHit";
45:
46: /**
47: * The name of the attribute containing the current hit score within the
48: * list tag.
49: */
50: public static final String ATTR_CURRENT_HIT_SCORE = "currentHitScore";
51:
52: /**
53: * The name of the attribute containing the index of the current hit within
54: * the list tag.
55: */
56: public static final String ATTR_CURRENT_HIT_INDEX = "currentHitIndex";
57:
58: /** The name of the parameter containing the index of the first result to show. */
59: public static final String PARAM_FROM_RESULT = "fromresult";
60:
61: /** The name of the parameter containing the maximum number of results to show. */
62: public static final String PARAM_MAX_RESULTS = "maxresults";
63:
64: }
|