forked from vivo-project/Vitro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VitroSearchTermNames.java
80 lines (57 loc) · 3.27 KB
/
VitroSearchTermNames.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.search;
public class VitroSearchTermNames {
/** Id of entity, vclass or tab */
public static final String URI = "URI";
/** search document id */
public static final String DOCID = "DocId";
/** rdf:type */
public static final String RDFTYPE = "type";
/** classgroups from the individual's rdf:types */
public static final String CLASSGROUP_URI = "classgroup";
/** Most specific types for individual*/
public static final String MOST_SPECIFIC_TYPE_URIS = "mostSpecificTypeURIs";
/** time of index in msec since epoc */
public static final String INDEXEDTIME= "indexedTime";
/** text for 'full text' search, this is stemmed */
public static final String ALLTEXT = "ALLTEXT";
/** text for 'full text' search, this is unstemmed for
* use with wildcards and prefix queries */
public static final String ALLTEXTUNSTEMMED = "ALLTEXTUNSTEMMED";
/** Does the individual have a thumbnail image? 1=yes 0=no */
public static final String THUMBNAIL = "THUMBNAIL";
/** download url location for thumbnail */
public static final String THUMBNAIL_URL = "THUMBNAIL_URL";
// Fields derived from rdfs:label
/** Raw rdfs:label: no lowercasing, no tokenizing, no stop words, no stemming **/
public static final String NAME_RAW = "nameRaw"; //
/** rdfs:label lowercased, no tokenizing, no stop words, no stemming **/
public static final String NAME_LOWERCASE = "nameLowercase"; //
/** Same as NAME_LOWERCASE, but single-valued so it's sortable. **/
// RY Need to control how indexing selects which of multiple values to copy.
public static final String NAME_LOWERCASE_SINGLE_VALUED = "nameLowercaseSingleValued";
/** rdfs:label lowercased, tokenized, stop words, no stemming **/
public static final String NAME_UNSTEMMED = "nameUnstemmed";
/** rdfs:label lowercased, tokenized, stop words, stemmed **/
public static final String NAME_STEMMED = "nameStemmed";
/** preferred title */
public static final String PREFERRED_TITLE = "PREFERRED_TITLE";
public static final String NAME_PHONETIC = "NAME_PHONETIC";
/** rdfs:label lowercased, untokenized, edge-n-gram-filtered for autocomplete on people names **/
public static final String AC_NAME_UNTOKENIZED = "acNameUntokenized";
/** rdfs:label lowercased, tokenized, stop words, stemmed, edge-n-gram-filtered for autocomplete
* on non-person labels such as book titles and grant names **/
public static final String AC_NAME_STEMMED = "acNameStemmed";
/* There is currently no use case for an autocomplete search field that is tokenized but not stemmed.
public static final String AC_NAME_UNSTEMMED = "acNameUnstemmed"; */
/** Beta values used in weighting **/
public static final String BETA = "BETA";
/** Source institution URL */
public static final String SITE_URL = "siteURL";
/** Source institution name */
public static final String SITE_NAME = "siteName";
/** Multilingual sort field suffix */
public static final String LABEL_SORT_SUFFIX = "_label_sort";
/** Multilingual label field suffix */
public static final String LABEL_DISPLAY_SUFFIX = "_label_display";
}