-
Bug
-
Resolution: Fixed
-
Low
-
8.0.0, 8.5.4, 8.6.2
-
11
-
Severity 3 - Minor
-
11
-
-
CtB - Improve Existing
Issue Summary
com.atlassian.confluence.search.v2.SearchManager#search(com.atlassian.confluence.search.v2.ISearch) will sometimes return two results for the same page
This is reproducible on Data Center: yes
Steps to Reproduce
- Create a page with the title "find" and the content "me"
- Run a search using com.atlassian.confluence.search.v2.SearchManager#search(com.atlassian.confluence.search.v2.ISearch) with highlights enabled for the text "find"
- In 8.5.0 this can be tested by using the knowledge-base plugin. You can POST to: <base-url>/rest/knowledge-base/1.0/searchV2 with a payload like
{"query":"find","startIndex":0,"pageSize":10,"includeArchivedSpaces":false,"highlight":false}
- In 8.5.0 this can be tested by using the knowledge-base plugin. You can POST to: <base-url>/rest/knowledge-base/1.0/searchV2 with a payload like
Expected Results
One result for the "find" page is returned. For example from the knowledge-base plugin:
{ "id": 1572870, "title": "find", "bodyTextHighlights": "", "url": "/display/TEST/find", "contentType": "page", "metadata": { "content-version": "1", "userCanView": "false", "latest-version-id": "1572870" }, "spaceKey": "TEST", "spaceName": "test" }
Actual Results
Duplicate results are returned. For example from the knowledge-base plugin:
{ "id": 1572870, "title": "find", "bodyTextHighlights": "", "url": "/display/TEST/find", "contentType": "page", "metadata": { "content-version": "1", "userCanView": "false", "latest-version-id": "1572870" }, "spaceKey": "TEST", "spaceName": "test" }, { "id": 1572870, "title": "find", "bodyTextHighlights": "me", "url": "/display/TEST/find", "contentType": "page", "metadata": { "content-version": "1", "userCanView": "false" }, "spaceKey": "TEST", "spaceName": "test" },
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- blocks
-
JSDSERVER-14149 Search KB articles in customer portal (with Confluence DC integrated) causes duplicate search result entries to be rendered without body text
- Closed
- is related to
-
CONFSERVER-95853 SearchManager#search(com.atlassian.confluence.search.v2.ISearch) does not return matching results
- Closed
-
JSDSERVER-15204 The "Related Knowledge Base Articles" panel does not return any result
- Closed