Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of product search method and device thereof are provided.Can improve the degree of accuracy of in network, carrying out the result of commercial articles searching, bring better experience for the user who carries out the search of network provider's article.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of product search method, and said method comprises:
Receive the commodity keyword that the user imported, said commodity keyword is used for the relevant commodity of searching key word;
In recorded information, inquire about and the corresponding recorded information of said commodity keyword according to said commodity keyword, said recorded information comprises: commodity keyword, category, correlativity index;
Said category is sorted and obtain the ranking results of the corresponding commodity of said category according to the height of said correlativity index;
Said ranking results is sent to said user's terminal.
Preferably, said height according to said correlativity index sorts to said category and obtains the step of the ranking results of the corresponding commodity of said category, comprising:
Total score to the commodity of the high category of said correlativity index carries out bonus point;
Height according to the total score after the bonus point sorts to commodity in advance.
Preferably, said height according to the total score after the bonus point comprises the step that commodity sort in advance:
Sort in advance according to the height of the total score after the bonus point commodity to a category; Perhaps,
According to the height of the total score after the bonus point commodity of a plurality of categories are mixed ordering in advance.
Preferably, before the step of the said reception commodity keyword that the user imported, also comprise:
Recording user is to the click action of commodity;
Generate recorded information according to said click action, said recorded information comprises: commodity keyword, the pairing category of commodity, correlativity index that the user clicked;
Preserve said recorded information.
Preferably, the mode of the said recorded information of said preservation adopts the memory function of distributed platform to preserve.
Correspondingly, the embodiment of the invention also provides a kind of commercial articles searching device, and said device comprises:
Receiver module is used to receive the commodity keyword that the user imports, and said commodity keyword is used for the relevant commodity of searching key word;
Enquiry module is used for inquiring about and the corresponding recorded information of said commodity keyword in recorded information according to said commodity keyword, and said recorded information comprises: commodity keyword, category, correlativity index;
Order module, the height of the correlativity index of the recorded information that is used for inquiring about according to said enquiry module sort to said category and obtain the ranking results of the corresponding commodity of said category;
Sending module is used for said ranking results is sent to user's terminal.
Preferably, said order module comprises:
Add subdivision, be used for the total score of the commodity of the high category of said correlativity index is carried out bonus point;
Sequencing unit is used for according to the said height that adds the total score after the subdivision bonus point commodity being sorted in advance.
Preferably, said sequencing unit is used for sorting in advance according to the height of the total score after the bonus point commodity to a category; Perhaps, be used for the commodity of a plurality of categories being mixed ordering in advance according to the height of the total score after the bonus point.
Preferably, said device also comprises:
Logging modle is used for the click action of recording user to commodity;
Generation module, the click action that is used for writing down according to said logging modle generates recorded information, and said recorded information comprises: commodity keyword, the pairing category of commodity, correlativity index that the user clicked;
Preserve module, be used to preserve said recorded information.
Preferably, said preservation module adopts the memory function of distributed platform to preserve said recorded information.
Embodiment of the present invention embodiment; Has following beneficial effect: can carry out commercial articles searching through the commodity keyword through user in the past; And the clicks that required commodity are clicked added up draw the correlativity index, through the correlativity index commodity category and corresponding commodity are sorted, can make the user obtain wanting to search for the commodity that obtain fast; Improve the degree of accuracy of in network, carrying out the result of commercial articles searching, brought better experience for the user who carries out the search of network provider's article.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is the schematic flow sheet of first embodiment of product search method of the present invention, and this method comprises:
S101 receives the commodity keyword that the user imported, and this commodity keyword is used for the relevant commodity of searching key word;
S102 inquires about in recorded information and the corresponding recorded information of commodity keyword according to the commodity keyword, and this recorded information comprises: commodity keyword, category, correlativity index;
S103 sorts to category and obtains the ranking results of the corresponding commodity of category according to the height of correlativity index;
S104 sends to ranking results at user's terminal.
Among the inventive method embodiment; What adopt is the mode of searching for generally; Whether the commodity keyword like input is " mobile phone ", will in recorded information, inquire about to exist and " mobile phone " corresponding recorded information, is called the recorded information of dependent merchandises such as " mobile phone ", " Cellphone Accessories ", " mobile phone chain ", " cell phone incoming call sudden strain of a muscle " like the category name; This recorded information comprises: the commodity keyword, like the above-mentioned keyword of importing " mobile phone "; Category is like above-mentioned category title; Correlativity index, this correlativity index are to click dependent merchandise institute accumulated statistics by user in the past to draw.Such as recorded information is " commodity keyword A; category P0; correlativity index R0 ", wherein, R0=user to the clicks/user of the corresponding category P0 of commodity keyword A institute corresponding goods to the clicks of corresponding all the category institute corresponding goods of commodity keyword A+(user is to the clicks of user in clicks/10 of the corresponding category P0 of commodity keyword A institute corresponding goods day to corresponding all the category institute corresponding goods of commodity keyword A in 10 days) * W; W is the time weighting factor; Can adjust according to actual conditions, above-mentioned example has been lifted the data in 10 days, is because the data in 10 days more can reflect the trend of user in the enterprising article search of doing business of network; The more demand of user's input " shoes " is sandals during like summer, also can adjust time zone according to actual conditions.In addition, in the practical implementation, the correlativity index can use the numerical value of number percent to embody.
In the present embodiment; Import commodity keyword A like the user; Then whether inquiry exists the corresponding recorded information with commodity keyword A in recorded information, is (commodity keyword A, category P0 like recorded information; 97); Show that then the user was when using this commodity keyword A to carry out commercial articles searching in the past, the correlativity index of pairing category of the commodity of being clicked and category P0 has 97, and the user just can search for behind the required commodity keyword of input and draw comparatively relevant commodity category and corresponding commodity like this.In addition, adopt, can search lower category of correlativity index or commodity simultaneously, explain that the number of times of clicking these commodity when the user carried out commercial articles searching through commodity keyword A in the past is less like commodity keyword A.
So just can sort to the category of dependent merchandise and obtain the ranking results of the corresponding commodity of category according to the height of correlativity index, sort like the commodity with category P0, the order of this ordering can be at random, also can set regulation and sort.And ranking results sent to user's terminal.User's in the embodiment of the invention terminal can be mobile phone, computer etc., is shown by the browser on the terminals such as mobile phone, computer.
In addition, as shown in Figure 2 among first embodiment of the inventive method, S103 can further comprise:
S1031 carries out bonus point to the total score of the commodity of the high category of correlativity index;
S1032 sorts to commodity according to the height of the total score after the bonus point in advance.
When the user imports commodity keyword A, if A is present in the record, then the total score to the higher pairing commodity of category of correlativity index carries out bonus point, to reach the effect that the pairing commodity of category that the correlativity index is higher sort in advance.
In addition, can be to sort in advance among the S1032 according to the height of the total score after the bonus point commodity to a category; Perhaps, according to the height of the total score after the bonus point commodity of a plurality of categories are mixed ordering in advance.
If the user imports commodity keyword A, there are (commodity keyword A, category P0; Correlativity index 98) such recorded information; Explain that the commodity that belong to category P0 need bonus point in advance, if commodity keyword corresponding a plurality of categories, be with before the category row; Before still a plurality of categories are mixed row, selection strategy can be arranged.If three recorded informations (commodity keyword A, category P0, correlativity index 5) are arranged; (commodity keyword A, category P1, correlativity index 90); (commodity keyword A, category P2, correlativity index 5); Relative other two categories of correlativity index that can draw category P1 have accounted for absolute predominance, so only preferentially the pairing commodity of category P1 are sorted in advance than higher.If such three recorded informations (commodity keyword A, category P0, correlativity index 5) are arranged; (commodity keyword A, category P1, correlativity index 40); (commodity keyword A, category P2,55); At this moment can draw the commodity and the more relevant result of commodity keyword A that the user is imported of category P1, P2, so just two category P1 and the pairing commodity of P2 mixed ordering in advance.
First embodiment of embodiment of the present invention method; Can carry out commercial articles searching through the commodity keyword through user in the past; And the clicks that required commodity are clicked added up draw the correlativity index, through the correlativity index commodity category and corresponding commodity are sorted, can make the user obtain wanting to search for the commodity that obtain fast; Improve the degree of accuracy of in network, carrying out the result of commercial articles searching, brought better experience for the user who carries out the search of network provider's article.
Fig. 3 is the schematic flow sheet of second embodiment of product search method of the present invention, and is as shown in Figure 3, and this method comprises:
S301, recording user is to the click action of commodity;
S302 generates recorded information according to click action, and this recorded information comprises: commodity keyword, the pairing category of commodity, correlativity index that the user clicked;
S303, keeping records information;
S304 receives the commodity keyword that the user imported, and this commodity keyword is used for the relevant commodity of searching key word;
Whether S305 inquires about in recorded information according to the commodity keyword and to exist and the corresponding recorded information of commodity keyword, and this recorded information comprises: commodity keyword, category, correlativity index; If then carry out S306;
S306 sorts to category and obtains the ranking results of the corresponding commodity of category according to the height of correlativity index;
S307 sends to ranking results at user's terminal.
Wherein, S304, S305, S306, S307 respectively with the inventive method first embodiment in S101, S102, S103, S104 are corresponding one by one, repeat no more here.
Among the inventive method second embodiment; The user can click the commodity that searched through the commodity keyword in carrying out network commodity search procedure, be " mobile phone " like the commodity keyword, and then recording user is to the click action of commodity; And generation recorded information; Wherein the commodity keyword for " mobile phone " can be corresponding a plurality of commodity categories are arranged, like mobile phone ", " Cellphone Accessories ", " mobile phone chain ", " cell phone incoming call sudden strain of a muscle " etc., therefore; this recorded information comprises: the commodity keyword, like the above-mentioned keyword of importing " mobile phone "; The pairing category of the commodity that the user clicked is like above-mentioned category title; Correlativity index, this correlativity index are to click dependent merchandise institute accumulated statistics by user in the past to draw.Such as recorded information is " commodity keyword A; category P0; correlativity index R0 ", wherein, R0=user to the clicks/user of the corresponding category P0 of commodity keyword A institute corresponding goods to the clicks of corresponding all the category institute corresponding goods of commodity keyword A+(user is to the clicks of user in clicks/10 of the corresponding category P0 of commodity keyword A institute corresponding goods day to corresponding all the category institute corresponding goods of commodity keyword A in 10 days) * W; W is the time weighting factor; Can adjust according to actual conditions, above-mentioned example has been lifted the data in 10 days, is because the data in 10 days more can reflect the trend of user in the enterprising article search of doing business of network.
In addition, in embodiments of the present invention, if the user has imported commodity keyword A, and the commodity in the corresponding category of commodity keyword have been played order, the correlativity index of this category should improve so at once.Because the user has imported commodity keyword A and played order, these data are very credible.
When the commodity keyword of importing is the long-tail speech,, can draw popular value through " total numbers of commodity keyword commodity under the number that hits under certain category/this category " and carry out hot category like " the classical fashion of mobile phone ".For example the user imports commodity keyword " the classical fashion of mobile phone "; The commodity amount of category " mobile phone " is 10000; The commodity amount that comprises this commodity keyword is 900, and the commodity amount of category " necklace " is 40000, and the commodity amount that comprises this commodity keyword is 20; Then the hot topic value of category " mobile phone " is R0=900/10000=9%; And the hot topic value of category " necklace " is R1=20/40000=0.05%, can draw the hot topic value of the hot topic value of " mobile phone " far above " necklace ", then the commodity in first search " mobile phone " category.
Second embodiment of embodiment of the present invention method; Can carry out commercial articles searching through the commodity keyword through user in the past; And the clicks that required commodity are clicked added up draw the correlativity index, through the correlativity index commodity category and corresponding commodity are sorted, can make the user obtain wanting to search for the commodity that obtain fast; Improve the degree of accuracy of in network, carrying out the result of commercial articles searching, brought better experience for the user who carries out the search of network provider's article.
In the embodiment of the invention, can adopt the memory function of distributed platform that recorded information is preserved, can accelerate the speed of storing and searching for.
Fig. 4 is that the structure of first embodiment of commercial articles searching device of the present invention is formed synoptic diagram, and as shown in Figure 4, this device comprises:
Receiver module 40 is used to receive the commodity keyword that the user imports, and this commodity keyword is used for the relevant commodity of searching key word;
Enquiry module 41 is used for inquiring about and the corresponding recorded information of commodity keyword in recorded information according to receiver module 40 received commodity keywords, and this recorded information comprises: commodity keyword, category, correlativity index;
Order module 42, the height of the correlativity index of the recorded information that is used for being inquired about when enquiry module 41 sort to category and obtain the ranking results of the corresponding commodity of category;
Sending module 43 is used for the ranking results that order module 42 is drawn is sent to user's terminal.
Wherein, order module 42 comprises:
Add subdivision 420, be used for the total score of the commodity of the high category of correlativity index is carried out bonus point;
Sequencing unit 421 is used for according to the height that adds the total score after subdivision 420 bonus point commodity being sorted in advance.
Sequencing unit 421 also is used for sorting in advance according to the height of the total score after the bonus point commodity to a category; Perhaps, be used for the commodity of a plurality of categories being mixed ordering in advance according to the height of the total score after the bonus point.
Implementation procedure of this device and principle of work repeat no more as the principle of first embodiment of the inventive method here.
First embodiment of embodiment of the present invention device; Can carry out commercial articles searching through the commodity keyword through user in the past; And the clicks that required commodity are clicked added up draw the correlativity index, through the correlativity index commodity category and corresponding commodity are sorted, can make the user obtain wanting to search for the commodity that obtain fast; Improve the degree of accuracy of in network, carrying out the result of commercial articles searching, brought better experience for the user who carries out the search of network provider's article.
In addition, the present invention also provides second embodiment of device, and this device has comprised outside the receiver module 40 that installs among first embodiment, enquiry module 41, order module 42, the sending module 43, also comprised:
Logging modle is used for the click action of recording user to commodity;
Generation module, the click action that is used for writing down according to logging modle generates recorded information, and this recorded information comprises: commodity keyword, the pairing category of commodity, correlativity index that the user clicked;
Preserve module, be used for keeping records information.Can adopt the memory function keeping records information of distributed platform.
The user can click the commodity that searched through the commodity keyword in carrying out network commodity search procedure; Like the commodity keyword is " mobile phone "; Then through the logging modle recording user to the click action of commodity, and generate recorded information through generation module, wherein the commodity keyword for " mobile phone " can be corresponding a plurality of commodity categories are arranged; Like mobile phone ", " Cellphone Accessories ", " mobile phone chain ", " cell phone incoming call sudden strain of a muscle " etc.; therefore, this recorded information comprises: the commodity keyword, like the above-mentioned keyword of importing " mobile phone "; The pairing category of the commodity that the user clicked is like above-mentioned category title; Correlativity index, this correlativity index are to click dependent merchandise institute accumulated statistics by user in the past to draw.Such as recorded information is " commodity keyword A; category P0; correlativity index R0 ", wherein, R0=user to the clicks/user of the corresponding category P0 of commodity keyword A institute corresponding goods to the clicks of corresponding all the category institute corresponding goods of commodity keyword A+(user is to the clicks of user in clicks/10 of the corresponding category P0 of commodity keyword A institute corresponding goods day to corresponding all the category institute corresponding goods of commodity keyword A in 10 days) * W; W is the time weighting factor; Can adjust according to actual conditions, above-mentioned example has been lifted the data in 10 days, is because the data in 10 days more can reflect the trend of user in the enterprising article search of doing business of network.
When the commodity keyword of importing is the long-tail speech,, can draw popular value through " total numbers of commodity keyword commodity under the number that hits under certain category/this category " and carry out hot category like " the classical fashion of mobile phone ".For example the user imports commodity keyword " the classical fashion of mobile phone "; The commodity amount of category " mobile phone " is 10000; The commodity amount that comprises this commodity keyword is 900, and the commodity amount of category " necklace " is 40000, and the commodity amount that comprises this commodity keyword is 20; Then the hot topic value of category " mobile phone " is R0=900/10000=9%; And the hot topic value of category " necklace " is R1=20/40000=0.05%, can draw the hot topic value of the hot topic value of " mobile phone " far above " necklace ", then the commodity in first search " mobile phone " category.
Second embodiment of embodiment of the present invention device; Can carry out commercial articles searching through the commodity keyword through user in the past; And the clicks that required commodity are clicked added up draw the correlativity index, through the correlativity index commodity category and corresponding commodity are sorted, can make the user obtain wanting to search for the commodity that obtain fast; Improve the degree of accuracy of in network, carrying out the result of commercial articles searching, brought better experience for the user who carries out the search of network provider's article.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely a kind of preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.