Codota Logo
CmsSearchField.setStored
Code IndexAdd Codota to your IDE (free)

How to use
setStored
method
in
org.opencms.search.fields.CmsSearchField

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

/**
 * Controls if the content of this field is stored in the Lucene index from a String parameter.<p> 
 * 
 * @param stored if <code>"true"</code>, then the field content is stored
 * 
 * @see #setStored(boolean)
 */
public void setStored(String stored) {
  boolean isStored = false;
  boolean isCompressed = false;
  if (stored != null) {
    stored = stored.trim().toLowerCase();
    if (STR_COMPRESS.equals(stored)) {
      isCompressed = true;
      isStored = true;
    } else if (STR_YES.equals(stored)) {
      // "yes", value will be stored but not compressed
      isStored = true;
    } else {
      // only "true" or "false" remain
      isStored = Boolean.valueOf(stored).booleanValue();
    }
  }
  setStored(isStored);
  setCompressed(isCompressed);
}
origin: org.opencms/opencms-solr

setDisplayName(displayName);
setName(name);
setStored(isStored);
setCompressed(isCompressed);
setIndexed(isIndexed);
org.opencms.search.fieldsCmsSearchFieldsetStored

Javadoc

Controls if the content of this field is stored in the Lucene index from a String parameter.

Popular methods of CmsSearchField

  • getMappings
    Returns the mappings for this field.
  • getName
    Returns the name of this field in the Lucene search index.
  • addMapping
    Adds a new field mapping to the internal list of mappings.
  • isStored
    Returns true if the content of this field is stored in the Lucene index. Please refer to the Lucene
  • setBoost
    Sets the boost factor for this field from a String value.
  • <init>
  • addUninvertingMappings
    To allow sorting on a field the field must be added to the map given to org.apache.lucene.uninvertin
  • createField
    Creates a Lucene field from the configuration and the provided content. If no valid content is provi
  • getAnalyzer
    Returns the analyzer used for this field.
  • getBoost
    Returns the boost factor of this field. The boost factor is a Lucene function that controls the "imp
  • getDefaultValue
    Returns the default value to use if no content for this field was collected. In case no default is c
  • getDisplayName
    Returns the display name of the field.
  • getDefaultValue,
  • getDisplayName,
  • getDisplayNameForConfiguration,
  • isCompressed,
  • isDisplayed,
  • isInExcerptAndStored,
  • isIndexed,
  • isTokenizedAndIndexed,
  • setAnalyzer,
  • setCompressed

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
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