summarized duplicated code in searchRequest method
updates example
doc