Class SolrDocumentBase<T,K>

    • Method Detail

      • setField

        public abstract void setField(String name,
                                      Object value)
        Set a field with implied null value for boost.
        name - name of the field to set
        value - value of the field
      • addField

        public abstract void addField(String name,
                                      Object value)
        Add a field to the document.
        name - Name of the field, should match one of the field names defined under "fields" tag in schema.xml.
        value - Value of the field, should be of same class type as defined by "type" attribute of the corresponding field in schema.xml.
      • getFieldValue

        public abstract Object getFieldValue(String name)
        Get the first value or collection of values for a given field.