lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@corp.aol.com>
Subject Re: Questions about XPath in data import handler
Date Thu, 13 Aug 2009 13:14:30 GMT
On Thu, Aug 13, 2009 at 6:35 PM, Andrew Clegg<andrew.clegg@gmail.com> wrote:
>
> A couple of questions about the DIH XPath syntax...
>
> The docs say it supports:
>
>   xpath="/a/b/subject[@qualifier='fullTitle']"
>   xpath="/a/b/subject/@qualifier"
>   xpath="/a/b/c"
>
> Does the second one mean "select the value of the attribute called qualifier
> in the /a/b/subject element"?
>
> e.g. For this document:
>
>
>
>  <subject qualifier="some text" />
>
>
>
> ... 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.
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Mime
View raw message