Modification of Result of Search calls made using the API

Default Search Parameter

All search queries of the query type "=text" will search for the exact string. Thus, if you pass the Search query as shown below -

listOrder(<#=USERNAME#>,<#=PASSWORD#>,<#=ROLE#>,<#=LANGPREF#>,<#=PARENTID#>,null,null,null,true,
array("domcno","domorg","dombiz"),array("Active","InActive"),"xyz.com",null,null,null,null,"10","1",array("orders.orderid"));

Then it will Search for the exact String xyz.com. However, to make your search broad you can pass Search query in below way.

Other Search Parameters

1. To perform a search on any field beginning with a particular string, use "text%"

2. To perform a search on any field ending with a particular string, use "%text"

3. To perform a search on any field similar to a particular string, use "%text%"

So if you want like search for xyz in .com, .net, .org and .biz, you will have to pass parameter in above list method in below way

listOrder(<#=USERNAME#>,<#=PASSWORD#>,<#=ROLE#>,<#=LANGPREF#>,<#=PARENTID#>,null,null,null,true,
array("domcno","domorg","dombiz"),array("Active","InActive"),"%xyz%",null,null,null,null,"10","1",array("orders.orderid"));

This is applied to

listContact method in DomContact class for parameters -> contactName, companyname and emailAddr

 
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Reseller Account Startup Guide

As a Reseller, you need to make the following settings within your Reseller Control Panel...

Video Tutorials

Below, you will find a list of video tutorials that will familiarize you with our system....

Creating a Demo Reseller Account

To understand and evaluate the interfaces and API we provide, you can use the Demo interface....

What is SuperSite?

SuperSite is a complete private-labeled Website for you and your Resellers. Here, your Customers...

What is PartnerSite?

PartnerSite is a complete private-labeled website to jumpstart your wholesale Business. In...

Powered by WHMCompleteSolution