Examples of FieldConfig


Examples of org.apache.lucene.queryParser.core.config.FieldConfig

      if (field != null) {
        fieldStr = field.toString();
      }

      FieldConfig fieldConfig = getQueryConfigHandler()
          .getFieldConfig(fieldStr);

      if (fieldConfig != null) {

        if (fieldConfig.hasAttribute(DateResolutionAttribute.class)) {

          dateRes = fieldConfig.getAttribute(DateResolutionAttribute.class)
              .getDateResolution();

        }

      }
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

  }

  public Resolution getDateResolution(String fieldName) {

    if (this.config != null) {
      FieldConfig fieldConfig = this.config.getFieldConfig(fieldName);

      if (fieldConfig != null) {

        if (this.config.hasAttribute(DateResolutionAttribute.class)) {
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

      FieldableNode fieldNode = (FieldableNode) node;
      QueryConfigHandler config = getQueryConfigHandler();

      if (config != null) {
        CharSequence field = fieldNode.getField();
        FieldConfig fieldConfig = config.getFieldConfig(StringUtils.toString(field));

        if (fieldConfig != null && fieldConfig.hasAttribute(BoostAttribute.class)) {
          BoostAttribute boostAttr = fieldConfig.getAttribute(BoostAttribute.class);

          return new BoostQueryNode(node, boostAttr.getBoost());

        }
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

     
      FieldableNode fieldNode = (FieldableNode) node;
      QueryConfigHandler config = getQueryConfigHandler();

      if (config != null) {
        FieldConfig fieldConfig = config.getFieldConfig(fieldNode.getField());

        if (fieldConfig != null && fieldConfig.hasAttribute(BoostAttribute.class)) {
          BoostAttribute boostAttr = (BoostAttribute) fieldConfig.getAttribute(BoostAttribute.class);

          return new BoostQueryNode(node, boostAttr.getBoost());

        }
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

      if (getQueryConfigHandler().hasAttribute(LocaleAttribute.class)) {
        locale = ((LocaleAttribute) getQueryConfigHandler().getAttribute(
            LocaleAttribute.class)).getLocale();
      }

      FieldConfig fieldConfig = getQueryConfigHandler().getFieldConfig(
          parametricRangeNode.getField());

      if (fieldConfig != null) {

        if (fieldConfig.hasAttribute(DateResolutionAttribute.class)) {
          dateRes = ((DateResolutionAttribute) fieldConfig
              .getAttribute(DateResolutionAttribute.class)).getDateResolution();
        }

      }
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

  }

  public Resolution getDateResolution(String fieldName) {

    if (this.config != null) {
      FieldConfig fieldConfig = this.config.getFieldConfig(fieldName);

      if (fieldConfig != null) {

        if (this.config.hasAttribute(DateResolutionAttribute.class)) {
          return ((DateResolutionAttribute) this.config
View Full Code Here

Examples of org.apache.lucene.queryparser.flexible.core.config.FieldConfig

     
      QueryConfigHandler config = getQueryConfigHandler();
     
      if (config != null) {
        FieldQueryNode fieldNode = (FieldQueryNode) node;
        FieldConfig fieldConfig = config.getFieldConfig(fieldNode
            .getFieldAsString());
       
        if (fieldConfig != null) {
          NumericConfig numericConfig = fieldConfig
              .get(ConfigurationKeys.NUMERIC_CONFIG);
         
          if (numericConfig != null) {
           
            NumberFormat numberFormat = numericConfig.getNumberFormat();
View Full Code Here

Examples of org.apache.lucene.queryparser.flexible.core.config.FieldConfig

     
      if (field != null) {
        fieldStr = field.toString();
      }
     
      FieldConfig fieldConfig = getQueryConfigHandler()
          .getFieldConfig(fieldStr);
     
      if (fieldConfig != null) {
        dateRes = fieldConfig.get(ConfigurationKeys.DATE_RESOLUTION);
      }
     
      if (termRangeNode.isUpperInclusive()) {
        inclusive = true;
      }
View Full Code Here

Examples of org.apache.lucene.queryparser.flexible.core.config.FieldConfig

      FieldableNode fieldNode = (FieldableNode) node;
      QueryConfigHandler config = getQueryConfigHandler();

      if (config != null) {
        CharSequence field = fieldNode.getField();
        FieldConfig fieldConfig = config.getFieldConfig(StringUtils.toString(field));

        if (fieldConfig != null) {
          Float boost = fieldConfig.get(ConfigurationKeys.BOOST);

          if (boost != null) {
            return new BoostQueryNode(node, boost);
          }
View Full Code Here

Examples of org.apache.lucene.queryparser.flexible.core.config.FieldConfig

    if (node instanceof TermRangeQueryNode) {
      QueryConfigHandler config = getQueryConfigHandler();
     
      if (config != null) {
        TermRangeQueryNode termRangeNode = (TermRangeQueryNode) node;
        FieldConfig fieldConfig = config.getFieldConfig(StringUtils
            .toString(termRangeNode.getField()));
       
        if (fieldConfig != null) {
         
          NumericConfig numericConfig = fieldConfig
              .get(ConfigurationKeys.NUMERIC_CONFIG);
         
          if (numericConfig != null) {
           
            FieldQueryNode lower = termRangeNode.getLowerBound();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.