Skip to content

Commit

Permalink
Rename project to solr-spatial-light
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat Brown committed Dec 31, 2009
1 parent 7cc350e commit d7033cf
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 20 deletions.
31 changes: 20 additions & 11 deletions README.mkd
@@ -1,17 +1,9 @@
## solr-spatial
## solr-spatial-light

solr-spatial is a lightweight Solr plugin that exposes the basic geographical
search capabilities of lucene-spatial. Its aim is to be unobtrusive,
unopinionated, and semantic.

Much work is being done to build robust spatial search into Solr 1.5. This
plugin is not intended as a replacement for or alternative to that work; rather,
its purpose is to provide a rough and ready solution to perform spatial search
with Solr 1.4 until the real deal is released. More on the Solr 1.5 spatial
support here:

http://issues.apache.org/jira/browse/SOLR-773

### Installation and Setup

First, clone the latest source from GitHub:
Expand All @@ -26,7 +18,7 @@ Next, build the application and copy the jars into your solr installation:

$ cd solr-spatial
$ ant
$ cp dist/solr-spatial-X.X.X.jar lib/lucene-spatial-2.9.1-dev.jar $SOLR_HOME/lib
$ cp dist/solr-spatial-light-X.X.X.jar lib/lucene-spatial-2.9.1-dev.jar $SOLR_HOME/lib

Replace `$SOLR_HOME` with the directory that contains your `conf/` and (maybe)
`data/` directories. It might not have a `lib/` directory; you should create it.
Expand All @@ -36,7 +28,7 @@ also contains a `lib/` directory (along with `start.jar`).
Now, you'll need to add the solr-spatial search component to your
solrconfig.xml:

<searchComponent name="spatial" class="me.outofti.solrspatial.SpatialQueryComponent" />
<searchComponent name="spatial" class="me.outofti.solrspatiallight.SpatialQueryComponent" />

Then you'll need to add that search component into your standard request
handler. Look for the node &lt;requestHandler name="standard" ...&gt; node in
Expand Down Expand Up @@ -82,6 +74,23 @@ sort. This is because it is unlikely that any two documents will have equal
distance from the centerpoint; thus giving spatial sort precedence over any
other sort would have the same effect as removing that sort altogether.

### Alternatives

Much work is being done to build robust spatial search into Solr 1.5. This
plugin is not intended as a replacement for or alternative to that work; rather,
its purpose is to provide a rough and ready solution to perform spatial search
with Solr 1.4 until the real deal is released. More on the Solr 1.5 spatial
support here:

http://issues.apache.org/jira/browse/SOLR-773

Also, the JTeam, who has been a major contributor to Solr spatial efforts, has
released a plugin version of some of the Solr-773 work. Their plugin looks
considerably more robust in its implementation than solr-spatial-light, but
doesn't appear to support distance sorting at this point:

http://www.jteam.nl/news/spatialsolr

### Feedback, etc.

Feedback, suggestions, bug reports, mild insults, etc. are extremely welcome.
Expand Down
2 changes: 1 addition & 1 deletion build.xml
@@ -1,4 +1,4 @@
<project name="solr-spatial" default="jar">
<project name="solr-spatial-light" default="jar">
<property name="version.num" value="0.0.1" />

<property name="src.dir" value="src" />
Expand Down
@@ -1,4 +1,4 @@
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;

public class BenchmarkRunner {
private static final int RUNS = 100;
Expand Down
@@ -1,4 +1,4 @@
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;

import org.apache.solr.client.solrj.SolrQuery;

Expand Down
@@ -1,4 +1,4 @@
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;

import java.util.regex.Pattern;
import java.util.regex.Matcher;
Expand Down
@@ -1,4 +1,4 @@
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;

import java.io.IOException;

Expand Down
Expand Up @@ -4,4 +4,4 @@
* This package provides a query parser plugin for performing Solr queries
* with restriction by distance from a given lat/lng.
*/
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;
@@ -1,4 +1,4 @@
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;

import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
Expand Down
@@ -1,4 +1,4 @@
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;

import org.junit.Test;

Expand Down
@@ -1,4 +1,4 @@
package me.outofti.solrspatial;
package me.outofti.solrspatiallight;

import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServer;
Expand Down

0 comments on commit d7033cf

Please sign in to comment.