Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C556F200B62 for ; Fri, 12 Aug 2016 18:52:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C37F1160AB0; Fri, 12 Aug 2016 16:52:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EBB44160A85 for ; Fri, 12 Aug 2016 18:52:00 +0200 (CEST) Received: (qmail 36577 invoked by uid 500); 12 Aug 2016 16:51:59 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 36566 invoked by uid 99); 12 Aug 2016 16:51:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2016 16:51:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 58E87C041B for ; Fri, 12 Aug 2016 16:51:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.426 X-Spam-Level: X-Spam-Status: No, score=-4.426 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001, TVD_FW_GRAPHIC_NAME_MID=0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id zLJeXVwIVDOY for ; Fri, 12 Aug 2016 16:51:52 +0000 (UTC) Received: from dfw-mailout2.raytheon.com (dfw-mailout2.raytheon.com [199.46.199.208]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id E93435F65B for ; Fri, 12 Aug 2016 16:51:50 +0000 (UTC) Received: from tx-mailout1.directory.ray.com (tx-mailout1.directory.ray.com [147.25.138.100]) by dfw-mailout2.raytheon.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id u7CGpgYs026892 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 12 Aug 2016 16:51:42 GMT Received: from mk2-msg01.raymail.ray.com (mk2-msg01.mck.us.ray.com [138.126.190.141]) by tx-mailout1.directory.ray.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id u7CGpg09029249 sender Jennifer.Coston@raytheon.com for ; Fri, 12 Aug 2016 16:51:42 GMT In-Reply-To: References: Subject: Re: Need Help Resolving Unknown Shape Definition Error X-KeepSent: C748BF6C:D5E57E6E-8525800D:005C79C6; type=4; name=$KeepSent To: solr-user@lucene.apache.org X-Mailer: Lotus Notes Release 8.5.2FP4 SHF58 March 12, 2012 Message-ID: From: Jennifer Coston Date: Fri, 12 Aug 2016 12:51:41 -0400 X-MIMETrack: Serialize by Router on MK2-MSG01/SRV/Raytheon(Release 9.0.1FP3|January 12, 2015) at 08/12/2016 11:51:41 MIME-Version: 1.0 Content-type: multipart/related; Boundary="0__=0ABB0A9EDFCFFF568f9e8a93df938690918c0ABB0A9EDFCFFF56" archived-at: Fri, 12 Aug 2016 16:52:03 -0000 --0__=0ABB0A9EDFCFFF568f9e8a93df938690918c0ABB0A9EDFCFFF56 Content-type: multipart/alternative; Boundary="1__=0ABB0A9EDFCFFF568f9e8a93df938690918c0ABB0A9EDFCFFF56" --1__=0ABB0A9EDFCFFF568f9e8a93df938690918c0ABB0A9EDFCFFF56 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable I figured out the solution to this and figured I would send out the solution in case anyone else runs into this issue and stumbles across t= his. It turns out that I was using an outdated version of the jts jar. When = I updated to version 1.14 it works. Thanks, Jennifer Coston From: Jennifer Coston To: solr-user@lucene.apache.org Date: 08/12/2016 09:34 AM Subject: Re: Need Help Resolving Unknown Shape Definition Error Update: I get the same error when I try to use curl instead of the admi= n console. I'm really stuck on this. Any help, tips, suggestions, etc. wo= uld be greatly appreciated! Curl Command: curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983/solr/spaceknow/update/json/docs' --data-binary '{"observationId":"8e09f47f", "observationType":"spaceknow", "startTime":"2015-09-19T21:03:51Z", "endTime":"2015-09-19T21:03:51Z", "receiptTime":"2016-07-29T15:49:49.328Z", "locationLat":38.922501507881= 4, "locationLon":-77.22900299194423, "position":"38.9225015078814,-77.22900299194423", "positionWkt":"POLYGO= N ((-77.23 38.922, -77.23 38.923, -77.228 38.923, -77.228 38.922, -77.23 38.922))", "provider":"a"}' Response: curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983/solr/spaceknow/update/json/docs' --data-binary '{"observationId":"8e09f47f", "observationType":"spaceknow", "startTime":"2015-09-19T21:03:51Z", "endTime":"2015-09-19T21:03:51Z", "receiptTime":"2016-07-29T15:49:49.328Z", "locationLat":38.922501507881= 4, "locationLon":-77.22900299194423, "position":"38.9225015078814,-77.22900299194423", "positionWkt":"POLYGO= N ((-77.23 38.922, -77.23 38.923, -77.228 38.923, -77.228 38.922, -77.23 38.922))", "provider":"dg"}' Full Schema.xml file: observationId Thanks! Jennifer Coston Jennifer Coston ---08/11/2016 04:04:31 PM---Hello, I am trying to setup= a local solr core so that I can perform Spatial From: Jennifer Coston To: solr-user@lucene.apache.org Date: 08/11/2016 04:04 PM Subject: Need Help Resolving Unknown Shape Definition Error Hello, I am trying to setup a local solr core so that I can perform Spatial searches on it. I am using version 5.2.1. I have updated my schema.xml = file to include the location-rpt fieldType: And I have defined my field to use this type: I also added the jts-1.4.0.jar file to C:\solr-5.2.1\server\solr-webapp= \webapp\WEB-INF\lib. However when I try to add a document through the Solr Admin Console I a= m seeing this response: { "responseHeader": { "status": 400, "QTime": 6 }, "error": { "msg": "Unknown Shape definition [POLYGON((-77.23 38.922, -77.23 38.923, -77.228 38.923, -77.228 38.922, -77.23 38.922))]", "code": 400 } } I can submit documents successfully if I remove the positionWkt field. = Did I miss a configuration step? Here is the document I am trying to add: { "observationId": "8e09f47f", "observationType": "image", "startTime": "2015-09-19T21:03:51Z", "endTime": "2015-09-19T21:03:51Z", "receiptTime": "2016-07-29T15:49:49.328Z", "locationLat": 38.9225015078814, "locationLon": -77.22900299194423, "position": "38.9225015078814,-77.22900299194423", "positionWkt": "POLYGON((-77.23 38.922, -77.23 38.923, -77.228 38.923, -77.228 38.922, -77.23 38.922))", "provider": "a" } Here are the fields I added to the schema.xml file (I started with the template, please let me know if you need the whole thing): observationId Thank you! Jennifer = --1__=0ABB0A9EDFCFFF568f9e8a93df938690918c0ABB0A9EDFCFFF56 Content-type: text/html; charset=US-ASCII Content-Disposition: inline Content-transfer-encoding: quoted-printable

I figured out the solution to t= his and figured I would send out the solution in case anyone else runs = into this issue and stumbles across this. It turns out that I was using= an outdated version of the jts jar. When I updated to version 1.14 it = works.

Thanks,

    Jenn= ifer Coston

3D"InactiveJennifer Coston ---08/12/2016 09:34:14 AM---Update: I get th= e same error when I try to use curl instead of the admin console. I'm r= eally stuck o

From: Jennifer Coston <Jennifer.Coston@r= aytheon.com>
To: solr-user@lucene.apache.org
Date: 08/12/2016 09:34 AM
Subject: = Re: Need Help Resolving Unknown Sh= ape Definition Error




Update: I get the same error when = I try to use curl instead of the admin console. I'm really stuck on thi= s. Any help, tips, suggestions, etc. would be greatly appreciated!

Curl Command:

curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983= /solr/spaceknow/update/json/docs' --data-binary '{"observationId&q= uot;:"8e09f47f", "observationType":"spaceknow&= quot;, "startTime":"2015-09-19T21:03:51Z", "en= dTime":"2015-09-19T21:03:51Z", "receiptTime":&= quot;2016-07-29T15:49:49.328Z", "locationLat":38.9225015= 078814, "locationLon":-77.22900299194423, "position"= ;:"38.9225015078814,-77.22900299194423", "positionWkt&qu= ot;:"POLYGON((-77.23 38.922, -77.23 38.923, -77.228 38.923, -77.22= 8 38.922, -77.23 38.922))", "provider":"a"}'

Response:

curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983= /solr/spaceknow/update/json/docs' --data-binary '{"observationId&q= uot;:"8e09f47f", "observationType":"spaceknow&= quot;, "startTime":"2015-09-19T21:03:51Z", "en= dTime":"2015-09-19T21:03:51Z", "receiptTime":&= quot;2016-07-29T15:49:49.328Z", "locationLat":38.9225015= 078814, "locationLon":-77.22900299194423, "position"= ;:"38.9225015078814,-77.22900299194423", "positionWkt&qu= ot;:"POLYGON((-77.23 38.922, -77.23 38.923, -77.228 38.923, -77.22= 8 38.922, -77.23 38.922))", "provider":"dg"}'<= /font>

Full Schema.xml file:
<?xml version=3D"1.0" encoding=3D"UTF-8" ?> <!--
Licensed to the Apache Software Foundation (ASF) under one or more
= contributor license agreements.  See the NOTICE file distributed = with
this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.= 0
(the "License"); you may not use this file except in complia= nce with
the License.  You may obtain a copy of the License at


   
http://= www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" B= ASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implie= d.
See the License for the specific language governing permissions and limitations under the License.
-->


<schema name=3D"example" version=3D"1.5">
=  
  <field name=3D"_version_" type=3D"long" = indexed=3D"true" stored=3D"true"/>
  <field name=3D"_root_" type=3D"string" i= ndexed=3D"true" stored=3D"false"/>
  <field name=3D"id" type=3D"string" index= ed=3D"true" stored=3D"true" required=3D"true&q= uot; multiValued=3D"false" />
 
  <dynamicField name=3D"*_i"  type=3D"int&= quot;    indexed=3D"true"  stored=3D"true= "/>
  <dynamicField name=3D"*_is" type=3D"int"=    indexed=3D"true"  stored=3D"true"= ;  multiValued=3D"true"/>
  <dynamicField name=3D"*_s"  type=3D"stri= ng"  indexed=3D"true"  stored=3D"true&quo= t; />
  <dynamicField name=3D"*_ss" type=3D"string&qu= ot;  indexed=3D"true"  stored=3D"true" mu= ltiValued=3D"true"/>
  <dynamicField name=3D"*_l"  type=3D"long= "   indexed=3D"true"  stored=3D"true"= ;/>
  <dynamicField name=3D"*_ls" type=3D"long"= ;   indexed=3D"true"  stored=3D"true" &nb= sp;multiValued=3D"true"/>
  <dynamicField name=3D"*_t"  type=3D"text= _general"    indexed=3D"true"  stored=3D&= quot;true"/>
  <dynamicField name=3D"*_txt" type=3D"text_gen= eral"   indexed=3D"true"  stored=3D"true&= quot; multiValued=3D"true"/>
  <dynamicField name=3D"*_en"  type=3D"tex= t_en"    indexed=3D"true"  stored=3D"= ;true" multiValued=3D"true"/>
  <dynamicField name=3D"*_b"  type=3D"bool= ean" indexed=3D"true" stored=3D"true"/>
=   <dynamicField name=3D"*_bs" type=3D"boolean&q= uot; indexed=3D"true" stored=3D"true"  multiVa= lued=3D"true"/>
  <dynamicField name=3D"*_f"  type=3D"floa= t"  indexed=3D"true"  stored=3D"true"= ;/>
  <dynamicField name=3D"*_fs" type=3D"float&quo= t;  indexed=3D"true"  stored=3D"true" &nb= sp;multiValued=3D"true"/>
  <dynamicField name=3D"*_d"  type=3D"doub= le" indexed=3D"true"  stored=3D"true"/>= ;
  <dynamicField name=3D"*_ds" type=3D"double&qu= ot; indexed=3D"true"  stored=3D"true"  mu= ltiValued=3D"true"/>
  <dynamicField name=3D"*_coordinate"  type=3D&= quot;tdouble" indexed=3D"true"  stored=3D"fals= e" />
  <dynamicField name=3D"*_dt"  type=3D"dat= e"    indexed=3D"true"  stored=3D"tr= ue"/>
  <dynamicField name=3D"*_dts" type=3D"date&quo= t;    indexed=3D"true"  stored=3D"true&qu= ot; multiValued=3D"true"/>
  <dynamicField name=3D"*_p"  type=3D"loca= tion" indexed=3D"true" stored=3D"true"/>   <dynamicField name=3D"*_ti" type=3D"tint"= ;    indexed=3D"true"  stored=3D"true&quo= t;/>
  <dynamicField name=3D"*_tl" type=3D"tlong&quo= t;   indexed=3D"true"  stored=3D"true"/&g= t;
  <dynamicField name=3D"*_tf" type=3D"tfloat&qu= ot;  indexed=3D"true"  stored=3D"true"/&g= t;
  <dynamicField name=3D"*_td" type=3D"tdouble&q= uot; indexed=3D"true"  stored=3D"true"/>   <dynamicField name=3D"*_tdt" type=3D"tdate&qu= ot;  indexed=3D"true"  stored=3D"true"/&g= t;
  <dynamicField name=3D"*_c"   type=3D"cur= rency" indexed=3D"true"  stored=3D"true"/= >
  <dynamicField name=3D"ignored_*" type=3D"igno= red" multiValued=3D"true"/>
  <dynamicField name=3D"attr_*" type=3D"text_ge= neral" indexed=3D"true" stored=3D"true" multiV= alued=3D"true"/>
  <dynamicField name=3D"random_*" type=3D"rando= m" />


   <uniqueKey>observationId</uniqueKey>
   
<!-- MY FIELDS -->
   <copyField source=3D"observationId" dest=3D&= quot;id"/>
   <!-- 'id' field already defined above. no need to expl= icitly define again. -->
   <field name=3D"observationId" type=3D"s= tring" indexed=3D"true" stored=3D"true" requir= ed=3D"true" multiValued=3D"false"/>
   <field name=3D"observationType" type=3D"= ;string" indexed=3D"true" stored=3D"true"/>=
   <field name=3D"startTime" type=3D"tdate= " indexed=3D"true" stored=3D"true"/>
   <field name=3D"endTime" type=3D"tdate&q= uot; indexed=3D"true" stored=3D"true"/>
   <field name=3D"receiptTime" type=3D"tda= te" indexed=3D"true" stored=3D"true"/>
=    <field name=3D"locationLat" type=3D"tfl= oat" indexed=3D"true" stored=3D"true"/>    <field name=3D"locationLon" type=3D"tfl= oat" indexed=3D"true" stored=3D"true"/> <field name=3D"position" type=3D"location" index= ed=3D"true" stored=3D"true"/>
   <field name=3D"positionWkt" type=3D"loc= ation_rpt" indexed=3D"true" stored=3D"true" /&= gt;


   <fieldType name=3D"string" class=3D"sol= r.StrField" sortMissingLast=3D"true" />
   <fieldType name=3D"boolean" class=3D"so= lr.BoolField" sortMissingLast=3D"true"/>
   <fieldType name=3D"int" class=3D"solr.T= rieIntField" precisionStep=3D"0" positionIncrementGap=3D= "0"/>
   <fieldType name=3D"float" class=3D"solr= .TrieFloatField" precisionStep=3D"0" positionIncrementGa= p=3D"0"/>
   <fieldType name=3D"long" class=3D"solr.= TrieLongField" precisionStep=3D"0" positionIncrementGap=3D= "0"/>
   <fieldType name=3D"double" class=3D"sol= r.TrieDoubleField" precisionStep=3D"0" positionIncrement= Gap=3D"0"/>
   <fieldType name=3D"tint" class=3D"solr.= TrieIntField" precisionStep=3D"8" positionIncrementGap=3D= "0"/>
   <fieldType name=3D"tfloat" class=3D"sol= r.TrieFloatField" precisionStep=3D"8" positionIncrementG= ap=3D"0"/>
   <fieldType name=3D"tlong" class=3D"solr= .TrieLongField" precisionStep=3D"8" positionIncrementGap= =3D"0"/>
   <fieldType name=3D"tdouble" class=3D"so= lr.TrieDoubleField" precisionStep=3D"8" positionIncremen= tGap=3D"0"/>
   <fieldType name=3D"date" class=3D"solr.= TrieDateField" precisionStep=3D"0" positionIncrementGap=3D= "0"/>
   <fieldType name=3D"tdate" class=3D"solr= .TrieDateField" precisionStep=3D"6" positionIncrementGap= =3D"0"/>
   <fieldType name=3D"binary" class=3D"sol= r.BinaryField"/>
   <fieldType name=3D"random" class=3D"sol= r.RandomSortField" indexed=3D"true" />
   <fieldType name=3D"text_ws" class=3D"so= lr.TextField" positionIncrementGap=3D"100">
     <analyzer>
       <tokenizer class=3D"solr.Whitespace= TokenizerFactory"/>
     </analyzer>
   </fieldType>
   <fieldType name=3D"text_general" class=3D&qu= ot;solr.TextField" positionIncrementGap=3D"100">
     <analyzer type=3D"index">
       <tokenizer class=3D"solr.StandardTo= kenizerFactory"/>
       <filter class=3D"solr.StopFilterFac= tory" ignoreCase=3D"true" words=3D"stopwords.txt&qu= ot; />
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
     </analyzer>
     <analyzer type=3D"query">
       <tokenizer class=3D"solr.StandardTo= kenizerFactory"/>
       <filter class=3D"solr.StopFilterFac= tory" ignoreCase=3D"true" words=3D"stopwords.txt&qu= ot; />
       <filter class=3D"solr.SynonymFilter= Factory" synonyms=3D"synonyms.txt" ignoreCase=3D"tr= ue" expand=3D"true"/>
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
     </analyzer>
   </fieldType>
   <fieldType name=3D"text_en" class=3D"so= lr.TextField" positionIncrementGap=3D"100">
     <analyzer type=3D"index">
       <tokenizer class=3D"solr.StandardTo= kenizerFactory"/>
       <filter class=3D"solr.StopFilterFac= tory"
               ignoreCase=3D&q= uot;true"
               words=3D"l= ang/stopwords_en.txt"
               />
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
<filter class=3D"solr.EnglishPossessiveFilterFactory"/>=
       <filter class=3D"solr.KeywordMarker= FilterFactory" protected=3D"protwords.txt"/>
       <filter class=3D"solr.PorterStemFil= terFactory"/>
     </analyzer>
     <analyzer type=3D"query">
       <tokenizer class=3D"solr.StandardTo= kenizerFactory"/>
       <filter class=3D"solr.SynonymFilter= Factory" synonyms=3D"synonyms.txt" ignoreCase=3D"tr= ue" expand=3D"true"/>
       <filter class=3D"solr.StopFilterFac= tory"
               ignoreCase=3D&q= uot;true"
               words=3D"l= ang/stopwords_en.txt"
               />
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
<filter class=3D"solr.EnglishPossessiveFilterFactory"/>=
       <filter class=3D"solr.KeywordMarker= FilterFactory" protected=3D"protwords.txt"/>
       <filter class=3D"solr.PorterStemFil= terFactory"/>
     </analyzer>
   </fieldType>
   <fieldType name=3D"text_en_splitting" class=3D= "solr.TextField" positionIncrementGap=3D"100" autoG= eneratePhraseQueries=3D"true">
     <analyzer type=3D"index">
       <tokenizer class=3D"solr.Whitespace= TokenizerFactory"/>
       <filter class=3D"solr.StopFilterFac= tory"
               ignoreCase=3D&q= uot;true"
               words=3D"l= ang/stopwords_en.txt"
               />
       <filter class=3D"solr.WordDelimiter= FilterFactory" generateWordParts=3D"1" generateNumberPar= ts=3D"1" catenateWords=3D"1" catenateNumbers=3D&quo= t;1" catenateAll=3D"0" splitOnCaseChange=3D"1"= />
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
       <filter class=3D"solr.KeywordMarker= FilterFactory" protected=3D"protwords.txt"/>
       <filter class=3D"solr.PorterStemFil= terFactory"/>
     </analyzer>
     <analyzer type=3D"query">
       <tokenizer class=3D"solr.Whitespace= TokenizerFactory"/>
       <filter class=3D"solr.SynonymFilter= Factory" synonyms=3D"synonyms.txt" ignoreCase=3D"tr= ue" expand=3D"true"/>
       <filter class=3D"solr.StopFilterFac= tory"
               ignoreCase=3D&q= uot;true"
               words=3D"l= ang/stopwords_en.txt"
               />
       <filter class=3D"solr.WordDelimiter= FilterFactory" generateWordParts=3D"1" generateNumberPar= ts=3D"1" catenateWords=3D"0" catenateNumbers=3D&quo= t;0" catenateAll=3D"0" splitOnCaseChange=3D"1"= />
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
       <filter class=3D"solr.KeywordMarker= FilterFactory" protected=3D"protwords.txt"/>
       <filter class=3D"solr.PorterStemFil= terFactory"/>
     </analyzer>
   </fieldType>
   <fieldType name=3D"text_en_splitting_tight" = class=3D"solr.TextField" positionIncrementGap=3D"100&quo= t; autoGeneratePhraseQueries=3D"true">
     <analyzer>
       <tokenizer class=3D"solr.Whitespace= TokenizerFactory"/>
       <filter class=3D"solr.SynonymFilter= Factory" synonyms=3D"synonyms.txt" ignoreCase=3D"tr= ue" expand=3D"false"/>
       <filter class=3D"solr.StopFilterFac= tory" ignoreCase=3D"true" words=3D"lang/stopwords_e= n.txt"/>
       <filter class=3D"solr.WordDelimiter= FilterFactory" generateWordParts=3D"0" generateNumberPar= ts=3D"0" catenateWords=3D"1" catenateNumbers=3D&quo= t;1" catenateAll=3D"0"/>
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
       <filter class=3D"solr.KeywordMarker= FilterFactory" protected=3D"protwords.txt"/>
       <filter class=3D"solr.EnglishMinima= lStemFilterFactory"/>
       <filter class=3D"solr.RemoveDuplica= tesTokenFilterFactory"/>
     </analyzer>
   </fieldType>
   <fieldType name=3D"text_general_rev" class=3D= "solr.TextField" positionIncrementGap=3D"100">      <analyzer type=3D"index">
       <tokenizer class=3D"solr.StandardTo= kenizerFactory"/>
       <filter class=3D"solr.StopFilterFac= tory" ignoreCase=3D"true" words=3D"stopwords.txt&qu= ot; />
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
       <filter class=3D"solr.ReversedWildc= ardFilterFactory" withOriginal=3D"true"
          maxPosAsterisk=3D"3" maxP= osQuestion=3D"2" maxFractionAsterisk=3D"0.33"/><= br>      </analyzer>
     <analyzer type=3D"query">
       <tokenizer class=3D"solr.StandardTo= kenizerFactory"/>
       <filter class=3D"solr.SynonymFilter= Factory" synonyms=3D"synonyms.txt" ignoreCase=3D"tr= ue" expand=3D"true"/>
       <filter class=3D"solr.StopFilterFac= tory" ignoreCase=3D"true" words=3D"stopwords.txt&qu= ot; />
       <filter class=3D"solr.LowerCaseFilt= erFactory"/>
     </analyzer>
   </fieldType>
   <fieldType name=3D"alphaOnlySort" class=3D&q= uot;solr.TextField" sortMissingLast=3D"true" omitNorms=3D= "true">
     <analyzer>
       <tokenizer class=3D"solr.KeywordTok= enizerFactory"/>
       <filter class=3D"solr.LowerCaseFilt= erFactory" />
       <filter class=3D"solr.TrimFilterFac= tory" />
       <filter class=3D"solr.PatternReplac= eFilterFactory"
               pattern=3D"= ;([^a-z])" replacement=3D"" replace=3D"all"        />
     </analyzer>
   </fieldType>
   <fieldType name=3D"lowercase" class=3D"= solr.TextField" positionIncrementGap=3D"100">
     <analyzer>
       <tokenizer class=3D"solr.KeywordTok= enizerFactory"/>
       <filter class=3D"solr.LowerCaseFilt= erFactory" />
     </analyzer>
   </fieldType>
   <fieldType name=3D"ignored" stored=3D"f= alse" indexed=3D"false" multiValued=3D"true" c= lass=3D"solr.StrField" />
   <fieldType name=3D"point" class=3D"solr= .PointType" dimension=3D"2" subFieldSuffix=3D"_d&qu= ot;/>
   
<fieldType name=3D"location" class=3D"solr.LatLonType= " subFieldSuffix=3D"_coordinate"/>


   <fieldType name=3D"location_rpt" class=3D&qu= ot;solr.SpatialRecursivePrefixTreeFieldType"
       geo=3D"false" distErrPct=3D"= 0.025" maxDistErr=3D"0.001" distanceUnits=3D"degree= s" />


   <fieldType name=3D"bbox" class=3D"solr.= BBoxField"
              geo=3D"true"= ; distanceUnits=3D"kilometers" numberType=3D"_bbox_coord= " />
   <fieldType name=3D"_bbox_coord" class=3D&quo= t;solr.TrieDoubleField" precisionStep=3D"8" docValues=3D= "true" stored=3D"false"/>


   <fieldType name=3D"currency" class=3D"s= olr.CurrencyField" precisionStep=3D"8" defaultCurrency=3D= "USD" currencyConfig=3D"currency.xml" />
</schema>


Thanks!
 
    Jen= nifer Coston


Jennifer = Coston ---08/11/2016 04:04:31 PM---Hello, I am trying to setup a local = solr core so that I can perform Spatial

From:
Jennifer Coston <J= ennifer.Coston@raytheon.com>
To:
solr-user@lucene.apache= .org
Date:
08/11/2016 04:04 PM
Subject:
Need Help Resolvin= g Unknown Shape Definition Error=





Hello,

I am trying to setup a local solr core so that I can perform Spatial searches on it. I am using version 5.2.1. I have updated my schema.xml = file
to include the location-rpt fieldType:

<fieldType name=3D"location_rpt"
class=3D"solr.SpatialRecursivePrefixTreeFieldType"
      geo=3D"false" distErrPct=3D"0.025&= quot; maxDistErr=3D"0.001"
distanceUnits=3D"degrees" />

And I have defined my field to use this type:

<field name=3D"positionWkt" type=3D"location_rpt"= ; indexed=3D"true"
stored=3D"true" />

I also added the jts-1.4.0.jar file to C:\solr-5.2.1\server\solr-webapp=
\webapp\WEB-INF\lib.

However when I try to add a document through the Solr Admin Console I a= m
seeing this response:

{
"responseHeader": {
  "status": 400,
  "QTime": 6
},
"error": {
  "msg": "Unknown Shape definition [POLYGON((-77.2= 3 38.922, -77.23
38.923, -77.228 38.923, -77.228 38.922, -77.23 38.922))]",
  "code": 400
}
}

