Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Search doesn't work correctly

Davide Martusciello September 30, 2022

Hi,
we built a documentation generator for our application that creates confluence cloud html pages and structure and upload these through REST API.
Now we have our space with a lot of pages that contains all specification of our application. 

The problem now is that if we try to search a page by (exact) title (and also by content) in the search box or advanced search filtered by space, Confluence doesn't find anything always.
I read on community posts that there is a rebuilt search index on Confluence server version. There is this function also in Cloud version?

Thank in advance

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
September 30, 2022

Hi @Davide Martusciello ,

please could you share rest API used for that content creation? From my perspective, rest api will create pages as per manual creation so search should work or not work for both creation.

THerefore, could you verify that pages manually created are correctly viewed in a search?

Fabio

Davide Martusciello September 30, 2022

Hi @Fabio Racobaldo _Herzum_ 
we used https://theblueseed.atlassian.net/wiki/rest/api/content and upload our pages with json similar to this:

{
  "type":"page",
  "title":"kMyClassPage",
  "space":{"key":"FR2"},
  "body":{
    "storage":{
      "value":"<p>This is a new page</p>",
      "representation":"storage"
    }
  }
}

I've created a manual page and I can found It by title search.
Thanks
Davide

Fabio Racobaldo _Herzum_
Community Champion
September 30, 2022

Hi @Davide Martusciello ,

in my opinion there are missing parameters in your call (https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-post). SPace, for example, should contain "id" and not "key".

Please could you try to review parameters in order to figure out if that is causing your issue?

Fabio

Davide Martusciello October 3, 2022

Hi @Fabio Racobaldo _Herzum_ ,

I checked in REST API documentation:

In "space" object there is the "key" parameters that is required, meanwhile Id is not needed.
But I try with also id parameter If you suppose that is the problem.

Thanks

Davide Martusciello October 11, 2022

Hi @Fabio Racobaldo _Herzum_ ,

we have regenerated all confluence docs by API, and now it works: we find all docs by title and by contents.

We haven't changed nothing in api post body, maybe a temporary error.

Thanks for your support
Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events