Class SearchField
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.SearchField
-
public class SearchField extends Object
-
-
Constructor Summary
Constructors Constructor Description SearchField()SearchField(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()The field nameBigDecimalgetWeight()Weight is given between 10 (most relevant) to 1 (least relevant)inthashCode()SearchFieldsetName(String name)The field nameSearchFieldsetWeight(BigDecimal weight)Weight is given between 10 (most relevant) to 1 (least relevant)
-
-
-
Constructor Detail
-
SearchField
public SearchField()
-
SearchField
public SearchField(String fieldName)
-
-
Method Detail
-
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.
-
-