lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <>
Subject Re: getting value from parent query in subquery transformer
Date Thu, 03 Dec 2009 07:34:22 GMT
you do not need to pass the values as shown here. Make use of the
Context parameter (second implicit parameter) to get hold of the value
of ${item.category}


On Wed, Dec 2, 2009 at 7:20 PM, Joel Nylund <> wrote:
> Hi, I have an entity that has a entity within it that executes a query for
> each row and calls a transformer. Is there a way to pass a value from the
> parent query into the transformer?
> For example, I have an entity called document, and it it has an ID and
> sometimes it has a category.
> I have a sub entity called category that does another complex query using
> the documents ID to get data to send to the transformer to determine the
> category. I would like to pass the parents category to this transformer, so
> I dont have to join in data I already have. Is this possible?
> Im using ${} in the where clause, so I guess im wondering, can I do
> something like.....
> <entity name="item" query="..........
>        <entity name="category"
> transformer="script:SplitAndPrettyCategory(${item.category})" query="......
> thanks
> Joel

Noble Paul | Principal Engineer| AOL |

View raw message