cancel
Showing results for 
Search instead for 
Did you mean: 

SELECT clause in NXQL queries

franck102_
Champ in-the-making
Champ in-the-making

I must be missing something very obvious with NXQL queries, because whenever I try to use anything but "SELECT *" as my select clause I get an empty result set:

`[email protected]:/> query "select * from myDocumentType"

/default-domain/workspaces/Library/sections/North America

[email protected]:/> query "select dc:title from myDocumentType"

[email protected]:/>`

myDocumentType does have the dublincore schema, and the document has a non-emtpy dc:title... what am I missing?

Thanks!

1 REPLY 1

Laurent_Doguin
Star Collaborator
Star Collaborator

Hi Franck,

you can have a specific select clause only when you call the method CoreSession.CoreSession#queryAndFetch. Unfortunately the search made from the shell uses CoreSession.query. You'll find more details here: http://dev.blogs.nuxeo.com/2012/10/qa-friday-select-clause-nuxeo-nxql-queries.html

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.