CN101122915A - Search engine based on parameter - Google Patents

Search engine based on parameter Download PDF

Info

Publication number
CN101122915A
CN101122915A CNA2007100532643A CN200710053264A CN101122915A CN 101122915 A CN101122915 A CN 101122915A CN A2007100532643 A CNA2007100532643 A CN A2007100532643A CN 200710053264 A CN200710053264 A CN 200710053264A CN 101122915 A CN101122915 A CN 101122915A
Authority
CN
China
Prior art keywords
classification
template
major key
parameter item
parameter
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.)
Pending
Application number
CNA2007100532643A
Other languages
Chinese (zh)
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.)
WUHAN YIBO COMMUNICATIONS TECHNOLOGY Co Ltd
Original Assignee
WUHAN YIBO COMMUNICATIONS TECHNOLOGY 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 WUHAN YIBO COMMUNICATIONS TECHNOLOGY Co Ltd filed Critical WUHAN YIBO COMMUNICATIONS TECHNOLOGY Co Ltd
Priority to CNA2007100532643A priority Critical patent/CN101122915A/en
Publication of CN101122915A publication Critical patent/CN101122915A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to the field of search engines, and provides a parameter-based search engine. In the search engine, a parameter template is first established, i. e. keywords are categorized at first, a parameter template is established in accordance with the categorization, and details and entity relations of the parameter template are input to a database, each parameter template corresponding to a dynamic sheet in the database; Then product parameters are input, i. e. the corresponding parameter template of the product is found out through the product category, and the parameter information of the product is input to the corresponding dynamic sheet through the parameter template; When using the search engine, the corresponding parameter template of a to-be-searched keyword is found out, then the search conditions are combined into a relation database search sentence used for search in the corresponding dynamic sheet through the corresponding parameter template, and finally the search results in the dynamic sheet are returned. The search engine is characterized in by high search pertinence, high accuracy and convenient use.

Description

