Forums

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

How to order search result based on relevant title?

Rahul Kumar November 4, 2020

I am using Confluence REST API for search. 

User is trying to search for a content based on title. Since the search term also exists in body and other factors are also present by default for ranking, the expected content content is appearing at bottom of the search result and the contents which doesn't have the search term in title is appearing at the top.

I am using something like this - 

"https://api.atlassian.com/ex/confluence/<user-confluence-id>/rest/api/search?cql=(title+~+\"user_input_search_term\")+or+(text+~+\"user_input_search_term\")"

The idea is all the content which have search term in title should appear first and then the rest of the content can appear in any order. But this isn't working for me. 

How can I order search result based on relevant title?

2 answers

0 votes
Rahul Kumar November 24, 2020

@Bernabe Theodore Costales III

Any update on this please.

0 votes
Rahul Kumar November 18, 2020

@Bernabe Theodore Costales III 

Hi Team 

Could you please respond to the query above? It is critical for us, as client is chasing on us.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events