KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > search > JahiaSearchConstant


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
//
15

16 package org.jahia.services.search;
17
18 /**
19  * Search Engine constants
20  *
21  * @author NK
22  */

23
24 public final class JahiaSearchConstant {
25
26     // short description lenght for a search hit
27
public static final int TEASER_LENGTH = 80;
28
29     // Lucene Document Fields
30

31     public static final String JavaDoc FILE_NAME = "filename";
32
33     public static final String JavaDoc FIELD_PREFIX = "luc@@@@";
34     public static final String JavaDoc FIELD_OBJTYPE = "objtype";
35
36     public static final String JavaDoc FIELD_FIELDOBJ = "field";
37     public static final String JavaDoc FIELD_CTNOBJ = "container";
38
39     public static final String JavaDoc FIELD_FIELDID = "fieldid";
40     public static final String JavaDoc FIELD_JAHIAID = "jahiaid";
41     public static final String JavaDoc FIELD_PAGEID = "pageid";
42     public static final String JavaDoc FIELD_FIELDNAME = "fieldname";
43     public static final String JavaDoc FIELD_FIELDTYPE = "fieldtype";
44     public static final String JavaDoc FIELD_CTNID = "ctnid";
45     public static final String JavaDoc FIELD_CTNLISTID = "ctnlistid";
46     public static final String JavaDoc FIELD_VALUE = "value"; // this is the field value content
47
public static final String JavaDoc FIELD_RIGHT = "right";
48     public static final String JavaDoc FIELD_TEXT = "text"; // this is the default field for free text search
49
// it's used to append all field value as a single text value
50
public static final String JavaDoc FIELD_VERSION = "version";
51     public static final String JavaDoc FIELD_WORKFLOW_STATE = "workflow_state";
52     public static final String JavaDoc FIELD_LANGUAGE_CODE = "language_code";
53     public static final String JavaDoc FIELD_KEY = "field_key";
54
55     public static final String JavaDoc CONTAINER_DEFINITION_NAME = "container_definition_name";
56
57     public static final String JavaDoc OBJECT_KEY = "object_key";
58
59     public static final String JavaDoc CATEGORY_KEY = "category_key";
60     public static final String JavaDoc CONTAINER_CATEGORY_KEY = "container.category_key";
61     public static final String JavaDoc PAGE_CATEGORY_KEY = "page.category_key";
62
63     /**
64      * Prefix for extracted file's properties
65      */

66     public static final String JavaDoc FILE_PROPERTY_PREFIX = "file_property_";
67
68     //--------------------------------------------------------------------------
69
/**
70      * Supported Form Input
71      *
72      */

73
74     /**
75      * Container list search query form input name prefix.
76      * The complete name is the combination of :
77      * "clistsquery_" + ctnlist.getDefinition().getName() ( ctnlist name );
78      */

79     public static final String JavaDoc CLIST_SEARCHQUERY_INPUT_PREFIX = "clistsquery_";
80
81 }
82
Popular Tags