Item Search in Netsuite's SuiteCommerce


 Hi All,

We want to write something about Item Search in Netsuite Suite Commerce as we got few questions about this. Learning Suite Commerce is also a good experience for us. We are exploring more about Suite Commerce and will write so that you can also get benefit. If you like the post please share, suggestions are welcome. Let us know how we can improve. If you want to join us then please use our contact us page.
Share you success story with us.
Item Search uses :
Facet filtering
Keyword searches
Sorting, pagination, and more 
You can learn more about Facet Filtering HERE
  

 To use the Item Search API, you must have a Suite Commerce Advanced web site, and you must have configured item search settings for your site


Search Index: The Search index is very important in Suite Commerce. After Publishing items on your site, item gets indexed first. Once indexed, data on item records can be search using ItemSearch API.

How to set up Item for Search Index ?
1.Go to lists> Website> Items
2. Select which field you want to use for search fields, facet fields, and sort fields
3. Determine the fields on the item record that you require to create field sets
4. Check if data is available in each of field you want to access using api.
5. You can create custom record and use it as step 2 also. Example: if you want to make brand or tag and 
display on website.
6. Populate custom fields with data.
7. On Item Record there is a checkbox Display in Web Site , check this box to show on website.
8. Item should not be inactive as inactive item will not show on Website. 
9. When you check the Show Uncategorized Items box, all items that are active and have the Display in Web Site box checked are indexed. This option enables items to display in search results, even if the items are not published to a category.

The Item Search API returns the items depending on the item availability in a given subsidiary at the time of indexing.
 Item will show in search only if after all search indexing is complete and have :
1. If subsidiary is enabled and item has subsidiary same as of website.
2. Item should be associated with Income Account
3.Item should not be discount item or other charge item
4. Item price should have price in numeric value, example: shoes price should be like $30 not 30%.

In a single call, maximum of 10K results are returned , using filtering we can reduce this number and search specific item also.

The Base URL

 Base URL is very import and can be used by using AJAX or J Query, you can use any client that support JSON and HTTP. 
URL: http://www.yourwebstorename.com/api/items
You can use above URL and send your get request to above url , in response you will get all items


The base URL is described below:
  • Custom Domain – A unique URL is required. This must be a custom domain, for example, www.yourwebstorename.com
  • Items – This API is designed to query item records in your NetSuite account. Note that /items in the URL is part of the path. It is required. You cannot assign a value to it.
  • Parameters – These are typically name/value pairs, such as fieldset=details. You can use parameters defined by NetSuite along with values from your account. You can use multiple parameters in an Item Search API request by separating them with an ampersand (&).
     
For more details read below Blogs:
1. How to write search on Item in SuiteCommerce? Click here
2. How search query item returning quantity?Click Here
3.  Parameters Reserved by Netsuite for item Search. Click Here
 Response coming from API is in the form of Json.

Please share and help others also. Comment below if you have any question.

Thanks
Abhi


Comments