code: public void setIndexed(String indexed) {
  
          boolean isIndexed = false;
          boolean isTokenized = false;
          if (indexed != null) {
              indexed = indexed.trim().toLowerCase();
              if (STR_TOKENIZED.equals(indexed)) {
                  isIndexed = true;
                  isTokenized = true;
              } else if (STR_UN_TOKENIZED.equals(indexed)) {
                  isIndexed = true;
              } else if (STR_NO.equals(indexed)) {
                  // "no", both values will be false
              } else {
                  // only "true" or "false" remain
                  isIndexed = Boolean.valueOf(indexed).booleanValue();
                  isTokenized = isIndexed;
              }
          }
          setIndexed(isIndexed);
          setTokenized(isTokenized);
      }
docs: Controls if the content of this field is indexed (and possibly tokenized) in the Lucene index from a String parameter.<p>
  
  This sets the values for {@link #isIndexed()} as well as {@link #isTokenizedAndIndexed()}.<p>
  
  The parameter can have the following values:
  <ul>
  <li><b>"true"</b> or <b>"tokenized"</b>: The field is indexed and tokenized.
  <li><b>"false"</b> or <b>"no"</b>: The field is not indexed and not tokenized.
  <li><b>"untokenized"</b>: The field is indexed but not tokenized.
  </ul>
  
  @param indexed the index setting to use
  
  @see #setIndexed(boolean)
  @see #setTokenized(boolean)