Searching for assets by path or content type

jperreault's Avatar


06 Oct, 2011 08:59 PM

Hi there,

We have set up a bunch of pages, all of the same content type.

Each page looks like this :

where XXXXXXXXX is the name of a program

For Example:

  ... + 70 more

I want to use webservices to retrieve all of these index assets. I cannot figure out how to select only these assets except for the extremely inefficient search for all index pages and check the path :

  SearchInformation info = new SearchInformation();
  SearchResult result = new SearchResult();
  try {
        result =, info);

        for (Identifier id : ids) {       
               ReadResult rr =, id);
               Asset a = rr.getAsset();

               if (a.getPage().getPath().contains("/co/courses/programs/")) {..

Is there a way that I can search by path ?

Is there a way to search by content type ? ( I don't think so, although I could publish an XML index block of the content type )


  1. 1 Posted by Bradley Wagner on 10 Apr, 2012 05:57 PM

    Bradley Wagner's Avatar

    We don't have a way to search by path or Content Type with Web Services. If they are all in a particular folder, I might recommend writing a routine to iterate over the children of that folder to look for the assets you want.

    Feel free to use our idea exchange to suggest additional features and functionality.


  2. Bradley Wagner closed this discussion on 10 Apr, 2012 05:57 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac