jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Nuescheler" <david.nuesche...@gmail.com>
Subject Re: How to change the "result Item Type"
Date Wed, 18 Apr 2007 14:36:39 GMT
Hi Rainer,

i assume you are looking for queries like...

SELECT * FROM nt:base WHERE prop='value'

..in this case the "result node type" is specified in the FROM clause.

Could specify the query language that you are using and give
an example of the query?

Feel free to look at the XPath equivalent here:
http://people.apache.org/~mreutegg/jcr-query-translator/translator.html

regards,
david


On 4/12/07, rainer <RainerBlumenthal@gmx.de> wrote:
>
> how can i embed the "result Item Type" into a query... ?
>
> if i pass a query via Magnolia JCR Queries there is a text-field where i can
> enter the "result Item Type" if i set it to "nt:base" i get the results i
> want.
>
> But if i pass the query via the QueryManager there is no option available to
> set the "result Item Type" - and the results i get are different from what
> expected.
> (the result item type seems to be "mgnl:content" - but i just guess (cause
> of trying))
>
> so how can i change the result type to nt:base? can this value be passed in
> the query?
>
> any help appreciated
>
> thx
> rainer
> --
> View this message in context: http://www.nabble.com/How-to-change-the-%22result-Item-Type%22-tf3565165.html#a9958295
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message