2014-12-18 2 views
0

하이 폴리곤에 대한 지리 공간 검색 solr4.10을 구성하는 방법을, 나는 다음을 수행 한의 schema.xml에서 내가 다음과 같이 변경을 수행 한 변경내가 다각형 공간 검색 solr4.10을 구성 할

 
<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType" 
       spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory" 
       distErrPct="0.025" 
       maxDistErr="0.000009" 
       units="degrees"/> 

이 엔트리는 이미 존재하지만 spatialContextFactory를 포함하지 않으므로이 항목도 추가됩니다. 내가 삽입하고

이제 문서는

 
<add> 
<doc> 
    <field name="id">3007</field> 
    <field name="name">Autauga</field> 
    <field name="coordinate">POLYGON((-10 30,-40 40,-10 -20,40 20,0 0,-10 30))</field> 
</doc> 
</add> 

다음과 같다하지만 post.jar로 문서를 삽입 할 때 그것은

 
SimplePostTool version 1.5 
Posting files to base url http://localhost:8983/solr/update using content-type application/xml.. 
POSTing file counties1.xml 
SimplePostTool: WARNING: Solr returned an error #404 (Not Found) for url: http://localhost:8983/solr/update 
SimplePostTool: WARNING: Response: <html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> 
<title>Error 404 Not Found</title> 
</head> 
<body><h2>HTTP ERROR 404</h2> 
<p>Problem accessing /solr/update. Reason: 
<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             

</body> 
</html> 
SimplePostTool: WARNING: IOException while reading response: java.io.FileNotFoundException: http://localhost:8983/solr/update 
1 files indexed. 
COMMITting Solr index changes to http://localhost:8983/solr/update.. 
SimplePostTool: WARNING: Solr returned an error #404 (Not Found) for url: http://localhost:8983/solr/update?commit=true 
SimplePostTool: WARNING: Response: <html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> 
<title>Error 404 Not Found</title> 
</head> 
<body><h2>HTTP ERROR 404</h2> 
<p>Problem accessing /solr/update. Reason: 
<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             
<br/>             

</body> 
</html> 
Time spent: 0:00:00.017 


저 곳 알려주세요 아래로 예외를 제공 내가 틀리다.

답변

0

단지 solt-1.10.1/example/solr-webapp/webapp/WEB-INF/lib 디렉토리에 jts-1.13을 놓는다. 그러면 데이터는 괜찮을 것이다.