Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F478D98C for ; Thu, 26 Jul 2012 18:42:19 +0000 (UTC) Received: (qmail 90567 invoked by uid 500); 26 Jul 2012 18:42:18 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 90518 invoked by uid 500); 26 Jul 2012 18:42:18 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 90510 invoked by uid 99); 26 Jul 2012 18:42:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 18:42:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of panky.tiwari@gmail.com designates 209.85.161.170 as permitted sender) Received: from [209.85.161.170] (HELO mail-gg0-f170.google.com) (209.85.161.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 18:42:12 +0000 Received: by ggnf2 with SMTP id f2so4184436ggn.1 for ; Thu, 26 Jul 2012 11:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Fe3eYtGDRfhofgN4SkOq1jkKgiFw99kqX5nwLs5b/m4=; b=APZZ+dMQ4OMx65ljQrI1Q9kL230tUQT0Y3HbM3sm0bodjJRu4iTR3m/DnoXIsCrt1U ayKiTdazPwpk9CbUnA9ZRNf4bWDHq6lAetwfgS8MMPZpZqizryasEgyURD+H3qH/UJQW 1jxukgHUayqfW3Fp29OpdiA0kIC9cgawO5kozIWggGN/UtA27nfb9QANBKhhmCWkrIUW XOPMc+jbadr3rjuahtLOCVQ7G32u3TmicBoeN+pN/WZayqGXYPpvmMrwqycOFOEyzKMk IuTxjkTp94LgTNIdiC3RxH3pAU76RB4hgRIRlVeSJq8pBlEBsxoykkQ/DMCXe5LIwVzP GDPA== MIME-Version: 1.0 Received: by 10.66.85.135 with SMTP id h7mr22514153paz.75.1343328110943; Thu, 26 Jul 2012 11:41:50 -0700 (PDT) Received: by 10.68.226.202 with HTTP; Thu, 26 Jul 2012 11:41:50 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Jul 2012 00:11:50 +0530 Message-ID: Subject: Re: Searching through folders hierarchy in alfresco community edition From: Pankaj Tiwari To: dev@chemistry.apache.org Content-Type: multipart/alternative; boundary=f46d042de469de9f6b04c5bff2a2 --f46d042de469de9f6b04c5bff2a2 Content-Type: text/plain; charset=UTF-8 Main Repository | |-------FileOne.txt |----- Data Dictionary | |--------------------------- 1.txt | |----- User Homes | |-----------------------------2.txt | |----- My Directory |------------------------------ MyFile.txt When I execute "select cmis:name from cmis:document", it gives me back FileOne.txt, 1.txt and 2.txt but not MyFile.txt The only difference I see here is that My Directory is created by me whereas the other two were present from the time of installation itself. This may be related to alfresco configuration. I have not tested this against any other repository, so it might be specific to alfresco. Any pointers on this will be helpful. Thanks, Pankaj On Thu, Jul 26, 2012 at 7:19 PM, Jeff Potts wrote: > Pankaj, > > I don't understand what this means: > > the results are not shown from within the folders > > I have created programmatically. > > > The results that come back from a query are in a flat list. If you want to > know an object's folder you can call getObjectParents on it. > > If I am misunderstanding what you are trying to do, please provide an > example of what you expect the results to look like and a snippet of the > results you are getting back as well as the code you are running to get > those results. > > Also, if you suspect you are seeing something Alfresco-specific, please > use the Alfresco forums. We have a forum dedicated to CMIS: > https://forums.alfresco.com/en/viewforum.php?f=45 > > Jeff > > On Jul 26, 2012, at 4:59 AM, Pankaj Tiwari wrote: > > > Hi All, > > > > I am using alfresco community edition and the repository I am using is > > called 'Main Repository'. When I try to run search on the repository the > > results are displayed but the results are not shown from within the > folders > > I have created programmatically. > > > > Is this a alfresco configuration issue or a bug. Can somebody point me at > > what could be going wrong in here. > > > > I am trying to execute query using Cmis Browser and the query used is the > > default query viz. select cmis:objectId, cmis:name, cmis:objectTypeId > > from cmis:document > > > > Thanks, > > Pankaj > > --f46d042de469de9f6b04c5bff2a2--