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
992b8b47
Commit
992b8b47
authored
Jun 23, 2020
by
Pinal Shah
Committed by
Madhan Neethiraj
Jun 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3850: regression - search results don't include glossary-term associations
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
474d73c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
GraphBackedSearchIndexer.java
...ache/atlas/repository/graph/GraphBackedSearchIndexer.java
+1
-8
EntityGraphRetriever.java
...atlas/repository/store/graph/v2/EntityGraphRetriever.java
+1
-1
solrconfig.xml
...ools/src/main/resources/solr/core-template/solrconfig.xml
+1
-1
No files found.
repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
View file @
992b8b47
...
...
@@ -30,7 +30,6 @@ import org.apache.atlas.listener.ActiveStateChangeHandler;
import
org.apache.atlas.listener.ChangedTypeDefs
;
import
org.apache.atlas.listener.TypeDefChangeListener
;
import
org.apache.atlas.model.TypeCategory
;
import
org.apache.atlas.model.instance.AtlasEntity
;
import
org.apache.atlas.model.typedef.AtlasBaseTypeDef
;
import
org.apache.atlas.model.typedef.AtlasEntityDef
;
import
org.apache.atlas.model.typedef.AtlasEnumDef
;
...
...
@@ -44,16 +43,13 @@ import org.apache.atlas.repository.graphdb.*;
import
org.apache.atlas.repository.store.graph.v2.AtlasGraphUtilsV2
;
import
org.apache.atlas.type.*
;
import
org.apache.atlas.type.AtlasStructType.AtlasAttribute
;
import
org.apache.atlas.type.AtlasType
;
import
org.apache.atlas.type.AtlasTypeRegistry
;
import
org.apache.atlas.type.AtlasTypeUtil
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.configuration.Configuration
;
import
org.apache.solr.common.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.stereotype.Component
;
import
javax.inject.Inject
;
import
java.math.BigDecimal
;
...
...
@@ -364,9 +360,6 @@ public class GraphBackedSearchIndexer implements SearchIndexer, ActiveStateChang
createPropertyKey
(
management
,
PROVENANCE_TYPE_KEY
,
Integer
.
class
,
SINGLE
);
createPropertyKey
(
management
,
HOME_ID_KEY
,
String
.
class
,
SINGLE
);
createEdgeLabel
(
management
,
Constants
.
TERM_ASSIGNMENT_LABEL
);
createEdgeLabel
(
management
,
Constants
.
CLASSIFICATION_LABEL
);
commit
(
management
);
LOG
.
info
(
"Index creation for global keys complete."
);
...
...
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java
View file @
992b8b47
...
...
@@ -835,7 +835,7 @@ public class EntityGraphRetriever {
public
List
<
AtlasTermAssignmentHeader
>
mapAssignedTerms
(
AtlasVertex
entityVertex
)
{
List
<
AtlasTermAssignmentHeader
>
ret
=
new
ArrayList
<>();
Iterable
edges
=
entityVertex
.
query
().
direction
(
AtlasEdgeDirection
.
IN
).
label
(
Constants
.
INTERNAL_PROPERTY_KEY_PREFIX
+
TERM_ASSIGNMENT_LABEL
).
edges
();
Iterable
edges
=
entityVertex
.
query
().
direction
(
AtlasEdgeDirection
.
IN
).
label
(
TERM_ASSIGNMENT_LABEL
).
edges
();
if
(
edges
!=
null
)
{
for
(
final
AtlasEdge
edge
:
(
Iterable
<
AtlasEdge
>)
edges
)
{
...
...
test-tools/src/main/resources/solr/core-template/solrconfig.xml
View file @
992b8b47
...
...
@@ -434,7 +434,7 @@
-->
<lst
name=
"defaults"
>
<str
name=
"defType"
>
edismax
</str>
<str
name=
"qf"
>
7shx_t^3 7qx1_t^3 3pj9_t^3 7cp1_t^3 43r9_t^3 cn9_t^1 79j9_t^3 3vut_t^3 3thh_t^3 3qbp_s^3 7wg5_t^3 7b45_t^3 3nyd_s^3 7vnp_t^3 7rph_t^3 8ydh_t^3 x6t_t^3 7tad_t^3 7jt1_t^3 3mdh_s^3 7e9x_t^3 3rwl_s^3 93wl_t^3 yrp_t^10 7pc5_t^3 7u2t_t^3 3xfp_t^3 426d_t^3 iyt_t^10 3g1x_t^3 40lh
_t^3
</str>
<str
name=
"qf"
>
3eh1_t^3 yrp_t^10 m4l_t^10 kjp_t^10 iyt_t^10 cn9_t^1 x6t_t^3 hdx_t^3 3ksl_s^3 3qbp_s^3 3mdh_s^3 3oqt_s^3 3nyd_t^3 7uv9_t^3 7ldx
_t^3
</str>
<str
name=
"hl.fl"
>
*
</str>
<bool
name=
"hl.requireFieldMatch"
>
true
</bool>
<bool
name=
"lowercaseOperators"
>
true
</bool>
...
...
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