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
db18c824
Commit
db18c824
authored
8 years ago
by
Wojciech Wojcik
Committed by
Jeff Hagelberg
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1431 Add configuration property to disable full text mapper
Signed-off-by:
Jeff Hagelberg
<
jnhagelberg@us.ibm.com
>
parent
03684a05
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
0 deletions
+24
-0
atlas-application.properties
distro/src/conf/atlas-application.properties
+6
-0
release-log.txt
release-log.txt
+1
-0
TypedInstanceToGraphMapper.java
...he/atlas/repository/graph/TypedInstanceToGraphMapper.java
+6
-0
AtlasRepositoryConfiguration.java
...a/org/apache/atlas/util/AtlasRepositoryConfiguration.java
+11
-0
No files found.
distro/src/conf/atlas-application.properties
View file @
db18c824
...
@@ -239,3 +239,9 @@ atlas.metric.query.cache.ttlInSecs=900
...
@@ -239,3 +239,9 @@ atlas.metric.query.cache.ttlInSecs=900
# warning threshold <= 0, no eviction warnings will be issued.
# warning threshold <= 0, no eviction warnings will be issued.
#atlas.CompiledQueryCache.evictionWarningThrottle=0
#atlas.CompiledQueryCache.evictionWarningThrottle=0
######### Full Text Search Configuration #########
#Set to false to disable full text search.
#atlas.search.fulltext.enable=true
This diff is collapsed.
Click to expand it.
release-log.txt
View file @
db18c824
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ALL CHANGES:
ATLAS-1385 Add configuration property to disable full text mapper (wwojcik via jnhagelb)
ATLAS-746 After updating a set of entities, response contains only the first entity definition (jnhagelb)
ATLAS-746 After updating a set of entities, response contains only the first entity definition (jnhagelb)
ATLAS-1510 Consolidate/batch calls to GraphBackedTypeStore.findVertex() (jnhagelb)
ATLAS-1510 Consolidate/batch calls to GraphBackedTypeStore.findVertex() (jnhagelb)
ATLAS-1388 Cache entities that are created/updated (jnhagelb)
ATLAS-1388 Cache entities that are created/updated (jnhagelb)
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/java/org/apache/atlas/repository/graph/TypedInstanceToGraphMapper.java
View file @
db18c824
...
@@ -56,6 +56,7 @@ import org.apache.atlas.typesystem.types.ObjectGraphWalker;
...
@@ -56,6 +56,7 @@ import org.apache.atlas.typesystem.types.ObjectGraphWalker;
import
org.apache.atlas.typesystem.types.TraitType
;
import
org.apache.atlas.typesystem.types.TraitType
;
import
org.apache.atlas.typesystem.types.TypeSystem
;
import
org.apache.atlas.typesystem.types.TypeSystem
;
import
org.apache.atlas.typesystem.types.TypeUtils
;
import
org.apache.atlas.typesystem.types.TypeUtils
;
import
org.apache.atlas.util.AtlasRepositoryConfiguration
;
import
org.apache.atlas.utils.MD5Utils
;
import
org.apache.atlas.utils.MD5Utils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -373,6 +374,11 @@ public final class TypedInstanceToGraphMapper {
...
@@ -373,6 +374,11 @@ public final class TypedInstanceToGraphMapper {
private
void
addFullTextProperty
(
List
<
ITypedReferenceableInstance
>
instances
,
FullTextMapper
fulltextMapper
)
throws
AtlasException
{
private
void
addFullTextProperty
(
List
<
ITypedReferenceableInstance
>
instances
,
FullTextMapper
fulltextMapper
)
throws
AtlasException
{
if
(!
AtlasRepositoryConfiguration
.
isFullTextSearchEnabled
())
{
return
;
}
for
(
ITypedReferenceableInstance
typedInstance
:
instances
)
{
// Traverse
for
(
ITypedReferenceableInstance
typedInstance
:
instances
)
{
// Traverse
AtlasVertex
instanceVertex
=
getClassVertex
(
typedInstance
);
AtlasVertex
instanceVertex
=
getClassVertex
(
typedInstance
);
String
fullText
=
fulltextMapper
.
mapRecursive
(
instanceVertex
,
true
);
String
fullText
=
fulltextMapper
.
mapRecursive
(
instanceVertex
,
true
);
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/java/org/apache/atlas/util/AtlasRepositoryConfiguration.java
View file @
db18c824
...
@@ -57,6 +57,17 @@ public class AtlasRepositoryConfiguration {
...
@@ -57,6 +57,17 @@ public class AtlasRepositoryConfiguration {
private
static
final
Integer
DEFAULT_TYPE_UPDATE_LOCK_MAX_WAIT_TIME_IN_SECONDS
=
Integer
.
valueOf
(
15
);
private
static
final
Integer
DEFAULT_TYPE_UPDATE_LOCK_MAX_WAIT_TIME_IN_SECONDS
=
Integer
.
valueOf
(
15
);
private
static
Integer
typeUpdateLockMaxWaitTimeInSeconds
=
null
;
private
static
Integer
typeUpdateLockMaxWaitTimeInSeconds
=
null
;
private
static
final
String
ENABLE_FULLTEXT_SEARCH_PROPERTY
=
"atlas.search.fulltext.enable"
;
/**
* Configures whether the full text vertex property is populated. Turning this off
* effectively disables full text searches, since all no entities created or updated after
* turning this off will match full text searches.
*/
public
static
boolean
isFullTextSearchEnabled
()
throws
AtlasException
{
return
ApplicationProperties
.
get
().
getBoolean
(
ENABLE_FULLTEXT_SEARCH_PROPERTY
,
true
);
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
public
static
Class
<?
extends
TypeCache
>
getTypeCache
()
{
public
static
Class
<?
extends
TypeCache
>
getTypeCache
()
{
// Get the type cache implementation class from Atlas configuration.
// Get the type cache implementation class from Atlas configuration.
...
...
This diff is collapsed.
Click to expand it.
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