Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 24239 invoked from network); 13 Aug 2009 13:15:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Aug 2009 13:15:17 -0000 Received: (qmail 57477 invoked by uid 500); 13 Aug 2009 13:15:22 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 57386 invoked by uid 500); 13 Aug 2009 13:15:21 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 57376 invoked by uid 99); 13 Aug 2009 13:15:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 13:15:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of noble.paul@gmail.com designates 209.85.198.234 as permitted sender) Received: from [209.85.198.234] (HELO rv-out-0506.google.com) (209.85.198.234) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 13:15:11 +0000 Received: by rv-out-0506.google.com with SMTP id b25so225996rvf.5 for ; Thu, 13 Aug 2009 06:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; bh=rFZB4alARjUrnbdLG4e8ZsVNCiVdnTwqbiFgj9hzaJg=; b=l7ZFIohXXIMQQCIbahB0B9JFmngqWrY3HDZYO+LG5X2chBIMKjEN3HJU1IHYrBXILA M9SCVDKj4OfiYOAgcGe0xEm/VKSavPlMrTxHYy7ZWE54aPNxbLDtZYk57adpvyo5ije6 225h7Oii4NRy7mcppdbXhbs3dwk7uMfLhEbv0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=USDRuUrIsRl4DqFwzwMNkhlMaEG0gZSTBSIrnJQMOXS/wawFFTsd0oogDCoG2cDW7u i8/9HS2c2C0BAoj3wiHQ6Y1isnCngHj7kaEMysPG0guQ1ucBOjOLPN7D0BO06z620r+6 PhTaEVe2TCKJUfBV0cDRna4GPLozB0rKkbs+4= MIME-Version: 1.0 Sender: noble.paul@gmail.com Reply-To: noble.paul@gmail.com Received: by 10.140.172.7 with SMTP id u7mr533765rve.45.1250169290064; Thu, 13 Aug 2009 06:14:50 -0700 (PDT) In-Reply-To: <24954223.post@talk.nabble.com> References: <24954223.post@talk.nabble.com> From: =?UTF-8?B?Tm9ibGUgUGF1bCDgtKjgtYvgtKzgtL/gtLPgtY3igI0gIOCkqOCli+CkrOCljeCks+CljQ==?= Date: Thu, 13 Aug 2009 18:44:30 +0530 X-Google-Sender-Auth: 295fe10d58d63d7a Message-ID: <5e76b0ad0908130614h1d287edeq22dcaee6845bdb9d@mail.gmail.com> Subject: Re: Questions about XPath in data import handler To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Aug 13, 2009 at 6:35 PM, Andrew Clegg wrote= : > > A couple of questions about the DIH XPath syntax... > > The docs say it supports: > > =A0 xpath=3D"/a/b/subject[@qualifier=3D'fullTitle']" > =A0 xpath=3D"/a/b/subject/@qualifier" > =A0 xpath=3D"/a/b/c" > > Does the second one mean "select the value of the attribute called qualif= ier > in the /a/b/subject element"? > > e.g. For this document: > > > > =A0 > > > > ... I would get the result "some text"? yes you are right. Isn't that the semantics of standard xpath syntax? > > Also... Can I select a non-leaf node and get *ALL* the text underneath it= ? > e.g. /a/b in this example? > > Thanks! > > Andrew. > > -- > View this message in context: http://www.nabble.com/Questions-about-XPath= -in-data-import-handler-tp24954223p24954223.html > Sent from the Solr - User mailing list archive at Nabble.com. > > --=20 ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com