Doug local solr was a quick demo, but does work

It was built against apache-solr-1.1.0-incubating, deployment just requires the following

apache-solr-1.1.0-incubating/example/solr/lib pjaol$ ls
geoapi-nogenerics-2.1-M2.jar    jsr108-0.01.jar                 locallucene.jar                 lucene-core-2.2-dev.jar
gt2-referencing-2.3.1.jar       junit.jar                       localsolr.jar

The extra jars are in the lib directory of local lucene.

HTH
P

Sean Timm wrote:
FYI.

-Sean



Subject:
Geographic searching in solr
From:
Doug Steigerwald <[EMAIL PROTECTED]>
Date:
Wed, 12 Sep 2007 09:36:03 -0400 (EDT)
To:
solr-user@lucene.apache.org
To:
solr-user@lucene.apache.org


Not sure if this got through earlier, pine messed up...

Has anyone implemented any sort of geographic searching for Solr?  I've
found Local Lucene
(http://www.nsshutdown.com/projects/lucene/whitepaper/locallucene.htm) by
Patrick O'Leary and there is another project in his CVS called Local Solr
(http://www.nsshutdown.com/viewcvs/viewcvs.cgi/localsolr/).

I've gotten Local Solr and Local Lucene compiled, but trying to drop the
plugin in the Solr lib folder and trying to define the custom FieldTypes in
my scheme results in errors (see below).

<fieldType name="longitude" class="com.pjaol.search.solr.LngField" />

Has anyone gotten Local  Lucene/Solr to work for geographic searches or
implemented anything like this?

I can't actually find any other plugins for Solr to look at and try to
resolve my issues with Local Solr.  Any help would be appreciated.

I've tried this with Solr 1.2, and compiling Solr from the trunk. Java 1.6.

Thanks.

Doug

---error---
Sep 12, 2007 8:22:50 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NoClassDefFoundError: org/apache/solr/schema/FieldType
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
...
...
...

--
Patrick O'Leary

You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles.
 Do you understand this? 
And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.
  - Albert Einstein
View Patrick O Leary's LinkedIn profileView Patrick O Leary's profile

Reply via email to