Class SearchField


  • public class SearchField
    extends Object
    Represents a Search Field in the request
    • Constructor Detail

      • SearchField

        public SearchField​(String fieldName)
        Create a SearchField with the
        Parameters:
        fieldName - the field name
      • SearchField

        public SearchField()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getName

        public String getName()
        The field name
        Returns:
        the field name
      • getWeight

        public BigDecimal getWeight()
        Weight is given between 10 (most relevant) to 1 (least relevant)
        Returns:
        the weight
      • setName

        public SearchField setName​(String name)
        The field name
        Parameters:
        name - the field name
        Returns:
        this.
      • setWeight

        public SearchField setWeight​(BigDecimal weight)
        Weight is given between 10 (most relevant) to 1 (least relevant)
        Parameters:
        weight - A value between 1 and 10 for relevance
        Returns:
        this.