qwaider / solr-geonames

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTE: This project was migrated from https://code.google.com/p/solr-geonames/ Overview

This project has a pair of basic Java applications:

  • The first harvests the Geonames.org dataset into an embedded Solr index.
  • The second wraps the embedded Solr index in a basic Java Servlet.

Documentation

Given the amount of data indexed we don't upload the indexed data to this project. So installing is a two step process:

  • Developer Installation: is required to build your index data (at least once), and you can use this to run a simple dev server.
  • Deploying using Jetty: is an example of deploying the resulting data and WAR file to an existing server.

Some more background information/documentation:

Deployment

Artifacts are now available in Maven Central [MavenDeployment via Sonatype], and can be included in your project like so:

        <dependency>
            <groupId>com.googlecode.solr-geonames</groupId>
            <artifactId>solr-geonames-server</artifactId>
            <type>war</type>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode.solr-geonames</groupId>
            <artifactId>solr-geonames-harvester</artifactId>
            <version>1.0</version>
        </dependency>

A 'skinny' WAR artifact is also available if you don't want to bring down the ~10mb WAR with JARs bundled inside:

        <dependency>
            <groupId>com.googlecode.solr-geonames</groupId>
            <artifactId>solr-geonames-server</artifactId>
            <type>war</type>
            <classifier>skinny</classifier>
            <version>1.0</version>
        </dependency>

About


Languages

Language:Java 95.8%Language:Shell 1.5%Language:Batchfile 1.4%Language:HTML 0.9%Language:CSS 0.4%