-
Bug
-
Resolution: Fixed
-
High
-
8.5.4, 8.6.2, 8.7.2
-
1
-
Severity 2 - Major
-
2
-
-
CtB - Improve Existing
Issue Summary
com.atlassian.confluence.search.v2.SearchManager#search(com.atlassian.confluence.search.v2.ISearch) does not return results when the search query contains additional words that do not exist in page title/content
This is reproducible on Data Center: yes
Steps to Reproduce
- Create a page with the title "How to approve" and the content "approval process"
- Run a search using com.atlassian.confluence.search.v2.SearchManager#search(com.atlassian.confluence.search.v2.ISearch) with highlights enabled for the text "How to approve travel"
- In 8.5.0+ versions 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":"How to approve travel", "startIndex":0, "pageSize":10, "type":"page", "includeArchivedSpaces":false, "highlight":true }
- In 8.5.0+ versions 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
{ "results": [ { "id": 393236, "title": "@@@hl@@@How@@@endhl@@@ to @@@hl@@@approve@@@endhl@@@", "bodyTextHighlights": "", "url": "/display/TEST/How+to+approve", "contentType": "page", "metadata": { "content-version": "1", "userCanView": "true", "latest-version-id": "393236" }, "spaceKey": "TEST", "spaceName": "TEST" } ], "total": 1 }
Actual Results
{ "results": [], "total": 0 }
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- blocks
-
JSDSERVER-15204 The "Related Knowledge Base Articles" panel does not return any result
- Closed
- relates to
-
CONFSERVER-94193 SearchManager#search(com.atlassian.confluence.search.v2.ISearch) will sometimes return duplicate results
- Closed