Codota Logo
org.opencms.search.fields
Code IndexAdd Codota to your IDE (free)

How to use org.opencms.search.fields

Best Java code snippets using org.opencms.search.fields (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Returns the String value of the mapping type.<p>
 *
 * @return String value of the mapping type
 */
public String getType() {
  if ((m_mapping != null) && (m_mapping.getType() != null)) {
    return m_mapping.getType().toString();
  }
  return "";
}
origin: org.opencms/opencms-core

/**
 * Public constructor for a new search field mapping.<p>
 *
 * @param type the type to use, see {@link #setType(CmsSearchFieldMappingType)}
 * @param param the mapping parameter, see {@link #setParam(String)}
 */
public CmsSearchFieldMapping(CmsSearchFieldMappingType type, String param) {
  this();
  setType(type);
  setParam(param);
}
origin: org.opencms/opencms-core

/**
 *
 * @see org.opencms.search.fields.CmsSearchFieldConfiguration#addField(org.opencms.search.fields.CmsSearchField)
 */
@Override
public void addField(CmsSearchField field) {
  super.addField(field);
  m_fieldAdded = true;
}
origin: org.opencms/opencms-core

/**
 * Returns the display name of the field.<p>
 *
 * @return the display name of the field
 */
public String getDisplayName() {
  if (!isDisplayed()) {
    return IGNORE_DISPLAY_NAME;
  }
  if (m_displayName == null) {
    return getName();
  } else {
    return m_displayName;
  }
}
origin: org.opencms/opencms-core

/**
 * Adds fields.<p>
 *
 * @param fields the fields to add
 */
public void addFields(Collection<CmsSearchField> fields) {
  for (CmsSearchField field : fields) {
    if (!getFieldNames().contains(field.getName())) {
      addField(field);
    }
  }
}
origin: org.opencms/opencms-core

/**
 * Returns <code>true</code> if this fields content is used in the search result excerpt.<p>
 *
 * A field can only be used in the excerpt if it is stored, see {@link #isStored()}.<p>
 *
 * @return <code>true</code> if this fields content is used in the search result excerpt
 *
 * @see #isStored()
 */
public boolean isInExcerptAndStored() {
  return isInExcerpt() && isStored();
}
origin: org.opencms/opencms-core

  /**
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {

    return getName();
  }
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Sets the indexed value of the field.<p>
 *
 * @param indexed String value of the indexed value
 */
public void setIndexed(String indexed) {
  m_field.setIndexed(indexed);
}
origin: org.opencms/opencms-core

/**
 * Sets the boost factor of this field (only for display use).<p>
 *
 * @param boost the boost factor to set
 *
 * @see #setBoost(String)
 */
public void setBoostDisplay(String boost) {
  setBoost(boost);
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Sets the mapping type of the mapping.<p>
 *
 * @param type String value of the mapping type
 */
public void setType(String type) {
  m_mapping.setType(type);
}
origin: org.opencms/opencms-solr

/**
 * Sets the boost factor of this field (only for display use).<p>
 * 
 * @param boost the boost factor to set
 * 
 * @see #setBoost(String)
 */
public void setBoostDisplay(String boost) {
  setBoost(boost);
}
origin: org.opencms/opencms-core

/**
 * Controls if this field value will be stored compressed or not.<p>
 *
 * If this is set to <code>true</code>, the value for {@link #isStored()} will also
 * be set to <code>true</code>, since compressed fields are always stored.<p>
 *
 * @param compressed if <code>true</code>, the field value will be stored compressed
 */
public void setCompressed(boolean compressed) {
  m_compressed = compressed;
  if (compressed) {
    setStored(true);
  }
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Returns the String value of the indexed value.<p>
 *
 * @return String value of the indexed value
 */
public String getIndexed() {
  if ((m_field != null) && (m_field.getIndexed() != null)) {
    return m_field.getIndexed();
  }
  return "";
}
origin: org.opencms/opencms-core

/**
 * Sets the displayNameForConfiguration.<p>
 *
 * @param displayNameForConfiguration the displayNameForConfiguration to set
 */
public void setDisplayNameForConfiguration(String displayNameForConfiguration) {
  m_displayNameForConfiguration = displayNameForConfiguration;
  setDisplayName(displayNameForConfiguration);
}
origin: org.opencms/opencms-solr

/**
 * Sets the displayNameForConfiguration.<p>
 *
 * @param displayNameForConfiguration the displayNameForConfiguration to set
 */
public void setDisplayNameForConfiguration(String displayNameForConfiguration) {
  m_displayNameForConfiguration = displayNameForConfiguration;
  setDisplayName(displayNameForConfiguration);
}
origin: org.opencms/opencms-solr

/**
 * Controls if this field value will be stored compressed or not.<p>
 *
 * If this is set to <code>true</code>, the value for {@link #isStored()} will also 
 * be set to <code>true</code>, since compressed fields are always stored.<p>
 *
 * @param compressed if <code>true</code>, the field value will be stored compressed
 */
public void setCompressed(boolean compressed) {
  m_compressed = compressed;
  if (compressed) {
    setStored(true);
  }
}
origin: org.opencms/opencms-solr

/**
 * Returns the display name of the field.<p>
 * 
 * @return the display name of the field
 */
public String getDisplayName() {
  if (!isDisplayed()) {
    return IGNORE_DISPLAY_NAME;
  }
  if (m_displayName == null) {
    return m_name;
  } else {
    return m_displayName;
  }
}
origin: org.opencms/opencms-solr

/**
 * Public constructor for a new search field mapping.<p>
 * 
 * @param type the type to use, see {@link #setType(CmsSearchFieldMappingType)}
 * @param param the mapping parameter, see {@link #setParam(String)}
 */
public CmsSearchFieldMapping(CmsSearchFieldMappingType type, String param) {
  this();
  setType(type);
  setParam(param);
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Sets the indexed value of the field.<p>
 *
 * @param indexed String value of the indexed value
 */
public void setIndexed(String indexed) {
  m_field.setIndexed(indexed);
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Returns the String value of the indexed value.<p>
 *
 * @return String value of the indexed value
 */
public String getIndexed() {
  if ((m_field != null) && (m_field.getIndexed() != null)) {
    return m_field.getIndexed();
  }
  return "";
}
org.opencms.search.fields

Most used classes

  • CmsSearchFieldConfiguration
    Abstract implementation for OpenCms search field configurations.
  • CmsLuceneField
    An individual field configuration in a Lucene search index.
  • CmsSearchFieldMapping
    Describes a mapping of a piece of content from an OpenCms VFS resource to a field of a search index.
  • CmsSearchFieldMappingType
    Describes a possible mapping type for a piece of content used in building a search index. The mappin
  • CmsSearchField
    An individual field configuration in a search index.
  • I_CmsSearchFieldMapping
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now