Class Field
- java.lang.Object
-
- fr.paris.lutece.plugins.search.solr.business.field.Field
-
public class Field extends Object
This is the business class for the object Field
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPERATOR_TYPE_ANDstatic StringOPERATOR_TYPE_ORstatic StringOPERATOR_TYPE_SWITCH
-
Constructor Summary
Constructors Constructor Description Field()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDefaultSort()Returns the DefaultSortStringgetDescription()Returns the DescriptionbooleangetEnableFacet()Returns the EnableFacetbooleangetEnableSort()Returns the EnableSortintgetFacetMincount()Returns the FacetteMincountintgetIdField()Returns the IdFieldbooleangetIsFacet()Returns the IsFacetbooleangetIsSort()Returns the IsSortStringgetLabel()Returns the LabelStringgetName()Returns the NameStringgetOperator()Return operatorStringgetSolrName()doublegetWeight()Returns the weightvoidsetDefaultSort(boolean defaultSort)Sets the DefaultSortvoidsetDescription(String strDescription)Sets the DescriptionvoidsetEnableFacet(boolean enableFacet)Sets the EnableFacetvoidsetEnableSort(boolean enableSort)Sets the EnableSortvoidsetFacetMincount(int facetMincount)Returns the FacetMincountvoidsetIdField(int nIdField)Sets the IdFieldvoidsetIsFacet(boolean isFacet)Sets the IsFacetvoidsetIsSort(boolean isSort)Sets the IsSortvoidsetLabel(String strLabel)Sets the LabelvoidsetName(String strName)Sets the NamevoidsetOperator(String strOperator)Set the operatorvoidsetWeight(double weight)Sets the weight
-
-
-
Field Detail
-
OPERATOR_TYPE_OR
public static final String OPERATOR_TYPE_OR
- See Also:
- Constant Field Values
-
OPERATOR_TYPE_SWITCH
public static final String OPERATOR_TYPE_SWITCH
- See Also:
- Constant Field Values
-
OPERATOR_TYPE_AND
public static final String OPERATOR_TYPE_AND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSolrName
public String getSolrName()
-
getIdField
public int getIdField()
Returns the IdField- Returns:
- The IdField
-
setIdField
public void setIdField(int nIdField)
Sets the IdField- Parameters:
nIdField- The IdField
-
getName
public String getName()
Returns the Name- Returns:
- The Name
-
setName
public void setName(String strName)
Sets the Name- Parameters:
strName- The Name
-
getLabel
public String getLabel()
Returns the Label- Returns:
- The Label
-
setLabel
public void setLabel(String strLabel)
Sets the Label- Parameters:
strLabel- The Label
-
getDescription
public String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(String strDescription)
Sets the Description- Parameters:
strDescription- The Description
-
getIsFacet
public boolean getIsFacet()
Returns the IsFacet- Returns:
- The IsFacet
-
setIsFacet
public void setIsFacet(boolean isFacet)
Sets the IsFacet- Parameters:
isFacet- The IsFacet
-
getEnableFacet
public boolean getEnableFacet()
Returns the EnableFacet- Returns:
- The EnableFacet
-
setEnableFacet
public void setEnableFacet(boolean enableFacet)
Sets the EnableFacet- Parameters:
enableFacet- The EnableFacet
-
getIsSort
public boolean getIsSort()
Returns the IsSort- Returns:
- The IsSort
-
setIsSort
public void setIsSort(boolean isSort)
Sets the IsSort- Parameters:
isSort- The IsSort
-
getEnableSort
public boolean getEnableSort()
Returns the EnableSort- Returns:
- The EnableSort
-
setEnableSort
public void setEnableSort(boolean enableSort)
Sets the EnableSort- Parameters:
enableSort- The EnableSort
-
getDefaultSort
public boolean getDefaultSort()
Returns the DefaultSort- Returns:
- The DefaultSort
-
setDefaultSort
public void setDefaultSort(boolean defaultSort)
Sets the DefaultSort- Parameters:
defaultSort- The DefaultSort
-
setWeight
public void setWeight(double weight)
Sets the weight- Parameters:
Weight- The Weight
-
getWeight
public double getWeight()
Returns the weight- Returns:
- The weight
-
getFacetMincount
public int getFacetMincount()
Returns the FacetteMincount- Returns:
- The FacetteMincount
-
setFacetMincount
public void setFacetMincount(int facetMincount)
Returns the FacetMincount
-
getOperator
public String getOperator()
Return operator- Returns:
- The Operator
-
setOperator
public void setOperator(String strOperator)
Set the operator- Parameters:
strOperator-
-
-