Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.restpack.RestpackQueryModels--model

This contribution is part of XML component org.nuxeo.ecm.platform.restpack.RestpackQueryModels inside nuxeo-platform-syndication-5.6.jar

Extension point

Extension point model of component QueryModelService.

Contributed items

  • <queryModel name="SIMPLE_SEARCH_PATH">
          <pattern>
            SELECT * FROM Document WHERE ecm:fulltext LIKE ? AND
            ecm:mixinType != 'HiddenInNavigation' AND
            ecm:isCheckedInVersion = 0 AND ecm:path STARTSWITH ?
          </pattern>
          <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
          <max>10</max>
        </queryModel>
  • <queryModel name="RELEVANT_DOCUMENTS">
          <pattern>
            SELECT * FROM Document
            WHERE ecm:mixinType != 'Folderish'
              AND ecm:mixinType != 'HiddenInNavigation'
              AND ecm:isCheckedInVersion = 0
              AND ecm:isProxy = 0
              AND ecm:currentLifeCycleState != 'deleted'
              AND ecm:uuid IN ?
          </pattern>
          <sortable defaultSortAscending="false" defaultSortColumn="dc:modified" value="true"/>
          <max>5</max>
        </queryModel>

XML source

<extension point="model" target="org.nuxeo.ecm.core.search.api.client.querymodel.QueryModelService">

    <queryModel name="SIMPLE_SEARCH_PATH">
      <pattern>
        SELECT * FROM Document WHERE ecm:fulltext LIKE ? AND
        ecm:mixinType != 'HiddenInNavigation' AND
        ecm:isCheckedInVersion = 0 AND ecm:path STARTSWITH ?
      </pattern>
      <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
      <max>10</max>
    </queryModel>

    <queryModel name="RELEVANT_DOCUMENTS">
      <pattern>
        SELECT * FROM Document
        WHERE ecm:mixinType != 'Folderish'
          AND ecm:mixinType != 'HiddenInNavigation'
          AND ecm:isCheckedInVersion = 0
          AND ecm:isProxy = 0
          AND ecm:currentLifeCycleState != 'deleted'
          AND ecm:uuid IN ?
      </pattern>
      <sortable defaultSortAscending="false" defaultSortColumn="dc:modified" value="true"/>
      <max>5</max>
    </queryModel>

  </extension>