search/engine/impl-lucene/src/main/java/net/sf/mmm/search/engine/impl/lucene/LuceneSearchQueryBuilder.java
/**
   * This method determines if leading wildcards will be ignored. <br>
   * <b>ATTENTION:</b><br>
   * Leading wildcards can cause performance problems. If you run a public accessible search-engine and you
   * want to avoid easy DOS-attacks, you should disable leading wildcards.
   * 
   * @return <code>true</code> if leading wildcards ('*' or '?') are ignored, <code>false</code> otherwise.
   */
This method determines if leading wildcards will be ignored. 
ATTENTION:
Leading wildcards can cause performance problems. If you run a public accessible search-engine and you
want to avoid easy DOS-attacks, you should disable leading wildcards.

@return true if leading wildcards ('*' or '?') are ignored, false otherwise.
This method determines if leading wildcards will be ignored . ATTENTION : Leading wildcards can cause performance problems . If you run a public accessible search - engine and you want to avoid easy DOS - attacks you should disable leading wildcards . @return true if leading wildcards ( ' * ' or ' ? ' ) are ignored false otherwise .
protected boolean isIgnoreLeadingWildcards() {
    Boolean result = this.ignoreLeadingWildcard;
    if (result == null) {
      boolean ignore;
      String wildcardProperty = this.fieldManager.getConfigurationHolder().getBean().getProperties()
          .getProperty(PROPERTY_IGNORE_LEADING_WILDCARDS);
      if (StringUtil.TRUE.equals(wildcardProperty)) {
        ignore = true;
      } else {
        if (!StringUtil.FALSE.equals(wildcardProperty)) {
          String message = "Leading wildcards are enabled in searches. "
              + "This can cause performance problems and may allow "
              + "denial-of-service-attacks. Please explicitly set the property '" + PROPERTY_IGNORE_LEADING_WILDCARDS
              + "' in your search-configuration to 'true' to disable or 'false' " + "to prevent this warning !";
          getLogger().warn(message);
        }
        ignore = false;
      }
      result = Boolean.valueOf(ignore);
      this.ignoreLeadingWildcard = result;
    }
    return result.booleanValue();
  }
protected boolean isIgnoreLeadingWildcards ( ) { Boolean result = this . ignoreLeadingWildcard ; if ( result == null ) { boolean ignore ; String wildcardProperty = this . fieldManager . getConfigurationHolder ( ) . getBean ( ) . getProperties ( ) . getProperty ( PROPERTY_IGNORE_LEADING_WILDCARDS ) ; if ( StringUtil . TRUE . equals ( wildcardProperty ) ) { ignore = true ; } else { if ( ! StringUtil . FALSE . equals ( wildcardProperty ) ) { String message = "Leading wildcards are enabled in searches. " + "This can cause performance problems and may allow " + "denial-of-service-attacks. Please explicitly set the property '" + PROPERTY_IGNORE_LEADING_WILDCARDS + "' in your search-configuration to 'true' to disable or 'false' " + "to prevent this warning !" ; getLogger ( ) . warn ( message ) ; } ignore = false ; } result = Boolean . valueOf ( ignore ) ; this . ignoreLeadingWildcard = result ; } return result . booleanValue ( ) ; }
This method determines if leading wildcards will be ignored.
This method determines if leading wildcards will be ignored .