i want to get the smart search text which is typed by user and check if it is there then one page should generate and if result is not there then another page.