Method: AlfrescoAPI::QueriesApi#find_nodes

Defined in:
lib/alfresco_api/api/queries_api.rb

#find_nodes(term, opts = {}) ⇒ NodePaging

Find nodes Note: this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of nodes that match the given search criteria. The search term is used to look for nodes that match against name, title, description, full text content or tags. The search term: - must contain a minimum of 3 alphanumeric characters - allows "quoted term" - can optionally use ‘*’ for wildcard matching By default, file and folder types will be searched unless a specific type is provided as a query parameter. By default, the search will be across the repository unless a specific root node id is provided to start the search from. You can sort the result list using the orderBy parameter. You can specify one or more of the following fields in the orderBy parameter: * name * modifiedAt * createdAt

Parameters:

  • term

    The term to search for.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :root_node_id (String)

    The id of the node to start the search from. Supports the aliases -my-, -root- and -shared-.

  • :skip_count (Integer)

    The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0. (default to 0)

  • :max_items (Integer)

    The maximum number of items to return in the list. If not supplied then the default value is 100. (default to 100)

  • :node_type (String)

    Restrict the returned results to only those of the given node type and its sub-types

  • :include (Array<String>)

    Returns additional information about the node. The following optional fields can be requested: * allowableOperations * aspectNames * isLink * isLocked * path * properties

  • :order_by (Array<String>)

    A string to control the order of the entities returned in a list. You can use the orderBy parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the ASC and DESC keywords for any field.

  • :fields (Array<String>)

    A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the include parameter, then the fields specified in the include parameter are returned in addition to those specified in the fields parameter.

Returns:



35
36
37
38
# File 'lib/alfresco_api/api/queries_api.rb', line 35

def find_nodes(term, opts = {})
  data, _status_code, _headers = find_nodes_with_http_info(term, opts)
  return data
end