Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
5611f149
Commit
5611f149
authored
Sep 28, 2015
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-102 Issue with SolrIndex (suma.shivaprasad via shwethags)
parent
57a7d1bc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
38 deletions
+21
-38
pom.xml
pom.xml
+3
-35
release-log.txt
release-log.txt
+1
-0
pom.xml
repository/pom.xml
+2
-2
Solr5Index.java
.../com/thinkaurelius/titan/diskstorage/solr/Solr5Index.java
+15
-1
No files found.
pom.xml
View file @
5611f149
...
...
@@ -863,41 +863,9 @@
</dependency>
<dependency>
<groupId>
com.thinkaurelius.titan
</groupId>
<artifactId>
titan-solr
</artifactId>
<version>
${titan.version}
</version>
<exclusions>
<exclusion>
<artifactId>
*
</artifactId>
<groupId>
org.eclipse.jetty
</groupId>
</exclusion>
<exclusion>
<artifactId>
*
</artifactId>
<groupId>
javax.servlet
</groupId>
</exclusion>
<exclusion>
<artifactId>
*
</artifactId>
<groupId>
org.jruby.joni
</groupId>
</exclusion>
<exclusion>
<artifactId>
*
</artifactId>
<groupId>
org.eclipse.jetty.orbit
</groupId>
</exclusion>
<exclusion>
<artifactId>
*
</artifactId>
<groupId>
org.restlet.jee
</groupId>
</exclusion>
<exclusion>
<artifactId>
*
</artifactId>
<groupId>
org.ow2.asm
</groupId>
</exclusion>
<exclusion>
<artifactId>
*
</artifactId>
<groupId>
org.apache.solr
</groupId>
</exclusion>
</exclusions>
<groupId>
com.vividsolutions
</groupId>
<artifactId>
jts
</artifactId>
<version>
1.13
</version>
</dependency>
<dependency>
...
...
release-log.txt
View file @
5611f149
...
...
@@ -9,6 +9,7 @@ ATLAS-54 Rename configs in hive hook (shwethags)
ATLAS-3 Mixed Index creation fails with Date types (suma.shivaprasad via shwethags)
ALL CHANGES:
ATLAS-102 Issue with SolrIndex (suma.shivaprasad via shwethags)
ATLAS-194 Thread pool in hive hook should be static (shwethags)
ATLAS-180 Cleanup atlas doc packaging (shwethags)
ATLAS-147 Fix a code issue when defineTypes (ltfxyz via shwethags)
...
...
repository/pom.xml
View file @
5611f149
...
...
@@ -90,8 +90,8 @@
</dependency>
<dependency>
<groupId>
com.
thinkaurelius.titan
</groupId>
<artifactId>
titan-solr
</artifactId>
<groupId>
com.
vividsolutions
</groupId>
<artifactId>
jts
</artifactId>
</dependency>
<dependency>
...
...
repository/src/main/java/com/thinkaurelius/titan/diskstorage/solr/Solr5Index.java
View file @
5611f149
...
...
@@ -44,7 +44,6 @@ import com.thinkaurelius.titan.diskstorage.indexing.IndexProvider;
import
com.thinkaurelius.titan.diskstorage.indexing.IndexQuery
;
import
com.thinkaurelius.titan.diskstorage.indexing.KeyInformation
;
import
com.thinkaurelius.titan.diskstorage.indexing.RawQuery
;
import
com.thinkaurelius.titan.diskstorage.solr.transform.GeoToWktConverter
;
import
com.thinkaurelius.titan.diskstorage.util.DefaultTransaction
;
import
com.thinkaurelius.titan.graphdb.configuration.PreInitializeConfigOptions
;
import
com.thinkaurelius.titan.graphdb.database.serialize.AttributeUtil
;
...
...
@@ -959,4 +958,19 @@ public class Solr5Index implements IndexProvider {
}
}
private
static
class
GeoToWktConverter
{
/**
* {@link com.thinkaurelius.titan.core.attribute.Geoshape} stores Points in the String format: point[X.0,Y.0].
* Solr needs it to be in Well-Known Text format: POINT(X.0 Y.0)
*/
static
String
convertToWktString
(
Geoshape
fieldValue
)
throws
BackendException
{
if
(
fieldValue
.
getType
()
==
Geoshape
.
Type
.
POINT
)
{
Geoshape
.
Point
point
=
fieldValue
.
getPoint
();
return
"POINT("
+
point
.
getLongitude
()
+
" "
+
point
.
getLatitude
()
+
")"
;
}
else
{
throw
new
PermanentBackendException
(
"Cannot index "
+
fieldValue
.
getType
());
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment