I am using CQL search with the confluence API like so:
query = f'siteSearch ~ "{search_term}"'
But this yields several documents most of which are not directly talking about the search term. For example, if the search term is “what is elixir”, it returns many documents which contains text like “XYZ is working on Elixir”, or “current projects under the Dev team include: Protagonist, Elixir, Excalibur, …”.
But these documents are not relevant to describing what elixir is, which was the search term. So, is there any way to filter out irrelevant documents and only return the few documents that are highly relevant to the search term?