lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Davis <>
Subject Re: DIH XPathEntityProcessor question
Date Mon, 08 Dec 2014 22:01:16 GMT
In experimentation with a much simpler and smaller XML file, it doesn't
look like '//health-topic/@url" will not work, nor will '//@url' etc.    So
far, only spelling it all out will work.
With child elements, such as <title>, an xpath of "//title" works fine, but
it  is beginning to same dangerous.

Is there any short-hand for the current node or the match?

On Mon, Dec 8, 2014 at 4:42 PM, Dan Davis <> wrote:

> When I have a forEach attribute like the following:
> forEach="/medical-topics/medical-topic/health-topic[@language='English']"
> And then need to match an attribute of that, is there any alternative to
> spelling it all out:
>      <field column="url"
> xpath="/medical-topics/medical-topic/health-topic[@language='English']/@url"/>
> I suppose I could do "//health-topic/@url" since the document should then
> have a single health-topic (as long as I know they don't nest).

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message