Solr Plugin¶
Solr is a popular documentation database.
Maven:
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-solr</artifactId>
<version>${geotools.version}</version>
</dependency>
Connection Parameters¶
The following connection parameters are available:
Parameter |
Description |
---|---|
|
URL to a SOLR server CORE |
|
Controls how documents are mapped to layers |
|
Field used in SOLR that holds the layer names |
|
Namespace prefix |
Notes: layer_mapper
and layer_name_field
are deprecated, a single layer is exposed now by default, use
the SolrLayerConfiguration
class to configure more layers
Example use:
Map map = new HashMap();
map.put("solr_url", new URL("http://localhost:8080/solr"));
map.put(SolrDataStoreFactory.NAMESPACE.key, "namespace");