Search engine based on parameter
Technical field
The invention belongs to applications of computer network field, particularly relate to a kind of search engine.
Background technology
In the application process of computer network, search engine plays king-sized effect to consulting of the network information.Search engine is meant automatically and gathers information from the Internet, after certain arrangement, offers the system that the user inquires about.Information vastness on the Internet is multifarious, and has no order, and isolated information is got in touch by web page interlinkage.And search engine is then drawn an open-and-shut information map for the user, consults at any time for the user.In different industries, for example manufacturing industry often needs to carry out consulting of information in conjunction with the product parameters that will search for.For example search for passenger vehicle, then the user expects and can carry out more accurate consulting by parameters such as length overall, beam overall, seating capacities.Present search engine then lacks the function of parameter search, can not satisfy user's needs.
Summary of the invention
Technical matters to be solved by this invention is: a kind of search engine based on parameter is provided, and this search engine can be searched for by classification and relevant parameters, improves the search accuracy, and is easy to use.
The technical solution adopted in the present invention is: at first set up parameterized template, promptly earlier keyword is classified, set up parameterized template according to classification then, parameterized template specifying information and entity relationship are entered in the database, parameterized template dynamic table of corresponding generation in database; The typing product parameters promptly finds the corresponding parameters template by this product place classification earlier then, by this parameterized template product parameters information is entered in the corresponding dynamic table; When using this search engine, find the relevant parameters template according to the keyword that will inquire about, by this relevant parameters template querying condition is spliced into the relational database query statement again and in the corresponding dynamic table, inquires about, at last the result who inquires about in the dynamic table is returned.
Beneficial effect of the present invention: search for strong points, the accuracy height, easy to use.
Description of drawings
Fig. 1 a is a schematic diagram of setting up parameterized template.
Fig. 1 b is the schematic diagram by parameterized template typing product parameters.
Fig. 1 c is search principle figure.
Fig. 2 is the data relationship sterogram.
Fig. 3 is system's consistency operation synoptic diagram 1.
Fig. 4 is system's consistency operation synoptic diagram 2.
Fig. 5 is self-defined control function calling relationship figure.
Embodiment
Below in conjunction with accompanying drawing the present invention is described, but does not limit the present invention.
The principle of the invention is shown in Fig. 1 a, Fig. 1 b and Fig. 1 c, and wherein n is a natural number.
As shown in Figure 1a, the first step is to set up parameterized template.Promptly keyword is classified by elder generation, establishes to be divided into classification 1, classification 2 ... classification n has only bottom classification ability modeling plate.Set up parameterized template according to classification then, parameterized template specifying information and entity relationship are entered in the database, parameterized template is corresponding in database to generate a dynamic table: 1 the corresponding dynamic table 1 that generates of parameter digital-to-analogue plate of promptly classifying, the corresponding dynamic table 2 that generates of the parameterized template of classification 2 ... the corresponding dynamic table n that generates of the parameterized template of classification n.
Shown in Fig. 1 b, second step was the typing product parameters.Be provided with product 1, product 2 ... product n, find the corresponding parameters template by this product place classification earlier, promptly find corresponding parameters template 1, find corresponding parameters template 2 by the classification of product 2 places by the classification of product 1 place ... find corresponding parameters template n by the classification of product n place.By this parameterized template product parameters information is entered in the corresponding dynamic table then, promptly the parameter of product 1 is entered in the dynamic table 1 by parameterized template 1, and the parameter of product 2 is entered in the dynamic table 2 ... the parameter of product n is entered among the dynamic table n.
Shown in Fig. 1 c, the 3rd step was to use this search engine.At first find the relevant parameters template according to the keyword that will inquire about, promptly find relevant parameters template 1, parameterized template 2 according to this keyword ... or parameterized template n, by this relevant parameters template querying condition being spliced into the relational database query statement again inquires about in the corresponding dynamic table, even find 1 inquiry in dynamic table 1 of parameterized template, if find 2 inquiries in dynamic table 2 of parameterized template ... if find parameterized template n then in dynamic table n, to inquire about.At last the result who inquires about in the dynamic table is returned.
By this principle, can be in relational database definition of data relationship entity figure, the i.e. storage means of dynamic table.This sterogram as shown in Figure 2, PK represents major key, FK1 represents first external key, FK2 represents second external key, FK3 represents the 3rd external key.Major key under the keyword classification table is the keyword classification major key.Major key under the parameterized template table is the parameterized template major key, and first external key under the parameterized template table is the keyword classification major key.Major key under parameter item unit's sorted table is parameter item unit's classification major key.Major key under the parameter item table is the parameter item major key, and first external key under the parameter item table is parameter item unit's classification major key.Major key under parameter item unit's table is parameter item unit's major key, and first external key under parameter item unit's table is parameter item unit's classification major key.Major key under the parametric classification table is the parametric classification major key.Major key under the parametric classification-parameter item table (corresponding relation between expression parametric classification and the parameter item) is parametric classification-parameter item major key, first external key under parametric classification-parameter item table is the parametric classification major key, and second external key under parametric classification and the parameter item mapping table is the parameter item major key.Major key under template-parametric classification-parameter item table (corresponding relation between expression parameterized template, parametric classification and the parameter item) is template-parametric classification-parameter item major key, first external key under template-parametric classification-parameter item table is the parameterized template major key, second external key under template-parametric classification-parameter item table is the parametric classification major key, and the 3rd external key under template-parametric classification-parameter item table is the parameter item major key.
Be the content that passenger vehicle illustrates dynamic table below with the keyword.
Being categorized as of its keyword classification table " automobile>car load>passenger vehicle ", the content of parameterized template table is the passenger vehicle parameterized template, the content of parameter item unit's sorted table is length and weight, the parameter item table record be (for example vehicle, length overall, the beam overalls, always high) such as data types, length of concrete each row of dynamic table, the content of parameter item unit's table is kilometer, millimeter and kilogram, and the content of parametric classification table is important technological parameters, engine parameter and chassis configuration.
The content of parametric classification-parameter item table is: important technological parameters comprises vehicle, length overall, beam overall, height overall; Engine parameter comprises engine model, engine mode and engine emission standard; The chassis configuration comprises chassis producer, chassietype, variator.
The content of template-parametric classification-parameter item table is: the passenger vehicle parameterized template comprises important technological parameters, engine parameter and chassis configuration; Important technological parameters comprises vehicle, length overall, beam overall, height overall; Engine parameter comprises engine model, engine mode and engine emission standard; The chassis configuration comprises chassis producer, chassietype, variator.
The consistency operation synoptic diagram of establishment parameterized template as shown in Figure 3 and Figure 4.Will create a passenger vehicle parameterized template now such as us, system's consistency operation is as follows:
As shown in Figure 3, on classification tree, select the passenger vehicle classification, click the establishment parametric classification of configuration template the inside, can import concrete information such as parametric classification title on the right.Set up parametric classifications such as important technological parameters among Fig. 3, point can be kept at the data of this parametric classification in the parametric classification table when preserving.
As shown in Figure 4, can in parametric classification, add concrete parameter item.Be example with the important technological parameters in the parametric classification among the figure, can the typing vehicle etc. parameter item.
Point adds a record and dynamically generates a table (dynamic table) according to parametric classification and the concrete information of parameter item in database in parameterized template when preserving this template, this table name adds certain rule name by systematic name, be used for being stored in the concrete attribute information of product that this parameterized template adds, such as: seating capacity, information such as length overall.
Corresponding each undermost classification just can define a corresponding parameters template according to this storage rule.Because different parameterized template parameters is different, when corresponding product parameters is with search so typing is for convenience classified a self-defined control has just been done in the input of querying condition under the different parameterized templates.During the typing product parameters, be to transmit product parameters between the dynamic table of corresponding parameters template and correspondence by this control.Find classification by keyword during search, find the major key of keyword classification table according to classification, between relevant parameters template and the corresponding dynamic table, this control dynamically shows the specifying information of the parameterized template under this classification according to the major key that imports into, import various querying conditions by this control then, and querying condition is spliced into the relational database query statement by this control, in dynamic table, inquire about.
This control can be used a variety of language compilation, is that example illustrates below with the C# language.Function and function parameter thereof are as follows in the control, and wherein function English name and function parameter are in the bracket of function Chinese back.
The function of private type:
Newly-increased classification display parameter information (private void Show (string strClassID));
According to classification, production code member display parameter information (private void Show (string strClassID, stringstrProduct ID));
Direct search parameter item display parameter information does not need classification, production code member (private void Show2 (stringstrClassID, string strParameterClassID));
Show search engine (private void ShowSearchEngine (string strClassID, stringstrEngineID));
Display parameter item (private void ShowItem (string strParameterItemiD));
According to a concrete reference record, generate the control (private void ShowParameter (DataRowdr, int type, string strClassName)) on the page;
Generate corresponding control (private void ShowParameterClass (stringstrParameterClassName, DataRow[] drParameterItem) according to parametric classification);
Show head (private void ShowHead ());
Show afterbody (private void ShowBottom ());
Create form (private void CreatTable ());
Tape unit classification adds record (private void InsertRow (string strParameterItemCode, stringstrControlName, string strInputType, string strParameterClass, stringstrParameterItemName, string strDataType, string strParameterClassName, stringstrParameterItemID));
Increase record (private void InsertRow (the string strParameterItemCode of tape unit classification, string strControlName, string strInputType, string strParameterClass, stringstrParameterItemName, string strDataType, string strParameterClassName, stringstrUniTypeID, string strParameterItemID));
Binding unit item (private void BindOption (DropDownList ddl, stringstrUnitTypeID, string strUnitId));
The function of protection type:
Set up child control (protected override void CreateChildControls ());
The function of publicly-owned type:
Show all information (public void ShowInfo ());
Remove control (public void Clear ());
Open modal window (public void OpenModelWin (System.Web.UI.Page jsPage, WebControltouchControl, string ClientEventName, string url, string urlParameter, int width, intheigh, string strArgs, Control GetValueControl));
Each function calls is closed and is in the control:
As shown in Figure 5, ShowInfo function call CreateChildControls function.CreateChildControls function call Show, Show2, ShowItem, four functions of CreateTable, ShowSearchEngine.Two functions of Show, Show2 all call ShowHead, ShowParameter, four functions of ShowParameterClass, ShowBottom.Three functions of ShowItem function call ShowHead, ShowParameter and ShowBottom.ShowSearchEngine function call ShowParameterClass function.Three functions of ShowParameter function call OpenModelWin, InsertRow and BindOption.
The principle of work of this control is:
Code in the control is judged the display mode (directly input, drop-down selection, individual event selection, multiselect) of child control by the parameter of importing into, then by the Controls collection object, automatically create relevant control, pattern and the layout of controlling each child control by Add method and the hand-written HTML SGML of Controls, (remove control, create form for public duplicated code repeatedly, binding unit item etc.) then carried out the function encapsulation, all called by this control biography ginseng on user management backstage and foreground searched page parameter search function.
At first, show that all information functions (ShowInfo) have guided the beginning of whole control, this function has encapsulated the function of protection and has set up child control (CreateChildControls).In the CreateChildControls function, create form (TABLE) by creating table function (CreateTable); Simultaneously, the CreateChildControls function is judged the status information (Type) of the reception and registration of invoking page, this function is selected the needs content displayed according to status information then: display parameter information (two Show function and Show2 that name is identical, parameter is different), display parameter item (ShowItem) or demonstration search engine (ShowSearchEngine); Last Show, Show2, ShowItem and ShowSearchEngine function have begun the orderly assembly unit of carrying out the control detail content:
1) during display parameter information, need to show head (ShowHead), control (ShowParameter) according on the concrete reference record generation page generates corresponding control (ShowParameterClass) according to parametric classification, shows afterbody (ShowBottom);
2) the display parameter item is just comparatively simpler, and the page of application only need show head, and the control according on the concrete reference record generation page shows afterbody;
When 3) showing search engine, content displayed is more special, and what need is to generate corresponding control according to parametric classification;
Just enter the concrete reference record of the most complicated most crucial basis then and generated control (ShowParameter) process on the page:
1, the parameter imported into of this function is record row (dr), control type (type), classification (strClassName), judges the display mode of child control as parameter by the row strInputType of dr:
1) when being D, the strInputType parameter then is direct input display mode (text box).
2) when being A, the strInputType parameter then is drop-down selection display mode (drop-down list).
3) when the strInputType parameter is C then for singly selecting display mode.
4) when being B, the strInputType parameter then is the multiselect display mode.
The value of other row of dr all is to obtain from database by storing process, defines by the main attribute of these row to whole control, finishes before Show function call ShowParameter function and be listed as the process of obtaining data.
2, under different display modes, pass through the judgement of same flow process again:
1) judge by the parametric t ype that imports into: if type is not 2, then the font Show Styles is a black, if type is 2, and then special processing font style.
2) through after the step 1), call the Controls.add method again, on the interface, add child control according to display mode.These child controls comprise text box (single file or multirow textbox), drop-down selective listing (DropDownList) or options (individual event or multinomial lable).
All call public function during the specific implementation of step 2 again, promptly (InsertRow), binding unit item (BindOption) are not write down in the increase that adds record or tape unit classification of tape unit classification, and step 2 provides heavily loaded public function to open modal window (OpenModelWin) simultaneously.
Characteristic according to this self-defined control, when the represented product of typing keyword classification, can deposit the product corresponding parameters in the corresponding dynamic table, when search on the foreground according to classifying and initial conditions different are spliced into different query statements and come product is inquired about.

