Keywords can mean many things and vary by context. Please explain what functionality you're looking for when you say "IMMEDIATE".
I think I may be able to accomplish what I need without XTREE (or may be not ). When you see what I have written below you will understand what I meant by IMMEDIATE results from same URL.
The good thing about the algorithm below is that it breaks the streak of results from a single url until a different url is being shown. The bad thing is that it can only hold off for 1 URL and that's where I am looking to plug-in XTREE.
Here is the deal, I have 100 websites that I am crawling, one website is overwhelming all the time (because it usually has good results or has the title wrongly formatted. For example, one site has word 'credit' first thing in title and someone searching for 'credit' gets bombarded with just that one website. I want to avoid this). So what I want to do is unless there is a big change in relevance percentage point (>2%), I don't want to display a site again that I have displayed already.
I want to use xtree (if I can) in the following.
STORE THE REX'ED URL IN A VARIABLE
FROM NEXT RECORD ONWARDS
REX THE URL
IF THE VARIABLE HAS THE SAME URL AND COUNT=2
SKIP THE RECORD
ELSE IF THE VARIABLE HAS THE SAME URL AND COUNT=1
SHOW THE RESULT
SHOW THE RECORD
UPDATE THE VARIABLE WITH THE NEW URL