Details

    • Fix Priority:
      3

      Description

      in documentimpl this code is trying to set index boost for a bunch of fields to 0
      public void addKeyword(String name, String value, boolean lowerCase) {
      if (lowerCase && Validator.isNotNull(value))

      { value = value.toLowerCase(); }

      Field field = new Field(name, value);

      for (String fieldName : Field.UNSCORED_FIELD_NAMES) {
      if (name.equalsIgnoreCase(fieldName))

      { field.setBoost(0); }

      }

      _fields.put(name, field);
      }

      This is a bug as default no index boost is 1 and not 0. Trying to boost non normalized field will fail.
      Pre solr 3.6 this was ignored , but post solr 3.6 this will be flagged by solr compiler and cause exceptions.

        Attachments

          Activity

            People

            Assignee:
            michael.han Michael Han (Inactive)
            Reporter:
            rahulbats rahulbats@gmail.com
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 39 weeks, 3 days ago

                Packages

                Version Package