Claims (3)

1. based on the search engine of parameter, it is characterized in that: at first set up parameterized template, promptly earlier keyword is classified, set up parameterized template according to classification then, parameterized template specifying information and entity relationship are entered in the database parameterized template dynamic table of corresponding generation in database; The typing product parameters promptly finds the corresponding parameters template by this product place classification earlier then, by this parameterized template product parameters information is entered in the corresponding dynamic table; When using this search engine, find the relevant parameters template according to the keyword that will inquire about, by this relevant parameters template querying condition is spliced into the relational database query statement again and in the corresponding dynamic table, inquires about, at last the result who inquires about in the dynamic table is returned.
2. the search engine based on parameter as claimed in claim 1 is characterized in that: in the described dynamic table, the major key under the keyword classification table is the keyword classification major key; Major key under the parameterized template table is the parameterized template major key, and first external key under the parameterized template table is the keyword classification major key; Major key under parameter item unit's sorted table is parameter item unit's classification major key; Major key under the parameter item table is the parameter item major key, and first external key under the parameter item table is parameter item unit's classification major key; Major key under parameter item unit's table is parameter item unit's major key, and first external key under parameter item unit's table is parameter item unit's classification major key; Major key under the parametric classification table is the parametric classification major key; Major key under parametric classification-parameter item table is parametric classification-parameter item major key, and first external key under parametric classification-parameter item table is the parametric classification major key, and second external key under parametric classification-parameter item table is the parameter item major key; Major key under template-parametric classification-parameter item table is template-parametric classification-parameter item major key, first external key under template-parametric classification-parameter item table is the parameterized template major key, second external key under template-parametric classification-parameter item table is the parametric classification major key, and the 3rd external key under template-parametric classification-parameter item table is the parameter item major key.
3. the search engine based on parameter as claimed in claim 1 is characterized in that: defining a self-defined control, during the typing product parameters, is to transmit product parameters by this control between the dynamic table of corresponding parameters template and correspondence; When using this search engine, between relevant parameters template and the corresponding dynamic table, querying condition is spliced into the relational database query statement, and by this control this query statement is delivered in the corresponding dynamic table and inquires about by this control.
CNA2007100532643A 2007-09-18 2007-09-18 Search engine based on parameter Pending CN101122915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100532643A CN101122915A (en) 2007-09-18 2007-09-18 Search engine based on parameter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100532643A CN101122915A (en) 2007-09-18 2007-09-18 Search engine based on parameter

