SearchQueryParams
The SearchQueryParams are part of searchConfig.xml. The SearchQueryParams contain the criteria parameters that are used to perform a search. Each search query parameter (SearchQueryParam) provided here is passed to the E3C as search criteria when information is sent by client. The client/UI typically passes the parameters as OData “$filter” query parameter to the search service. Any other parameters passed which are not configured here are ignored. The filter parameter received from the client is provided in the "key" of the SearchQueryParam and the external parameter name that is used by E3C needs to be provided as "value". If the value is not provided the criteria is generated without the external parameter name.
<SearchQueryParams>
<SearchQueryParam key="keyword" value="" />
<SearchQueryParam key = "infotype" value= "infoType" />
<SearchQueryParam key = "publicationtype" value= "PUBLICATIONTYPE" />
<SearchQueryParam key= "searchtype" value= "searchType" />
</SearchQueryParams>
Customization
Adding a new parameter such as “SMCSCode” in SearchQueryParam includes the parameter in the search criteria when input is received from the client as part of OData $filter parameter. The following XML snippet includes the custom query parameter.
<SearchQueryParams>
<SearchQueryParam key="keyword" value="" />
<SearchQueryParam key = "infotype" value= "infoType" />
<SearchQueryParam key = "publicationtype" value= "PUBLICATIONTYPE" />
<SearchQueryParam key= "searchtype" value= "searchType" />
<SearchQueryParam key= "SMCSCode" value= "SMCS" />
</SearchQueryParams>
The value of the SearchQueryParam comes from the meta data property of the part list.
Was this helpful?