mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
70680: Merged WAT1 (4.3/Cloud) to HEAD-BUG-FIX (4.3/Cloud) 69081: ACE-1265: Fixed the selected Date/Size range filtering - Added insertion index for the facet label, to help the Date/Size sorting labels in the UI. - A minor optimization in SolrFacetHelper. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@70911 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,17 +31,20 @@ public class ScriptFacetResult implements Serializable
|
||||
|
||||
private final String facetValue;
|
||||
private final String facetLabel;
|
||||
private final int facetLabelIndex;
|
||||
private final int hits;
|
||||
|
||||
/**
|
||||
* @param facetValue the facet value. e.g. the content creator's userID
|
||||
* @param facetLabel the display name of the {@code facetValue}. e.g. jdoe => John Doe
|
||||
* @param facetLabelIndex the label index to be used for sorting (Optional).The default value is -1
|
||||
* @param hits the number of hits
|
||||
*/
|
||||
public ScriptFacetResult(String facetValue, String facetLabel, int hits)
|
||||
public ScriptFacetResult(String facetValue, String facetLabel, int facetLabelIndex, int hits)
|
||||
{
|
||||
this.facetValue = facetValue;
|
||||
this.facetLabel = facetLabel;
|
||||
this.facetLabelIndex = facetLabelIndex;
|
||||
this.hits = hits;
|
||||
}
|
||||
|
||||
@@ -61,6 +64,14 @@ public class ScriptFacetResult implements Serializable
|
||||
return this.facetLabel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the facetLabelIndex
|
||||
*/
|
||||
public int getFacetLabelIndex()
|
||||
{
|
||||
return this.facetLabelIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the hits
|
||||
*/
|
||||
|
Reference in New Issue
Block a user