public class LuceneIndex extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LuceneIndex.Category |
static class |
LuceneIndex.LuceneResult
This class matches the structure of the Geocoder responses expected by the OTP client.
|
Constructor and Description |
---|
LuceneIndex(GraphIndex graphIndex,
File basePath,
boolean background) |
Modifier and Type | Method and Description |
---|---|
List<LuceneIndex.LuceneResult> |
query(String queryString,
boolean autocomplete,
boolean stops,
boolean clusters,
boolean corners)
Fetch results for the geocoder using the OTP graph for stops, clusters and street names
|
public LuceneIndex(GraphIndex graphIndex, File basePath, boolean background)
basePath
- the filesystem location under which to save indexesbackground
- if true, perform the initial indexing in a background thread, if false block to indexpublic List<LuceneIndex.LuceneResult> query(String queryString, boolean autocomplete, boolean stops, boolean clusters, boolean corners)
queryString
- autocomplete
- Whether we should use the query string to do a prefix matchstops
- Search for stops, either by name or stop codeclusters
- Search for clusters by their namecorners
- Search for street corners using at least one of the street namesCopyright © 2019. All rights reserved.