cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene query to list custom content type from alfresco

himvj
Champ in-the-making
Champ in-the-making
Hi,

How to get the list of all the content type from alfresco using lucene.

for ex. I have list of type like :

Article
Content
GeneralImage
SupplierInvoice
Visitorsfeedback.

I want to list out all type how to achieve that using lucene.

please provide the lucene query.

waiting for your valuable response.

Thanks in advance…
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
You can't get these information using Lucene, because these are not content but model.
To retrieve all the information about the content model you have to use the DictionaryService that allows you to get all the custom content model structures (types, aspects, properties and associations).

The DictionaryService is one of the services exposed by the Alfresco Java API (FoundationAPI), if you are using the Web Services API of Alfresco you could use this service using the Dictionary Web Service:
http://wiki.alfresco.com/wiki/Dictionary_Web_Service

Hope this helps.