I'm experimenting with Text searches of pages using CQL. It appears that matches are occurring for previous page versions. It would be nice to control whether previous page versions should be included or not.
For example, I sometimes add To-Do sections to pages. When all To-Dos are done I delete the section. When using CQL to search for pages containing "to-do" I get matches for pages that previously had "To-Do" sections, but no longer do.
space.key = "<project-id>" and (text ~ "to do" or text ~ "to-do")