atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ayub Khan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-263) Searching for a multi word trait always returns empty result
Date Sat, 31 Oct 2015 15:01:27 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ayub Khan updated ATLAS-263:
----------------------------
    Description: 
Searching for a multi word trait always returns empty result..

1. Create a trait name with multiple words..
	Example: 
{noformat}
curl 'http://localhost:21000/api/atlas/types' -H 'Origin: http://localhost:21000'  -H 'Content-Type:
application/json;charset=UTF-8' --data-binary '{"enumTypes":[],"traitTypes":[{"superTypes":[],"typeName":"multi
word trait","attributeDefinitions":[],"hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.TraitType"}],"structTypes":[],"classTypes":[]}'
--compressed
{noformat}

2. Attach the tag with an entity
	Example:
{noformat}
curl -v 'http://localhost:21000/api/atlas/entity/803f5bdd-28f9-49e1-8c21-3dc0f9fd5c61/traits'
-H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Struct","typeName":"multi
word trait","values":{}}' --compressed
{noformat}

3. Now try to get all the entities associated with the tag
	Example:
{noformat}
curl 'http://localhost:21000/api/atlas/discovery/search?query=multi+word+tag'
{noformat}
	
	Result of the above is always empty because the above query is triggered as "full text" and
it always returns empty result even if you have associated entites to the tag.
	
This is a big issue from an end user's perspective.


  was:
Searching for a multi word trait always returns empty result..

1. Create a trait name with multiple words..
	Example: 
{noformat}
	curl 'http://localhost:21000/api/atlas/types' -H 'Origin: http://localhost:21000'  -H 'Content-Type:
application/json;charset=UTF-8' --data-binary '{"enumTypes":[],"traitTypes":[{"superTypes":[],"typeName":"multi
word trait","attributeDefinitions":[],"hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.TraitType"}],"structTypes":[],"classTypes":[]}'
--compressed
{noformat}

2. Attach the tag with an entity
	Example:
{noformat}
	curl -v 'http://localhost:21000/api/atlas/entity/803f5bdd-28f9-49e1-8c21-3dc0f9fd5c61/traits'
-H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Struct","typeName":"multi
word trait","values":{}}' --compressed
{noformat}

3. Now try to get all the entities associated with the tag
	Example:
{noformat}
	curl 'http://localhost:21000/api/atlas/discovery/search?query=multi+word+tag'
{noformat}
	
	Result of the above is always empty because the above query is triggered as "full text" and
it always returns empty result even if you have associated entites to the tag.
	
This is a big issue from an end user's perspective.



> Searching for a multi word trait always returns empty result
> ------------------------------------------------------------
>
>                 Key: ATLAS-263
>                 URL: https://issues.apache.org/jira/browse/ATLAS-263
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Ayub Khan
>            Priority: Blocker
>
> Searching for a multi word trait always returns empty result..
> 1. Create a trait name with multiple words..
> 	Example: 
> {noformat}
> curl 'http://localhost:21000/api/atlas/types' -H 'Origin: http://localhost:21000'  -H
'Content-Type: application/json;charset=UTF-8' --data-binary '{"enumTypes":[],"traitTypes":[{"superTypes":[],"typeName":"multi
word trait","attributeDefinitions":[],"hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.TraitType"}],"structTypes":[],"classTypes":[]}'
--compressed
> {noformat}
> 2. Attach the tag with an entity
> 	Example:
> {noformat}
> curl -v 'http://localhost:21000/api/atlas/entity/803f5bdd-28f9-49e1-8c21-3dc0f9fd5c61/traits'
-H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Struct","typeName":"multi
word trait","values":{}}' --compressed
> {noformat}
> 3. Now try to get all the entities associated with the tag
> 	Example:
> {noformat}
> curl 'http://localhost:21000/api/atlas/discovery/search?query=multi+word+tag'
> {noformat}
> 	
> 	Result of the above is always empty because the above query is triggered as "full text"
and it always returns empty result even if you have associated entites to the tag.
> 	
> This is a big issue from an end user's perspective.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message