Publications (1)

Publication Number Publication Date
CN101122915A true CN101122915A (en) 2008-02-13

Family

ID=39085251

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100532643A Pending CN101122915A (en) 2007-09-18 2007-09-18 Search engine based on parameter

Country Status (1)

Country Link
CN (1) CN101122915A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016850A (en) * 2008-05-09 2011-04-13 微软公司 Keyword expression language for online search and advertising
CN102955807A (en) * 2011-08-26 2013-03-06 华为软件技术有限公司 Retrieval method and retrieval device for associated information
CN103136339A (en) * 2013-02-01 2013-06-05 百度在线网络技术(北京)有限公司 Searching method, client-side and network server-side based on service information
CN104239021A (en) * 2013-06-21 2014-12-24 阿里巴巴集团控股有限公司 Search engine query string generation method and device and search engine system
CN104615774A (en) * 2015-02-25 2015-05-13 郑州悉知信息技术有限公司 Product attribute information adding method and system
CN105653509A (en) * 2015-12-24 2016-06-08 北京经纬恒润科技有限公司 Document processing method and device
CN105989185A (en) * 2015-11-04 2016-10-05 北京卓易讯畅科技有限公司 System configuration method and system for routine task and tool generation
CN106294367A (en) * 2015-05-15 2017-01-04 常州明石晶电科技有限公司 Searcher and searching method thereof
CN104615774B (en) * 2015-02-25 2018-08-31 郑州悉知信息科技股份有限公司 A kind of the attribute information adding method and system of product
CN110765256A (en) * 2019-12-24 2020-02-07 杭州实在智能科技有限公司 Method and equipment for generating online legal consultation automatic reply
CN111222838A (en) * 2019-10-28 2020-06-02 中山市景荣电子有限公司 Method for refining range parameter management product, storage medium and computer
CN112148751A (en) * 2019-06-28 2020-12-29 北京百度网讯科技有限公司 Method and device for querying data

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016850B (en) * 2008-05-09 2013-06-05 微软公司 Keyword expression language for online search and advertising
CN102016850A (en) * 2008-05-09 2011-04-13 微软公司 Keyword expression language for online search and advertising
CN102955807A (en) * 2011-08-26 2013-03-06 华为软件技术有限公司 Retrieval method and retrieval device for associated information
CN102955807B (en) * 2011-08-26 2018-10-30 华为软件技术有限公司 A kind of search method and device of related information
CN103136339A (en) * 2013-02-01 2013-06-05 百度在线网络技术(北京)有限公司 Searching method, client-side and network server-side based on service information
CN104239021B (en) * 2013-06-21 2017-12-08 阿里巴巴集团控股有限公司 The generation method and device and search engine system of search engine inquiry string
CN104239021A (en) * 2013-06-21 2014-12-24 阿里巴巴集团控股有限公司 Search engine query string generation method and device and search engine system
CN104615774A (en) * 2015-02-25 2015-05-13 郑州悉知信息技术有限公司 Product attribute information adding method and system
CN104615774B (en) * 2015-02-25 2018-08-31 郑州悉知信息科技股份有限公司 A kind of the attribute information adding method and system of product
CN106294367A (en) * 2015-05-15 2017-01-04 常州明石晶电科技有限公司 Searcher and searching method thereof
CN105989185A (en) * 2015-11-04 2016-10-05 北京卓易讯畅科技有限公司 System configuration method and system for routine task and tool generation
CN105653509A (en) * 2015-12-24 2016-06-08 北京经纬恒润科技有限公司 Document processing method and device
CN112148751A (en) * 2019-06-28 2020-12-29 北京百度网讯科技有限公司 Method and device for querying data
CN112148751B (en) * 2019-06-28 2024-05-07 北京百度网讯科技有限公司 Method and device for querying data
CN111222838A (en) * 2019-10-28 2020-06-02 中山市景荣电子有限公司 Method for refining range parameter management product, storage medium and computer
CN111222838B (en) * 2019-10-28 2023-08-18 中山市景荣电子有限公司 Method for managing products by refining range parameters, storage medium and computer
CN110765256A (en) * 2019-12-24 2020-02-07 杭州实在智能科技有限公司 Method and equipment for generating online legal consultation automatic reply
CN110765256B (en) * 2019-12-24 2020-07-07 杭州实在智能科技有限公司 Method and equipment for generating online legal consultation automatic reply

