public FacetedIndex()
{
_data = FacetedIndexTestHelper.GetCameras(NumCameras);
_facets = new List <Facet>
{
new Facet {
Name = "Manufacturer"
},
//default is term query
//In Lucene [ is inclusive, { is exclusive
new Facet
{
Name = "Cost_Range",
Mode = FacetMode.Ranges,
Ranges =
{
"[NULL TO Dx200.0]",
"[Dx200.0 TO Dx400.0]",
"[Dx400.0 TO Dx600.0]",
"[Dx600.0 TO Dx800.0]",
"[Dx800.0 TO NULL]",
}
},
new Facet
{
Name = "Megapixels_Range",
Mode = FacetMode.Ranges,
Ranges =
{
"[NULL TO Dx3.0]",
"[Dx3.0 TO Dx7.0]",
"[Dx7.0 TO Dx10.0]",
"[Dx10.0 TO NULL]",
}
}
};
}