Commodity search method and device, computer equipment and storage medium
A search method and computer program technology, applied in the field of search, can solve the problems of inability to use users, configure sorting results, and fail to meet sorting requirements, and achieve the effect of accurate display and improved user perception.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] The product search method provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 communicates with the server 104 through the network. Wherein, the terminal 102 can be, but not limited to, various personal computers, servers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be realized by an independent server or a server cluster composed of multiple servers. The terminal 102 inputs a search word, and sends the search word to the server 104, sends a search request to the server, and the server 104 obtains the search word; adopts the Bayesian classification algorithm to classify the search word, and obtains the corresponding search word Search product categories; search for the search terms, and sort and display the search results according to the search product categories.
Embodiment 2
[0055] In this example, if figure 2 As shown, a commodity search method is provided, which includes:
[0056] Step 210, obtain the search term.
[0057] In this step, the user inputs search terms through the front-end page, and the server obtains the search terms input by the user.
[0058] In step 220, the Bayesian classification algorithm is used to classify the search words, and the search commodity category corresponding to the search words is obtained.
[0059]Specifically, the Bayesian classification algorithm is used to classify the product categories of each part of the search term, and determine the product category to which the user's search term belongs. Specifically, the establishment of the Bayesian classification algorithm model needs to collect all commodity categories in the entire commodity database, including primary classification, secondary classification or tertiary classification, and train a probability matrix for all commodity data, and then accordin...
Embodiment 3
[0090] In this embodiment, a product search method based on the Elasticsearch search engine is provided, including:
[0091] Step 510, obtain the search term.
[0092] Step 520, perform regular expression processing on the search words to obtain effective keywords.
[0093] Step 530: Classify the effective keywords by using the Bayesian classification algorithm, and obtain the search commodity category corresponding to the effective keyword and the corresponding probability value of the search commodity category.
[0094] Step 540 , extracting the filtered commodity categories whose probability values are greater than a preset threshold from each of the searched commodity categories.
[0095] Step 550, obtaining the search grade corresponding to each filtered commodity category.
[0096] Step 560: Use the Elasticsearch search engine to search for the effective keywords, and sort and display the search results according to the filtered commodity category, search level and p...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