I can submit documents successfully if I remove the positionWkt field. = Did
I miss a configuration step?

Here is the document I am trying to add:

{
      "observationId": "8e09f47f",<= br>       "observationType": "image",       "startTime": "2015-09-19T21:03:51Z= ",
      "endTime": "2015-09-19T21:03:51Z&q= uot;,
      "receiptTime": "2016-07-29T15:49:4= 9.328Z",
      "locationLat": 38.9225015078814,
      "locationLon": -77.22900299194423,
      "position": "38.9225015078814,-77.= 22900299194423",
      "positionWkt": "POLYGON((-77.23 38= .922, -77.23 38.923, -77.228
38.923, -77.228 38.922, -77.23 38.922))",
      "provider": "a"
}

Here are the fields I added to the schema.xml file (I started with the<= br> template, please let me know if you need the whole thing):

<uniqueKey>observationId</uniqueKey>

<!-- MY FIELDS -->
<copyField source=3D"observationId" dest=3D"id"/= >
<!-- 'id' field already defined above. no need to explicitly define = again.
-->
<field name=3D"observationId" type=3D"string" in= dexed=3D"true" stored=3D"true"
required=3D"true" multiValued=3D"false"/>
<field name=3D"observationType" type=3D"string" = indexed=3D"true" stored=3D"true"/>
<field name=3D"startTime" type=3D"tdate" indexed= =3D"true" stored=3D"true"/>
<field name=3D"endTime" type=3D"tdate" indexed=3D= "true" stored=3D"true"/>
<field name=3D"receiptTime" type=3D"tdate" index= ed=3D"true" stored=3D"true"/>
<field name=3D"locationLat" type=3D"tfloat" inde= xed=3D"true" stored=3D"true"/>
<field name=3D"locationLon" type=3D"tfloat" inde= xed=3D"true" stored=3D"true"/>
<field name=3D"position" type=3D"location" index= ed=3D"true" stored=3D"true"/>
<field name=3D"positionWkt" type=3D"location_rpt"= ; indexed=3D"true"
stored=3D"true" />

Thank you!

Jennifer

= --1__=0ABB0A9EDFCFFF568f9e8a93df938690918c0ABB0A9EDFCFFF56-- --0__=0ABB0A9EDFCFFF568f9e8a93df938690918c0ABB0A9EDFCFFF56--