Book and Host Online Services
Please Login or Register

Knowledgebase

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

 


Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Change Log (Views: 152)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter