A Java NoClassDefFoundError of something in com.vividsolutions.jts means
you don't have JTS on your classpath. You should put the JTS jar file in
server/lib/. You can download it from maven-central. Here's a search for
JTS with the 1.14 version:
o copy/mimic.
>
> -- Jack Krupansky
>
> On Fri, Mar 4, 2016 at 10:20 AM, david.w.smi...@gmail.com <
> david.w.smi...@gmail.com> wrote:
>
> > First of all, assuming this is a standard point-in-polygon situation, use
> > the Intersects predicate -- with point
Another path to consider is doing this point-in-zipcode-poly lookup at
index time and enriching the document with a zipcode field (possibly
multi-valued if there is doubt).
On Sat, Mar 5, 2016 at 4:05 AM steve shepard wrote:
> re: Postal Codes and polygons. I've heard of
First of all, assuming this is a standard point-in-polygon situation, use
the Intersects predicate -- with point data it's semantically the same as
IsWithin and Intersects is much faster. I don't know why you used
isDisjointTo in your 2nd example; maybe you want to find when they don't
touch?
> > "",
> > "'0.5681586795334928,-0.673125699210'",
> > "MatchDec",
> > -0.67312569921,
> > "SourceDec",
> > -0.67312569921,
> > "MatchRA",
> >
I just want to interject to say one thing:
You *can* sort on multi-valued fields as-of recent Solr 5 releases. it's
done using the "field" function query with either a "min" or "max" 2nd
argument:
https://cwiki.apache.org/confluence/display/solr/Function+Queries
Of course it'd be nicer to simply
Hello Colin,
If the spatial field you use is the SpatialRecursivePrefixTreeFieldType one
(RPT for short) with geo="true" then the circle shape (i.e. point-radius
filter) implied by the geofilt Solr QParser is on a sphere. That is, it
uses the "great circle" distance computed using the Haversine
Hello,
To have Solr be tolerant to invalid polygons, use the “validationRule”
attribute on the field type definition. This setting and some others are
documented here:
https://locationtech.github.io/spatial4j/apidocs/com/spatial4j/core/context/jts/JtsSpatialContextFactory.html
Try using
Hi Jamie,
Your understanding is inverted. The predicates can be read as:
indexed shape predicate query shape.
For indexed point data, there is almost no semantic different between the
Within and Intersects predicates. There is if the field is multi-valued
and you want to ensure that all of
The Suggester “FileDictionaryFactory” resolves the sourceLocation parameter
against the SolrResourceLoader, and in SolrCloud that’s
ZkSolrResourceLoader. The base SolrResourceLoader supports
a solr.allow.unsafe.resourceloading=true system property to be set which
basically allows you to refer to
at 9:19 AM david.w.smi...@gmail.com
david.w.smi...@gmail.com wrote:
Solr community,
David Smiley, Eric Pugh, Kranti Parisa, and Matt Mitchell are happy to
*finally* announce the book “Apache Sor Enterprise Search Server, Third
Edition” by Packt Publishing. You can find links to buy it Packt’s
Solr community,
David Smiley, Eric Pugh, Kranti Parisa, and Matt Mitchell are happy to
*finally* announce the book “Apache Sor Enterprise Search Server, Third
Edition” by Packt Publishing. You can find links to buy it Packt’s site
Amazon from our book’s official website:
Indeed: https://github.com/dsmiley/SOLR-2155
On Thu, May 21, 2015 at 8:59 PM alexw aw...@crossview.com wrote:
Thanks David. Unfortunately we are on Solr 3.5, so I am not sure whether
RPT
is available. If not, is there a way to patch 3.5 to make it work?
--
View this message in context:
Hi Holger,
It’s not apparent to me why you are using the spatial field to index a
number. Why not simply a “tfloat” or whatever numeric field? Then you
could use {!frange} with a function to get the difference and filter it to
be in the range you want.
RE query parsing (problem #1): you should
Yes, surprisingly enough, if indexed=false, docValues=true — you can still
search. I’ve seen the code behind it; it’s interesting. Rob wrote it.
I’m not sure how scalable it is compared to the inverted index. I suspect
it wouldn’t do well for a lot of distinct values but will fine for a small
ValueSourceParser — yes. You’ll find a ton of them in Solr to get ideas
from.
In your example you forgot the “asc” or “desc”.
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On Fri, Apr 3, 2015 at 9:44 AM, Robert Krüger
Hi Henrique,
Please see the Solr reference guide instead of the “community wiki” you
referenced:
https://cwiki.apache.org/confluence/display/solr/Spatial+Search (you can
download one for 4.10; the online link is always for the latest).
For spatial filtering, *especially* at-scale, you really
I noticed you have an ‘’ immediately preceding the geodist() asc at the
very end of the query/URL; that’s supposed to be a comma since group.sort
is a comma delimited list of sorts.
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On
A Lucene MultiPhraseQuery would work, with each phrase position having two
Terms -- the as-seen word in the query and the term ‘?’. Performance
wouldn’t be so great given that ‘?’ would appear extremely frequently. A
variation solving the performance is to use CommonGrams but it would add
some
the parameters to:
q=*:*fq=typ:strassefq={!geofilt}sfield=geometrypt=51.370570625523,12.369290471603d=1.0sort=geofilt()
asc
Kind regards,
Dirk
Tue, 24 Feb 2015 19:42:03 GMT, david.w.smi...@gmail.com wrote:
Hi Dirk,
The RPT field type can be used for distance sorting/boosting but it's a
memory
Hi,
This will “return all the documents in the index” because you did nothing
to filter them out. Your query is *:* (everything) and there are no filter
queries.
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On Wed, Feb 25, 2015
docs
q=*:*fq={!geofilt}sfield=start_stationpt=40.71754834,-74.01322069d=0.2
-- returns 1484 docs
Not sure why the first query with returns 0 documents
On Wed, Feb 25, 2015 at 8:46 PM, david.w.smi...@gmail.com
david.w.smi...@gmail.com wrote:
Hi,
This will return all the documents
Hi Dirk,
The RPT field type can be used for distance sorting/boosting but it’s a
memory pig when used as-such so don’t do it unless you have to. You only
have to if you have a multi-valued point field. If you have single-valued,
use LatLonType specifically for distance sorting.
Your sample
Hi vit,
FYI that’s the old wiki and it contains a notice in red at the top that you
should refer to its replacement at:
https://cwiki.apache.org/confluence/display/solr/Spatial+Search That said,
there are some small details that haven’t been migrated but there is
outdated info too so beware.
As in the layout shipped with Solr? Try putting the JTS ‘jar’ in lib/ext
and let us know if that worked. I think it will but I forget.
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On Thu, Dec 11, 2014 at 12:40 PM, mathaix
Mathaix,
I bet you don’t have JTS on your classpath. See the spatial page in the
Solr ref guide.
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On Wed, Dec 10, 2014 at 4:50 PM, mathaix mmat...@placester.com wrote:
So I
Thomas,
Thank you for communicating on the list about your experience and raising
the JIRA issue. I meant to respond last night but lost the chance. (and
Jack, thanks for helping Thomas out). I’ll follow-up to SOLR-6784.
SOLR-6781 now has a bug-fix patch. I’ll apply it later today.
~ David
John,
I’m not seeing this problem. Presumably we’re talking about the default
highlighter (the most accurate one) but I figure the others would match it
too. To test, I added the following to HighlightTest.java in Solr and this
test passed:
@Test
public void testSpan() {
final String
of Violence: Wealth without work, Pleasure without conscience,
Knowledge without character, Commerce without morality, Science without
humanity, Worship without sacrifice, Politics without principles”
- Mahatma Gandhi
On 27 October 2014 18:46, david.w.smi...@gmail.com
david.w.smi...@gmail.com
Hi Mark,
I asked a follow-up question/observation to your Stackoverflow
instantiation of your question.
I also wrote the following, which doesn’t yet fit into an answer because I
don’t know what problem you are yet experiencing:
Some technical details: geo=true|false is an attribute on the
On Sun, Aug 24, 2014 at 2:29 AM, Bostic, Alex alex.bos...@urs.com wrote:
Ok updating my field type to the below, allowed me to index :-) HUGE THANKS
fieldType name=location_rpt
class=solr.SpatialRecursivePrefixTreeFieldType
solr instances and google maps engine
datastore in the cloud and it works like a charm.
Guilherme Pires
Geospatial Intelligence @ CGI
guilherme.pi...@cgi.com
De: david.w.smi...@gmail.com [david.w.smi...@gmail.com]
Enviado: quarta-feira, 20 de Agosto
-
From: david.w.smi...@gmail.com [mailto:david.w.smi...@gmail.com]
Sent: Saturday, August 23, 2014 9:15 AM
To: solr-user@lucene.apache.org
Subject: Re: Indexing and Querying MS SQL Server 2012 Spatial
The jts-1.13.jar file (other JTS jars that come with it aren’t used) needs to
go on the java
.
From: david.w.smi...@gmail.com [david.w.smi...@gmail.com]
Sent: Saturday, August 23, 2014 2:03 PM
To: solr-user@lucene.apache.org
Subject: Re: Indexing and Querying MS SQL Server 2012 Spatial
Putting JTS where you put it is fine temporarily but I strongly recommend
against
Cool Doug! I look forward to digging into this.
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On Fri, Aug 22, 2014 at 10:34 AM, Doug Turnbull
dturnb...@opensourceconnections.com wrote:
Greetings from the OpenSource
Hi Alex,
I guess a spatial tutorial might be helpful, but there isn’t one. There is
a sample at the Lucene-spatial layer but not up at Solr. You need to use
WKT syntax for line’s and polys, and you may do so as well for other
shapes. And in the schema use location_rpt copied from Solr’s
The wiki page on the technique cleans up some small errors from Hoss’s
presentation:
http://wiki.apache.org/solr/SpatialForTimeDurations
But please try Solr trunk which has first-class support for date durations:
https://issues.apache.org/jira/browse/SOLR-6103
Soonish I’ll back-port to 4x.
~
Hi Elisabeth,
Sorry for not responding sooner; I forgot.
You’re in need of some spatial nearest-neighbor code I wrote but it isn’t
open-sourced yet. It works on the RPT grid.
Any way, you should consider doing this in two searches: the first query
tries the bbox provided, and if that returns
On Wed, Jun 11, 2014 at 7:46 AM, Robert Krüger krue...@lesspain.de wrote:
Or will I have to set up distributed search to achieve that?
Yes — you have to shard it to achieve that. The shards could be on the
same node.
There were some discussions this year in JIRA about being able to do
I suggest investigating this using a known example that does this, such as
LatLonType and geodist(). LatLonType registers the field in a custom way
too.
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On Sun, Jun 8, 2014 at 7:54
I may be misunderstanding the problem, but if it’s what I think it is, then
users can work-around this now quite easily by using Solr faceting’s
ability to exclude a named/tagged filter query:
q=classIDs:12
fl=PrSKU
fq={!collapse tag=collapse field=PrSKU}
facet=true
facet.field={!
to learn deeply about solr spatial, i am new in solr and i
really want to contribute here :)
Any help will be really appreciated.
@David Sorry for the late reply.
With Regards
Aman Tandon
On Tue, May 27, 2014 at 9:36 AM, david.w.smi...@gmail.com
david.w.smi...@gmail.com wrote:
Hi
What do you get then? Suggestions, but not the one you’re looking for, or
is it deemed correctly spelled?
Have you tried another spellChecker impl, for troubleshooting purposes?
~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley
On
different than what Levestien
distance
calculation ? I have set maxEdits to 1 , assuming that this corresponds
to
the maxDistance.
Thanks for your help!
On Mon, Jun 2, 2014 at 1:54 PM, david.w.smi...@gmail.com
david.w.smi...@gmail.com wrote:
What do you get then? Suggestions
On IRC you said you found out the answers before I came along. For
everyone else’s benefit:
* Solr’s “documentation” is essentially the “Solr Reference Guide”. Only
look at the wiki as a secondary source.
* See “location_rpt” in the example schema.xml which supports multi-valued
spatial data.
Alice,
RE grouping, try Solr 4.8’s new “collapse” qparser w/ “expand
SearchComponent. The ref guide has the docs. It’s usually a faster
equivalent approach to group=true
Do you care to comment further on NewEgg’s apparent switch from Endeca to
Solr? (confirm true/false and rationale)
~ David
Hi Aman,
That’s an interesting feature request that I haven’t heard before.
First reaction: Helliosearch (a fork of Solr that is kept up to date with
changes from Solr) is extremely close to supporting such a thing because it
supports sorting facets by Helliosearch specific aggregation
Hi Era,
I appreciate the scattered documentation is confusing for users. The use
of spatial for time durations is definitely not an official way to do it;
it’s clearly a hack/trick — one that works pretty well if you know the
issues to watch out for. So I don’t see it getting documented on the
No movement here lately but this is something to read if you're venturing
down this path:
http://wiki.apache.org/solr/SpatialClustering
On Wed, Apr 9, 2014 at 1:19 AM, Aman Tandon amantandon...@gmail.com wrote:
How can we create the heat maps using solr spatial search?
Thanks
Aman Tandon
On Mon, Apr 7, 2014 at 8:09 PM, david.w.smi...@gmail.com
david.w.smi...@gmail.com wrote:
Hi,
I'm not sure why you are asking or maybe I'm not getting what you
*really*
want to know. You'll get the geodesic distance (i.e. the great circle
distance, the distance on the surface of a sphere
for every results?
On Tue, Apr 8, 2014 at 6:51 PM, david.w.smi...@gmail.com
david.w.smi...@gmail.com wrote:
You're computing the distance from the locations you've put in your index
to 0,0. Why 0,0? Wouldn't you want to provide a point at query time?
On Tue, Apr 8, 2014 at 7:41 AM, Aman
Hi,
This is definitely not possible with Solr. Use GraphHopper.
~ David
On Mon, Apr 7, 2014 at 5:09 AM, Matteo Tarantino matteo.tarant...@gmail.com
wrote:
Hi all,
this is my first message on this mailing list, so I hope I'm doing all
correctly.
My problem is: I have to create a search
Hi,
I'm not sure why you are asking or maybe I'm not getting what you *really*
want to know. You'll get the geodesic distance (i.e. the great circle
distance, the distance on the surface of a sphere) from 0,0 (off the coast
of Africa), to each point indexed in your location field.
~ David
On
53 matches
Mail list logo