Writing Custom Search

When writing a custom search, the configuration file that has the query, does it needs to be written manually, or is there a tool in workbench we can leverage to generate the configuratin file?

Also is there any sample file that we can leverage for the custom search?

thanks
manvinder

Are you talking about creating a custom search in the Workbench?
UI Elements Design -> Content Explorer -> Searches -> Custom
or some other area.
What configuration file are you looking for?

Yes…I meant the configuration file similar to sample1.xml for the field: “Custom search Url field”.

You can create a new application and create a resource similar to the sample1 resource from sys_cxCustomSearch. Modify the resource to produce the results you want. The results should confirm to the View.dtd.
Before even you do that, may I know the reason for creating the custom search?