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:
David Draper
2014-05-19 12:49:26 +00:00
parent c22799ddfa
commit ad28258976
3 changed files with 176 additions and 84 deletions

View File

@@ -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
*/