mirror of https://github.com/apache/lucene.git
tests: test date docvalues w/ json facets
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1675458 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a02b9a08a1
commit
dd68aaf7e0
|
@ -231,6 +231,8 @@
|
||||||
|
|
||||||
<dynamicField name="*_dt" type="date" indexed="true" stored="true"/>
|
<dynamicField name="*_dt" type="date" indexed="true" stored="true"/>
|
||||||
<dynamicField name="*_dts" type="date" indexed="true" stored="true" multiValued="true"/>
|
<dynamicField name="*_dts" type="date" indexed="true" stored="true" multiValued="true"/>
|
||||||
|
<dynamicField name="*_dtd" type="date" indexed="true" stored="true" docValues="true" />
|
||||||
|
<dynamicField name="*_dtds" type="date" indexed="true" stored="true" multiValued="true" docValues="true" />
|
||||||
<dynamicField name="*_p" type="location" indexed="true" stored="true"/>
|
<dynamicField name="*_p" type="location" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<!-- some trie-coded dynamic fields for faster range queries -->
|
<!-- some trie-coded dynamic fields for faster range queries -->
|
||||||
|
|
|
@ -264,15 +264,15 @@ public class TestJsonFacets extends SolrTestCaseHS {
|
||||||
doStatsTemplated(client, params(p, "facet","true", "rows","0", "noexist","noexist_ss", "cat_s","cat_ss", "where_s","where_ss", "num_d","num_d", "num_i","num_i", "super_s","super_ss", "val_b","val_b", "date","date_dt", "sparse_s","sparse_ss", "multi_ss","multi_ss") );
|
doStatsTemplated(client, params(p, "facet","true", "rows","0", "noexist","noexist_ss", "cat_s","cat_ss", "where_s","where_ss", "num_d","num_d", "num_i","num_i", "super_s","super_ss", "val_b","val_b", "date","date_dt", "sparse_s","sparse_ss", "multi_ss","multi_ss") );
|
||||||
|
|
||||||
// single valued docvalues for strings, and single valued numeric doc values for numeric fields
|
// single valued docvalues for strings, and single valued numeric doc values for numeric fields
|
||||||
doStatsTemplated(client, params(p, "rows","0", "noexist","noexist_sd", "cat_s","cat_sd", "where_s","where_sd", "num_d","num_dd", "num_i","num_id", "super_s","super_sd", "val_b","val_b", "date","date_dt", "sparse_s","sparse_sd" ,"multi_ss","multi_sds") );
|
doStatsTemplated(client, params(p, "rows","0", "noexist","noexist_sd", "cat_s","cat_sd", "where_s","where_sd", "num_d","num_dd", "num_i","num_id", "super_s","super_sd", "val_b","val_b", "date","date_dtd", "sparse_s","sparse_sd" ,"multi_ss","multi_sds") );
|
||||||
|
|
||||||
// multi-valued docvalues
|
// multi-valued docvalues
|
||||||
FacetFieldProcessorDV.unwrap_singleValued_multiDv = false; // better multi-valued coverage
|
FacetFieldProcessorDV.unwrap_singleValued_multiDv = false; // better multi-valued coverage
|
||||||
doStatsTemplated(client, params(p, "rows","0", "noexist","noexist_sds", "cat_s","cat_sds", "where_s","where_sds", "num_d","num_d", "num_i","num_i", "super_s","super_sds", "val_b","val_b", "date","date_dt", "sparse_s","sparse_sds" ,"multi_ss","multi_sds") );
|
doStatsTemplated(client, params(p, "rows","0", "noexist","noexist_sds", "cat_s","cat_sds", "where_s","where_sds", "num_d","num_d", "num_i","num_i", "super_s","super_sds", "val_b","val_b", "date","date_dtds", "sparse_s","sparse_sds" ,"multi_ss","multi_sds") );
|
||||||
|
|
||||||
// multi-valued docvalues
|
// multi-valued docvalues
|
||||||
FacetFieldProcessorDV.unwrap_singleValued_multiDv = true;
|
FacetFieldProcessorDV.unwrap_singleValued_multiDv = true;
|
||||||
doStatsTemplated(client, params(p, "rows","0", "noexist","noexist_sds", "cat_s","cat_sds", "where_s","where_sds", "num_d","num_d", "num_i","num_i", "super_s","super_sds", "val_b","val_b", "date","date_dt", "sparse_s","sparse_sds" ,"multi_ss","multi_sds") );
|
doStatsTemplated(client, params(p, "rows","0", "noexist","noexist_sds", "cat_s","cat_sds", "where_s","where_sds", "num_d","num_d", "num_i","num_i", "super_s","super_sds", "val_b","val_b", "date","date_dtds", "sparse_s","sparse_sds" ,"multi_ss","multi_sds") );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void doStatsTemplated(Client client, ModifiableSolrParams p) throws Exception {
|
public static void doStatsTemplated(Client client, ModifiableSolrParams p) throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue