Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to order search result based on relevant title?

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

@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
Site Admin
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

146 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you