mirror of https://github.com/apache/lucene.git
SOLR-1240: deprecating date faceting methods now that we have generalized range faceting
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1071842 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
742f95598f
commit
55af869609
|
@ -779,8 +779,9 @@ public class SimpleFacets {
|
|||
* SolrParams
|
||||
*
|
||||
* @see FacetParams#FACET_DATE
|
||||
* @deprecated Use getFacetRangeCounts which is more generalized
|
||||
*/
|
||||
|
||||
@Deprecated
|
||||
public NamedList<Object> getFacetDateCounts()
|
||||
throws IOException, ParseException {
|
||||
|
||||
|
@ -802,6 +803,10 @@ public class SimpleFacets {
|
|||
return resOuter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use getFacetRangeCounts which is more generalized
|
||||
*/
|
||||
@Deprecated
|
||||
public void getFacetDateCounts(String dateFacet, NamedList<Object> resOuter)
|
||||
throws IOException, ParseException {
|
||||
|
||||
|
@ -1158,6 +1163,10 @@ public class SimpleFacets {
|
|||
return searcher.numDocs(rangeQ ,base);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use rangeCount(SchemaField,String,String,boolean,boolean) which is more generalized
|
||||
*/
|
||||
@Deprecated
|
||||
protected int rangeCount(SchemaField sf, Date low, Date high,
|
||||
boolean iLow, boolean iHigh) throws IOException {
|
||||
Query rangeQ = ((DateField)(sf.getType())).getRangeQuery(null, sf,low,high,iLow,iHigh);
|
||||
|
|
Loading…
Reference in New Issue