public enum WebgraphSchema extends java.lang.Enum<WebgraphSchema> implements SchemaDeclaration
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
comment |
static java.lang.String |
CORE_NAME |
private boolean |
docValues |
private boolean |
indexed |
private boolean |
multiValued |
private boolean |
omitNorms |
private boolean |
searchable |
private java.lang.String |
solrFieldName |
private boolean |
stored |
private SolrType |
type |
static java.lang.String |
VOCABULARY_PREFIX |
static java.lang.String |
VOCABULARY_SUFFIX |
Modifier and Type | Method and Description |
---|---|
void |
add(SolrInputDocument doc,
boolean value) |
void |
add(SolrInputDocument doc,
java.util.Date value) |
void |
add(SolrInputDocument doc,
java.util.Date[] value) |
void |
add(SolrInputDocument doc,
double value) |
void |
add(SolrInputDocument doc,
float value) |
void |
add(SolrInputDocument doc,
int value) |
void |
add(SolrInputDocument doc,
java.lang.Integer[] value) |
void |
add(SolrInputDocument doc,
java.util.List<?> value) |
void |
add(SolrInputDocument doc,
long value) |
void |
add(SolrInputDocument doc,
java.lang.String value) |
void |
add(SolrInputDocument doc,
java.lang.String[] value) |
java.lang.String |
getComment() |
java.lang.String |
getSolrFieldName()
Returns the YaCy default or (if available) custom field name for Solr
|
SolrType |
getType() |
boolean |
isDocValue() |
boolean |
isIndexed() |
boolean |
isMultiValued() |
boolean |
isOmitNorms() |
boolean |
isSearchable() |
boolean |
isStored() |
void |
remove(SolrInputDocument doc) |
void |
setSolrFieldName(java.lang.String theValue)
Set a custom Solr field name (and converts it to lower case)
|
static WebgraphSchema |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WebgraphSchema[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final WebgraphSchema id
public static final WebgraphSchema last_modified
public static final WebgraphSchema load_date_dt
public static final WebgraphSchema collection_sxt
public static final WebgraphSchema process_sxt
public static final WebgraphSchema harvestkey_s
public static final WebgraphSchema source_id_s
public static final WebgraphSchema source_protocol_s
public static final WebgraphSchema source_urlstub_s
public static final WebgraphSchema source_file_name_s
public static final WebgraphSchema source_file_ext_s
public static final WebgraphSchema source_chars_i
public static final WebgraphSchema source_path_s
public static final WebgraphSchema source_path_folders_count_i
public static final WebgraphSchema source_path_folders_sxt
public static final WebgraphSchema source_parameter_count_i
public static final WebgraphSchema source_parameter_key_sxt
public static final WebgraphSchema source_parameter_value_sxt
public static final WebgraphSchema source_crawldepth_i
public static final WebgraphSchema source_cr_host_norm_i
public static final WebgraphSchema source_host_s
public static final WebgraphSchema source_host_id_s
public static final WebgraphSchema source_host_dnc_s
public static final WebgraphSchema source_host_organization_s
public static final WebgraphSchema source_host_organizationdnc_s
public static final WebgraphSchema source_host_subdomain_s
public static final WebgraphSchema target_linktext_s
public static final WebgraphSchema target_linktext_charcount_i
public static final WebgraphSchema target_linktext_wordcount_i
public static final WebgraphSchema target_alt_s
public static final WebgraphSchema target_alt_charcount_i
public static final WebgraphSchema target_alt_wordcount_i
public static final WebgraphSchema target_name_t
public static final WebgraphSchema target_rel_s
public static final WebgraphSchema target_relflags_i
public static final WebgraphSchema target_id_s
public static final WebgraphSchema target_order_i
public static final WebgraphSchema target_protocol_s
public static final WebgraphSchema target_urlstub_s
public static final WebgraphSchema target_file_name_s
public static final WebgraphSchema target_file_ext_s
public static final WebgraphSchema target_chars_i
public static final WebgraphSchema target_path_s
public static final WebgraphSchema target_path_folders_count_i
public static final WebgraphSchema target_path_folders_sxt
public static final WebgraphSchema target_parameter_count_i
public static final WebgraphSchema target_parameter_key_sxt
public static final WebgraphSchema target_parameter_value_sxt
public static final WebgraphSchema target_crawldepth_i
public static final WebgraphSchema target_cr_host_norm_i
public static final WebgraphSchema target_host_s
public static final WebgraphSchema target_host_id_s
public static final WebgraphSchema target_host_dnc_s
public static final WebgraphSchema target_host_organization_s
public static final WebgraphSchema target_host_organizationdnc_s
public static final WebgraphSchema target_host_subdomain_s
public static final WebgraphSchema target_inbound_b
public static final java.lang.String CORE_NAME
public static final java.lang.String VOCABULARY_PREFIX
public static final java.lang.String VOCABULARY_SUFFIX
private java.lang.String solrFieldName
private final SolrType type
private final boolean indexed
private final boolean stored
private final boolean multiValued
private final boolean omitNorms
private final boolean searchable
private final boolean docValues
private java.lang.String comment
public static WebgraphSchema[] values()
for (WebgraphSchema c : WebgraphSchema.values()) System.out.println(c);
public static WebgraphSchema valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final java.lang.String getSolrFieldName()
getSolrFieldName
in interface SchemaDeclaration
public final void setSolrFieldName(java.lang.String theValue)
setSolrFieldName
in interface SchemaDeclaration
theValue
- = the field namepublic final SolrType getType()
getType
in interface SchemaDeclaration
public final boolean isIndexed()
isIndexed
in interface SchemaDeclaration
public final boolean isStored()
isStored
in interface SchemaDeclaration
public final boolean isMultiValued()
isMultiValued
in interface SchemaDeclaration
public final boolean isOmitNorms()
isOmitNorms
in interface SchemaDeclaration
public final boolean isSearchable()
isSearchable
in interface SchemaDeclaration
public boolean isDocValue()
isDocValue
in interface SchemaDeclaration
public final java.lang.String getComment()
getComment
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, java.lang.String value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, java.util.Date value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, int value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, long value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, java.util.Date[] value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, java.lang.String[] value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, java.lang.Integer[] value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, java.util.List<?> value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, float value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, double value)
add
in interface SchemaDeclaration
public final void add(SolrInputDocument doc, boolean value)
add
in interface SchemaDeclaration
public final void remove(SolrInputDocument doc)
remove
in interface SchemaDeclaration