Class DistanceFacetsExample
Shows simple usage of dynamic range faceting, using the expressions module to calculate distance.
Inheritance
System.Object
DistanceFacetsExample
Assembly: Lucene.Net.Demo.dll
Syntax
public class DistanceFacetsExample : IDisposable
Fields
Name | Description |
---|---|
EARTH_RADIUS_KM | Radius of the Earth in KM NOTE: this is approximate, because the earth is a bit wider at the equator than the poles. See http://en.wikipedia.org/wiki/Earth_radius |
ORIGIN_LATITUDE | The "home" latitude. |
ORIGIN_LONGITUDE | The "home" longitude. |
Methods
Name | Description |
---|---|
Dispose() | |
DrillDown(DoubleRange) | User drills down on the specified range. |
GetBoundingBoxFilter(Double, Double, Double) | Given a latitude and longitude (in degrees) and the maximum great circle (surface of the earth) distance, returns a simple Filter bounding box to "fast match" candidates. |
Index() | Build the example index. |
Main(String[]) | Runs the search and drill-down examples and prints the results. |
Search() | User runs a query and counts facets. |