This component implements full-text search functionality for the "MiniAmazon" project of CS 516. It serves as an extra feature in our e-commerce system, enabling users to search for products by keywords β similar to how major search engines like Google or Baidu work.
Whenever a product is imported, added, or updated, the following fields are passed to the full-text search service:
idcategory_idnamedescriptionprice
Among them, the name and description fields are indexed and made searchable using full-text search techniques.
- Endpoint:
POST http://www.cx0222.cn:8082/document/ - Request Payload:
AUserSearchRequestwith aquerystring (5β30 chars) and alimit(5β30 results). - Frontend: Integrated into the MiniAmazon UI; search results are shown directly in the result view.