|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.search.fields.CmsSearchField
org.opencms.search.solr.CmsSolrField
public class CmsSolrField
An individual field for the Solr search index.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
CmsSolrField(CmsLuceneField luceneField)
Public constructor. |
|
CmsSolrField(java.lang.String targetField,
java.util.List<java.lang.String> copyFields,
java.util.Locale locale,
java.lang.String defaultValue,
float boost)
Public constructor. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getCopyFields()
Returns the copy fields. |
java.util.Locale |
getLocale()
Returns the locale of this field or null if the field does not have a locale. |
java.lang.String |
getTargetField()
Returns the target field name. |
void |
setCopyFields(java.util.List<java.lang.String> copyFields)
Sets the copy field names. |
void |
setLocale(java.util.Locale locale)
Sets the locale. |
void |
setTargetField(java.lang.String targetField)
Sets the target field name. |
java.lang.String |
toString()
|
| Methods inherited from class org.opencms.search.fields.CmsSearchField |
|---|
addMapping, equals, getBoost, getDefaultValue, getIndexed, getMappings, getName, hashCode, isIndexed, isInExcerpt, isStored, setBoost, setBoost, setDefaultValue, setIndexed, setInExcerpt, setName, setStored |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSolrField(CmsLuceneField luceneField)
luceneField -
public CmsSolrField(java.lang.String targetField,
java.util.List<java.lang.String> copyFields,
java.util.Locale locale,
java.lang.String defaultValue,
float boost)
targetField - the target field namecopyFields - the field names to copy this field's value tolocale - the localedefaultValue - the default valueboost - the boost factor| Method Detail |
|---|
public java.util.List<java.lang.String> getCopyFields()
public java.util.Locale getLocale()
null if the field does not have a locale.
public java.lang.String getTargetField()
public void setCopyFields(java.util.List<java.lang.String> copyFields)
copyFields - the field name to use as copy fieldspublic void setLocale(java.util.Locale locale)
locale - the locale to setpublic void setTargetField(java.lang.String targetField)
targetField - the name to setpublic java.lang.String toString()
toString in class CmsSearchFieldCmsSearchField.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||