Interface ContentNameSearcher


  • public interface ContentNameSearcher
    Search for Confluence content by its name (for Pages we search title, for users, we search full names, etc.).
    • Method Detail

      • search

        Map<Category,​List<SearchResult>> search​(List<QueryToken> queryTokens,
                                                      ResultTemplate grouping,
                                                      Set<Attachment.Type> attachmentTypes,
                                                      boolean searchParentName,
                                                      int startIndex,
                                                      Integer pageSize,
                                                      Map<String,​Object> params,
                                                      String... spaceKeys)
        Search returning results in the specified space and ResultTemplate include pagination and search parent name support.
        Parameters:
        queryTokens - the parsed tokens to search with.
        grouping - the grouping of the results you require.
        attachmentTypes - attachment types to filter attachments on
        searchParentName - also applies the search to the parent name of the object (e.g. page name)
        startIndex - ignored
        pageSize - ignored
        params - additional parameters to apply to the search
        spaceKeys - the spaces to include in the search
        Returns:
      • searchNoCategorisation

        List<SearchResult> searchNoCategorisation​(List<QueryToken> queryTokens,
                                                  ResultTemplate results,
                                                  Set<Attachment.Type> attachmentTypes,
                                                  boolean searchParentName,
                                                  int startIndex,
                                                  Integer pageSize,
                                                  Map<String,​Object> params,
                                                  String... spaceKeys)
        Search returning results in the specified space and ResultTemplate include pagination and search parent name support. Results are not grouped.
        Parameters:
        queryTokens - the parsed tokens to search with.
        attachmentTypes - attachment types to filter attachments on
        searchParentName - also applies the search to the parent name of the object (e.g. page name)
        startIndex - ignored
        pageSize - ignored
        params - additional parameters to apply to the search
        spaceKeys - the spaces to include in the search
        Returns: