it's my first question here.I am sorry basically make any mistake or broke forum's rules
I personally use confluence and that i attempt to write custom code for confluence search.

I've next classes

com.atlassian.confluence.search.v2.SearchResult;
com.atlassian.confluence.pages.Page;

for good examples after i acquire some pages i attempt to classcast it to SearchResult to transmit it to velocity template

SearchResult sResult = (SearchResult)myPage;

Can there be in whatever way to include or classcast Confluence Page to SearchResult?

Thanks ahead of time.

I do not think so - it appears Page isn't even associated with search.