AS search sample

Have a test for this, will upload after merge.