CN108388464A - A kind of superior classification search method based on Local hydrodynamic unit - Google Patents

A kind of superior classification search method based on Local hydrodynamic unit Download PDF

Info

Publication number
CN108388464A
CN108388464A CN201810183959.1A CN201810183959A CN108388464A CN 108388464 A CN108388464 A CN 108388464A CN 201810183959 A CN201810183959 A CN 201810183959A CN 108388464 A CN108388464 A CN 108388464A
Authority
CN
China
Prior art keywords
commodity
session
label
superior
superior classification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810183959.1A
Other languages
Chinese (zh)
Other versions
CN108388464B (en
Inventor
李明远
赵瑞东
张磊
李善荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN201810183959.1A priority Critical patent/CN108388464B/en
Publication of CN108388464A publication Critical patent/CN108388464A/en
Application granted granted Critical
Publication of CN108388464B publication Critical patent/CN108388464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The superior classification search method based on Local hydrodynamic unit that the present invention relates to a kind of, the label of commodity superior classification is erasable by the session progress in python, it can store to mulching method, multiple label search and replacement thus may be implemented, rather than do not retrieve alternatively once, the search result of disaggregated classification condition is generated with multiclass session and original commercial articles searching does an intersection operation, and result is fed back into identical front end, the front end page of feedback and front end page before are one, it is only local to go to change retrieval result and corresponding label is shown.

Description

A kind of superior classification search method based on Local hydrodynamic unit
Technical field
The superior classification search method based on Local hydrodynamic unit that the present invention relates to a kind of, belongs to field of computer technology.
Background technology
With the development of the times, the improvement of people's living standards, people's shopping way are also changed.Online purchase now Object has become a kind of fashion, and compared with traditional shopping way, shopping online has many benefits, for example, it is convenient, fast, type is neat Entirely, time saving and energy saving.In order to provide the user with better experience, the good superior classification retrieval module of an excellent performance just has Its existing value and significance.
Currently, most of the realization of the superior classification retrieval module of generally existing is operated in multiple pages, without It is Local hydrodynamic unit, they can create different search interfaces according to different search conditions, and in searching database already The label of classification is added, the waste of resource and memory can be caused in this way, and multiple pages is needed constantly to do switching, when When the tag class of classification is especially more, this will expend a great deal of time construction displaying interface.Therefore, a function module is complete Kind, the superior classification algorithm based on Local hydrodynamic unit just has its existing value and significance.
Invention content
In view of the deficiencies of the prior art, the superior classification search method based on Local hydrodynamic unit that the present invention provides a kind of;
The present invention is similar to the superior classification retrieval on present mainstream shopping website, using self-designed based on part brush New superior classification searching algorithm devises a multiclass classification search function module.User can go to sieve according to different labels The product for selecting oneself to need, such as the brand of air-conditioning has a Gree, beautiful etc., for another example say that the efficiency of air-conditioning has level-one, two level Deng the setting of air-conditioning has cabinet-type, wall-mounted etc., can both have been screened according to a kind of labeling, also supports a variety of Label is used in conjunction with screening, this greatly improves the performance of system.And Local hydrodynamic unit this feature whether to The usage experience at family is promoted or system effectiveness promotes the help having largely.
The technical scheme is that:
A kind of superior classification search method based on Local hydrodynamic unit, including:
(1) the superior classification label of automatic business processing programmed acquisition commodity is utilized, and is stored in database;The database packet Include user data table, commodity data table, user's commodity association table;User data table includes the essential information of user, the base of user This information includes the name of user, phone, mailbox, identification card number;In commodity data table comprising the titles of commodity, price, sales volume, Evaluation score, purchase link, three tag along sorts;User's commodity association table includes the major key information of user and commodity;Three categories Label refer to the Commercial goods labels extracted from all kinds of merchandise newss, and for every class I goods, it all can be different, such as ice Case product, its label will be door-opening mode, refrigeration modes and efficiency grade;And for if TV, its label is then Can be size, clarity and efficiency grade.The major key information of user and commodity is exactly to distinguish user and commodity only One indication information, each user, each commodity have oneself unique major key information.
(2) initialize the value in superior classification label in corresponding session, i.e., it will be corresponding in superior classification label Value in session is set as empty;I.e.:Session is used to store the required attribute of specific user's session and configuration information, when When one session is activated for the first time, a unique mark is stored in local cookie, is created in session Three classes label is built, and three classes label initial value is disposed as sky.
(3) general search function is monitored, the superior classification label of all commodity is obtained in search process;
(4) monitoring users are clicked, and when clicking some commodity that step (3) obtains, obtain the superior classification mark of the commodity The value a in corresponding session is signed, and feeds back to rear end;The superior classification mark for using the post methods of HTTP to click user Label pass to backstage.
(5) judge whether the value in session corresponding with the superior classification label that step (4) listens to is empty, if It is to enter step (7), otherwise, enters step (6);
(6) value in the corresponding session of the superior classification label listened to step (4) is replaced with into a;A refers to leading to Cross the incoming value of the post methods of HTTP.
(7) according in all session condition and big search classification construct search result, the condition in session It refer to the three classes label created in session in step (2);Big search classification refers to:It is carried out according to the title of commodity Search, the no careful classification of the search enumerate all products for belonging to the title.
According to currently preferred, the step (1) utilizes the superior classification mark of automatic business processing programmed acquisition commodity Label, including:
A, the tag along sort of commodity on Jingdone district, Taobao website is crawled using the Python scapy reptiles constructed;
B, classification processing is carried out to the tag along sort of the step A commodity crawled, acquires the superior classification label of commodity.Ensure Each superior classification label to commodity is all unique;Superior classification label is exactly the more special label of commodity, they It is most important in the attribute of such commodity, the just energy efficiency index of such as air-conditioning, setting, with the labels of other commodity It is different.
The present invention by the label of commodity superior classification by session in python carry out it is erasable, can mulching method Ground stores, and multiple label search and replacement thus may be implemented, rather than do not retrieve alternatively once, uses multiclass Session generates the search result of disaggregated classification condition and original commercial articles searching does an intersection operation, and result is fed back to Identical front end, the front end page of feedback and front end page before are one, only local to go to change retrieval result and phase The label answered is shown.
According to currently preferred, the step (2), three classes label is created in session, refers to:Pass through HTTP's Post methods are constantly passed to new parameter, are judging which class label the parameter belong to and corresponding session is written from the background.
In this way, when user redirects between the Web page of application program, the variable being stored in session will not It loses, but is always existed down in entire user conversation.When user asks the Web page from application program, if There are no sessions, then Web server will automatically create a session object by the user.After session is expired or is abandoned, clothes Business device will terminate the session.
According to currently preferred, the step (3), general search function is monitored, all quotient are obtained in search process The superior classification label of product, by the commodity title obtained in snoop procedure, by the height of such commodity in the database Grade tag along sort is found out, and the superior classification label of such commodity is showed user in front-end interface.User is facilitated to select Select more subclass purpose commodity.
Beneficial effects of the present invention are:
1, search speed is improved using query set caching mechanism;
2, local change retrieval result and corresponding label are shown, do not need multiple front-end interface responses;
3, keyword parameter can be packaged using Q functions, to preferably apply multiple queries.
Description of the drawings
Fig. 1 is the flow diagram of superior classification search method of the present invention;
Fig. 2 is the result schematic diagram searched for using prior art algorithm;
Fig. 3 is the result schematic diagram using superior classification search method of the present invention;
Fig. 4 is 65 English that use the LeEco brand of superior classification search method of the present invention realization flat panel TV, ultra high-definition The effect diagram of the superior classification retrieval of very little commodity.
Specific implementation mode
The present invention is further qualified with embodiment with reference to the accompanying drawings of the specification, but not limited to this.
Embodiment 1
A kind of superior classification search method based on Local hydrodynamic unit, as shown in Figure 1, including:
(1) the superior classification label of automatic business processing programmed acquisition commodity is utilized, and is stored in database;The database is adopted With MYSQL database, the database includes user data table, commodity data table, user's commodity association table;User data table packet The essential information of user is included, the essential information of user includes the name of user, phone, mailbox, identification card number;In commodity data table Including the title of commodity, price, sales volume, evaluation score, purchase link, three tag along sorts;User's commodity association table includes using The major key information at family and commodity;Three classes label refers to the Commercial goods labels extracted from all kinds of merchandise newss, for every class I goods It all can be different, and such as refrigerator product, its label will be door-opening mode, refrigeration modes and efficiency grade; And for if TV, its label can be then size, clarity and efficiency grade.The major key information of user and commodity is exactly The sole indicator information that user and commodity are distinguished, each user, each commodity have oneself unique major key letter Breath.
(2) initialize the value in superior classification label in corresponding session, i.e., it will be corresponding in superior classification label Value in session is set as empty;I.e.:Session is used to store the required attribute of specific user's session and configuration information, when When one session is activated for the first time, a unique mark is stored in local cookie, is created in session Three classes label is built, and three classes label initial value is disposed as sky.Three classes label is created in session, refers to:Pass through HTTP Post methods be constantly passed to new parameter, judging which class label the parameter belong to and corresponding session is written from the background.
In this way, when user redirects between the Web page of application program, the variable being stored in session will not It loses, but is always existed down in entire user conversation.When user asks the Web page from application program, if There are no sessions, then Web server will automatically create a session object by the user.After session is expired or is abandoned, clothes Business device will terminate the session.
(3) general search function is monitored, the superior classification label of all commodity is obtained in search process;Refer to:It monitors General search function obtains the superior classification label of all commodity in search process, passes through the quotient obtained in snoop procedure Product title comes out the superior classification label lookup of such commodity in the database, and by the superior classification of such commodity Label shows user in front-end interface.User is facilitated to select more subclass purpose commodity.
(4) monitoring users are clicked, and when clicking some commodity that step (3) obtains, obtain the superior classification mark of the commodity The value a in corresponding session is signed, and feeds back to rear end;The superior classification mark for using the post methods of HTTP to click user Label pass to backstage.
(5) judge whether the value in session corresponding with the superior classification label that step (4) listens to is empty, if It is to enter step (7), otherwise, enters step (6);
(6) value in the corresponding session of the superior classification label listened to step (4) is replaced with into a;A refers to leading to Cross the incoming value of the post methods of HTTP.
(7) according in all session condition and big search classification construct search result, the condition in session It refer to the three classes label created in session in step (2);Big search classification refers to:It is carried out according to the title of commodity Search, the no careful classification of the search enumerate all products for belonging to the title.
Fig. 2 is the result schematic diagram searched for using prior art algorithm;Fig. 3 is using the present embodiment superior classification retrieval side The result schematic diagram of method;It is compared by Fig. 2, Fig. 3 it is found that before using superior classification searching algorithm, the total duration for completing search is 959ms, website load complete the used time as 1.25s.After use, the total duration for completing search is 548ms, and website load is completed to use When be 809ms.Therefore in terms of superior classification search, search efficiency is doubled, whole to add in terms of website integrally load Efficiency improves 0.5 times.
Fig. 4 is using the LeEco brand of the present embodiment superior classification search method realization flat panel TV, ultra high-definition 65 The effect diagram of the superior classification retrieval of the commodity of inch.Pass through setting for the superior classification searching algorithm for Local hydrodynamic unit Meter, the comparison that user can carry out at present are no longer the comparisons of the coarse commodity for a certain entire classification, and user can be with The commodity for the specific type or brand that the desired selection of the heart needs oneself, carry out fine-grained comparison.
Embodiment 2
According to a kind of superior classification search method based on Local hydrodynamic unit described in embodiment 1, difference lies in,
The step (1), using the superior classification label of automatic business processing programmed acquisition commodity, including:
A, the tag along sort of commodity on Jingdone district, Taobao website is crawled using the Python scapy reptiles constructed;
B, classification processing is carried out to the tag along sort of the step A commodity crawled, acquires the superior classification label of commodity.Ensure Each superior classification label to commodity is all unique;Superior classification label is exactly the more special label of commodity, they It is most important in the attribute of such commodity, the just energy efficiency index of such as air-conditioning, setting, with the labels of other commodity It is different.
The present invention by the label of commodity superior classification by session in python carry out it is erasable, can mulching method Ground stores, and multiple label search and replacement thus may be implemented, rather than do not retrieve alternatively once, uses multiclass Session generates the search result of disaggregated classification condition and original commercial articles searching does an intersection operation, and result is fed back to Identical front end, the front end page of feedback and front end page before are one, only local to go to change retrieval result and phase The label answered is shown.
Pseudo-code of the algorithm
The pseudocode illustrates the operating mechanism of the algorithm, including front end in detail by taking four class superior classification labels as an example Data interaction and backstage data processing.

Claims (4)

1. a kind of superior classification search method based on Local hydrodynamic unit, which is characterized in that including:
(1) the superior classification label of automatic business processing programmed acquisition commodity is utilized, and is stored in database;The database includes using User data table, commodity data table, user's commodity association table;User data table includes the essential information of user, the basic letter of user Breath includes the name of user, phone, mailbox, identification card number;Title comprising commodity, price, sales volume, evaluation in commodity data table Score, purchase link, three tag along sorts;User's commodity association table includes the major key information of user and commodity;
(2) initialize the value in superior classification label in corresponding session, i.e., it will be corresponding in superior classification label Value in session is set as empty;I.e.:Session is used to store the required attribute of specific user's session and configuration information, when When one session is activated for the first time, a unique mark is stored in local cookie, is created in session Three classes label is built, and three classes label initial value is disposed as sky;
(3) general search function is monitored, the superior classification label of all commodity is obtained in search process;
(4) monitoring users are clicked, and when clicking some commodity that step (3) obtains, obtain the superior classification label pair of the commodity Value a in the session answered, and feed back to rear end;
(5) judge whether the value in session corresponding with the superior classification label that step (4) listens to is empty, if so, into Enter step (7), otherwise, enters step (6);
(6) value in the corresponding session of the superior classification label listened to step (4) is replaced with into a;
(7) according in all session condition and big search classification construct search result, the condition in session refers to The three classes label created in session in step (2);Big search classification refers to:It is scanned for according to the title of commodity, Enumerate all products for belonging to the title.
2. a kind of superior classification search method based on Local hydrodynamic unit according to claim 1, which is characterized in that the step Suddenly (1), using the superior classification label of automatic business processing programmed acquisition commodity, including:
A, the tag along sort of commodity on Jingdone district, Taobao website is crawled using the Python scapy reptiles constructed;
B, classification processing is carried out to the tag along sort of the step A commodity crawled, acquires the superior classification label of commodity.
3. a kind of superior classification search method based on Local hydrodynamic unit according to claim 1, which is characterized in that the step Suddenly (2) create three classes label in session, refer to:It is constantly passed to new parameter by the post methods of HTTP, on backstage Judge which class label is the parameter belong to and corresponding session is written.
4. according to a kind of any superior classification search methods based on Local hydrodynamic unit of claim 1-3, which is characterized in that The step (3) monitors general search function, the superior classification label of all commodity is obtained in search process, by supervising The commodity title obtained in the process is listened, the superior classification label lookup of such commodity in the database is come out, and should The superior classification label of class commodity shows user in front-end interface.
CN201810183959.1A 2018-03-07 2018-03-07 Advanced classification retrieval method based on local refreshing Active CN108388464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810183959.1A CN108388464B (en) 2018-03-07 2018-03-07 Advanced classification retrieval method based on local refreshing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810183959.1A CN108388464B (en) 2018-03-07 2018-03-07 Advanced classification retrieval method based on local refreshing

Publications (2)

Publication Number Publication Date
CN108388464A true CN108388464A (en) 2018-08-10
CN108388464B CN108388464B (en) 2021-05-18

Family

ID=63066524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810183959.1A Active CN108388464B (en) 2018-03-07 2018-03-07 Advanced classification retrieval method based on local refreshing

Country Status (1)

Country Link
CN (1) CN108388464B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090001974A (en) * 2007-05-30 2009-01-09 제주대학교 산학협력단 System and method for sales forecasting by mobile rfid based statistical analysis
CN101563869A (en) * 2006-12-22 2009-10-21 苹果公司 Communicating and storing information associated with media broadcasts
CN102103606A (en) * 2009-12-18 2011-06-22 北京闻言科技有限公司 Technology for realizing advanced search of commodities on mobile phone client
CN102411754A (en) * 2011-11-29 2012-04-11 南京大学 Personalized recommendation method based on commodity property entropy
CN103020128A (en) * 2012-11-19 2013-04-03 北京奇虎科技有限公司 Method and device for data interaction with terminal device
US20130232154A1 (en) * 2009-05-15 2013-09-05 Citizennet Inc. Social network message categorization systems and methods
CN103473273A (en) * 2013-08-22 2013-12-25 百度在线网络技术(北京)有限公司 Information search method, information search device and server
CN104123356A (en) * 2014-07-17 2014-10-29 成都康赛信息技术有限公司 Method for increasing webpage response speed under large data volume condition
CN106372090A (en) * 2015-07-23 2017-02-01 苏宁云商集团股份有限公司 Query clustering method and device
CN106372956A (en) * 2015-07-23 2017-02-01 苏宁云商集团股份有限公司 Method and system for intention entity recognition based on user query log
CN107577755A (en) * 2017-08-31 2018-01-12 江西博瑞彤芸科技有限公司 A kind of searching method
CN107679247A (en) * 2017-10-31 2018-02-09 南威软件股份有限公司 A kind of method that electric business website realizes self-defined maintenance items extension information

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101563869A (en) * 2006-12-22 2009-10-21 苹果公司 Communicating and storing information associated with media broadcasts
KR20090001974A (en) * 2007-05-30 2009-01-09 제주대학교 산학협력단 System and method for sales forecasting by mobile rfid based statistical analysis
US20130232154A1 (en) * 2009-05-15 2013-09-05 Citizennet Inc. Social network message categorization systems and methods
CN102103606A (en) * 2009-12-18 2011-06-22 北京闻言科技有限公司 Technology for realizing advanced search of commodities on mobile phone client
CN102411754A (en) * 2011-11-29 2012-04-11 南京大学 Personalized recommendation method based on commodity property entropy
CN103020128A (en) * 2012-11-19 2013-04-03 北京奇虎科技有限公司 Method and device for data interaction with terminal device
CN103473273A (en) * 2013-08-22 2013-12-25 百度在线网络技术(北京)有限公司 Information search method, information search device and server
CN104123356A (en) * 2014-07-17 2014-10-29 成都康赛信息技术有限公司 Method for increasing webpage response speed under large data volume condition
CN106372090A (en) * 2015-07-23 2017-02-01 苏宁云商集团股份有限公司 Query clustering method and device
CN106372956A (en) * 2015-07-23 2017-02-01 苏宁云商集团股份有限公司 Method and system for intention entity recognition based on user query log
CN107577755A (en) * 2017-08-31 2018-01-12 江西博瑞彤芸科技有限公司 A kind of searching method
CN107679247A (en) * 2017-10-31 2018-02-09 南威软件股份有限公司 A kind of method that electric business website realizes self-defined maintenance items extension information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张鹏翼 等: "《商品检索中的多任务识别与分析》", 《现代图书情报技术》 *
袁方: "《面向智能信息检索的Web挖掘关键技术研究》", 《中国博士学位论文全文数据库(电子期刊)信息科技辑》 *

Also Published As

Publication number Publication date
CN108388464B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN103793388B (en) The sort method and device of search result
CN102375823B (en) Searching result gathering display method and system
WO2018014759A1 (en) Method, device and system for presenting clustering data table
TWI631474B (en) Method and device for product identification label and method for product navigation
Dai et al. Detecting online commercial intention (OCI)
CN102279851B (en) Intelligent navigation method, device and system
US7702541B2 (en) Targeted e-commerce system
US9576056B2 (en) Recommender system for identifying a new set of media items responsive to an input set of media items and knowledge base metrics
CN111008265B (en) Enterprise information searching method and device
TWI614702B (en) E-commerce website navigation method and system
US20050050001A1 (en) Method and system for database queries and information delivery
Rasolofo et al. Result merging strategies for a current news metasearcher
CN103377249A (en) Keyword putting method and system
CN101408879A (en) Method and system for searching product based on search engine
CN103577489A (en) Method and device of searching web browsing history
US20070185839A1 (en) Methods and systems to communicate information
CN103577490A (en) Method and device of showing web browsing history
CN103377240B (en) Information providing method, processing server and merging server
US10409877B2 (en) Search engine results declumping method
CN105931082B (en) Commodity category keyword extraction method and device
CN109191186A (en) A kind of intelligent recommendation system based on big data
CN105989125B (en) The searching method and system of tag recognition are carried out to no result word
WO2006065546A2 (en) Method, system and graphical user interface for providing reviews for a product
CN112581238A (en) E-commerce commodity display system and working method thereof
Liu et al. Visualizing web site comparisons

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant