Return-Path: X-Original-To: apmail-atlas-dev-archive@minotaur.apache.org Delivered-To: apmail-atlas-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7392718D40 for ; Wed, 9 Dec 2015 12:29:14 +0000 (UTC) Received: (qmail 33934 invoked by uid 500); 9 Dec 2015 12:29:14 -0000 Delivered-To: apmail-atlas-dev-archive@atlas.apache.org Received: (qmail 33886 invoked by uid 500); 9 Dec 2015 12:29:14 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 33875 invoked by uid 99); 9 Dec 2015 12:29:14 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 12:29:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CB510C3F8C for ; Wed, 9 Dec 2015 12:29:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.77 X-Spam-Level: * X-Spam-Status: No, score=1.77 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id tETUacF-YRGf for ; Wed, 9 Dec 2015 12:29:13 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 0870521270 for ; Wed, 9 Dec 2015 12:29:11 +0000 (UTC) Received: (qmail 29766 invoked by uid 99); 9 Dec 2015 11:29:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 11:29:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2C5372C1F6D for ; Wed, 9 Dec 2015 11:29:11 +0000 (UTC) Date: Wed, 9 Dec 2015 11:29:11 +0000 (UTC) From: "Suma Shivaprasad (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ATLAS-263) Searching for a multi word trait always returns empty result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ATLAS-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048524#comment-15048524 ] Suma Shivaprasad commented on ATLAS-263: ---------------------------------------- [~girishrp] I tested the above steps with the latest ATLAS build and the discovery query works with the backtick ` like you mentioned. curl -v http://localhost:21000/api/atlas/discovery/search?query=`multi%20word%20trait` {"requestId":"qtp1311760211-13 - e8ca55f3-0a63-4f01-973f-e6e7ed5b8069","query":"`multi word trait`","queryType":"dsl","count":1,"results":[{"$typeName$":"__tempQueryResultStruct41","instanceInfo":{"$typeName$":"__IdType","guid":"f0c989c4-7e3c-43be-8015-11997a4b6dc8","typeName":"Table"},"traitDetails":null}],"dataType":{"typeName":"__tempQueryResultStruct41","attributeDefinitions":[{"name":"traitDetails","dataTypeName":"multi word trait","multiplicity":{"lower":0,"upper":1,"isUnique":false},"isComposite":false,"isUnique":false,"isIndexable":true,"reverseAttributeName":null},{"name":"instanceInfo","dataTypeName":"__IdType","multiplicity":{"lower":0,"upper":1,"isUnique":false},"isComposite":false,"isUnique":false,"isIndexable":true,"reverseAttributeName":null}]}} Can you please instead submit a patch for documentation example in Search.twiki and QuickStart giving an example of this? > 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 > Assignee: Girish Ramachandran > Priority: Blocker > Fix For: trunk > > Attachments: types_query_fix.patch > > > 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+trait' > {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. marking this as a blocker -- This message was sent by Atlassian JIRA (v6.3.4#6332)