Class Field
- java.lang.Object
-
- fr.paris.lutece.plugins.search.solr.business.field.Field
-
public class Field extends java.lang.ObjectThis is the business class for the object Field
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOPERATOR_TYPE_ANDstatic java.lang.StringOPERATOR_TYPE_ORstatic java.lang.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 DefaultSortjava.lang.StringgetDescription()Returns the DescriptionbooleangetEnableFacet()Returns the EnableFacetbooleangetEnableSort()Returns the EnableSortintgetFacetMincount()Returns the FacetteMincountintgetIdField()Returns the IdFieldbooleangetIsFacet()Returns the IsFacetbooleangetIsSort()Returns the IsSortjava.lang.StringgetLabel()Returns the Labeljava.lang.StringgetName()Returns the Namejava.lang.StringgetOperator()Return operatorjava.lang.StringgetSolrName()doublegetWeight()Returns the weightvoidsetDefaultSort(boolean defaultSort)Sets the DefaultSortvoidsetDescription(java.lang.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(java.lang.String strLabel)Sets the LabelvoidsetName(java.lang.String strName)Sets the NamevoidsetOperator(java.lang.String strOperator)Set the operatorvoidsetWeight(double weight)Sets the weight
-
-
-
Field Detail
-
OPERATOR_TYPE_OR
public static final java.lang.String OPERATOR_TYPE_OR
- See Also:
- Constant Field Values
-
OPERATOR_TYPE_SWITCH
public static final java.lang.String OPERATOR_TYPE_SWITCH
- See Also:
- Constant Field Values
-
OPERATOR_TYPE_AND
public static final java.lang.String OPERATOR_TYPE_AND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSolrName
public java.lang.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 java.lang.String getName()
Returns the Name- Returns:
- The Name
-
setName
public void setName(java.lang.String strName)
Sets the Name- Parameters:
strName- The Name
-
getLabel
public java.lang.String getLabel()
Returns the Label- Returns:
- The Label
-
setLabel
public void setLabel(java.lang.String strLabel)
Sets the Label- Parameters:
strLabel- The Label
-
getDescription
public java.lang.String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(java.lang.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 java.lang.String getOperator()
Return operator- Returns:
- The Operator
-
setOperator
public void setOperator(java.lang.String strOperator)
Set the operator- Parameters:
strOperator-
-
-