Similar Documents

Publication Publication Date Title
CN101122915A (en) Search engine based on parameter
US11675781B2 (en) Dynamic dashboard with guided discovery
CN106649225A (en) JSON self-definition-based report generation system and method
US8234569B2 (en) Apparatus and method for defining and processing publication objects
US7668860B2 (en) Apparatus and method for constructing and using a semantic abstraction for querying hierarchical data
CN110717319A (en) Self-service report generation method and device, computing equipment and system
US20110087708A1 (en) Business object based operational reporting and analysis
CN106407170A (en) Rapid generation method and system for data report
KR101505858B1 (en) A templet-based online composing system for analyzing reports or views of big data by providing past templets of database tables and reference fields
CN102426582A (en) Data operation management device and data operation management method
US20150331928A1 (en) User-created members positioning for olap databases
CN101408909B (en) Method for describing product information model
US20050234959A1 (en) User interfaces for categorization schemes
CN109976729A (en) One kind depositing calculation and shows globally configurable Data Analysis Software architecture design method
CN107203557A (en) The method and device of object to be searched for handling
CN114117645B (en) Ship overall performance forecasting integrated application system
CN104572832A (en) Requirement meta model construction method and device
KR102490941B1 (en) An online report creation system using Excel tool
CN111241176A (en) Data management system
Lakshmanan et al. On querying spreadsheets
CN116450246A (en) Event stream configurable method based on state machine
CN115438291A (en) Method for generating form
US20130218893A1 (en) Executing in-database data mining processes
Nabli et al. Towards an automatic data mart design
KR20180063043A (en) Component-based software system and method of development

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication