lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From penela <>
Subject Accessing a doc field while working at entity level
Date Mon, 05 Sep 2011 12:02:00 GMT

This might probably be a stupid question, but I can't find clear info on how
to do it (sorry if it is too obvious).

I have a the following document configuration (only key elements shown) with
two entities, one embedded into the other:
    <dataSource type="URLDataSource" name="rss-ds" />
    <dataSource type="JdbcDataSource" name="db-ds" driver="com........" /> 
		<entity name="feed-source"
			<field column="last-update" dateTimeFormat="yyyy-MM-dd HH:mm:ss"
locale="en"  />
			<entity name="feed-content" dataSource="rss-ds"
	                transformer="DateFormatTransformer, DummyTransformer">

	            <field column="timestamp" xpath="/rss/channel/item/pubDate"
dateTimeFormat="EEE, dd MMM yyyy HH:mm:ss z" locale="en"  />     

What I want to do is accessing the outer entity field "last-update" while
I'm in the inner entity Transformer DummyTransformer. Debugging with Eclipse
it looks like that data is correctly stored during runtime on the Context
variable passed as parameter to the Transformer in: context.doc.fields

So the question is: Is there any way to access higher level entities' fields
while in an embedded entity? Or document fields at least?


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message