CN104376076A - Searching and presenting software design method and system - Google Patents

Searching and presenting software design method and system Download PDF

Info

Publication number
CN104376076A
CN104376076A CN201410648501.0A CN201410648501A CN104376076A CN 104376076 A CN104376076 A CN 104376076A CN 201410648501 A CN201410648501 A CN 201410648501A CN 104376076 A CN104376076 A CN 104376076A
Authority
CN
China
Prior art keywords
user
search engine
request
module
search
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
CN201410648501.0A
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201410648501.0A priority Critical patent/CN104376076A/en
Publication of CN104376076A publication Critical patent/CN104376076A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a searching and presenting software design method and system, and belongs to the field of search engine design and software systems. The method includes the steps that a request of a user is transferred to a search engine providing services through an application during the visiting or inquiring process of the user, and the application renders data fed back by the search engine again and represents a result to the user; when the user carries out deletion, updating or insertion operations, the request of the user is transferred to the search engine through corresponding operations forwarded by the application, and the search engine finishes the corresponding operations.

Description

A kind of search presents software design approach and system
Technical field
The invention belongs to Design of Search Engine and software architecture field, be specifically related to a kind of search and present software design approach and system.
Background technology
MVC (Model-View-Controler) Design Mode is XeroxPARC is a kind of software design pattern that programming language Smalltalk-80 invents in the eighties, is widely used so far.Wherein, M refers to data model, and V refers to user interface, and C is then controller.The object using MVC is separated the code of M with V, thus make same program can use the different forms of expression.Such as a collection of statistics you can represent with histogram, pie chart respectively.The object that C exists is then guarantee that M's and V is synchronous, once M changes, V should synchronized update.Nowadays MVC is proposed as the Design Mode of Oracle-Sun company J2EE platform, and is subject to the welcome of the developer more and more using ColdFusion and PHP.
But the shortcoming of MVC is because it does not have clear and definite definition, is easy to so understand MVC completely.MVC is used to need meticulous plan, due to its inside principle more complicated, so need to spend some times to go thinking.And being not suitable for small-sized even medium scale application program, it is not that very large application program can lose more than gain usually that MVC is applied to scale by the cost plenty of time.And each system is a whole development again to V from M to C, cannot adapt to the demand of current agile development.And the together change of what the change of model M many times brought is control C and view V, even can be described as the thorough reconstruct of whole application.
Although had numerous search engine business externally providing service both at home and abroad, but it also just provides to user the ability obtaining its Search Results at most, application developer needs the data source relying on search engine business itself, unless oneself built the search engine of increasing income that it provides, oneself carries out the maintenance of server, and not so search engine is difficult to the person of being employed and directly applies.
Summary of the invention
The object of the invention is to solve the difficult problem existed in above-mentioned prior art, provide a kind of search to present software design approach and system, shorten the construction cycle, reduce cost of development.
The present invention is achieved by the following technical solutions:
A kind of data search rendering method, comprising:
When user carry out going sight-seeing or query script time, the request of user is transmitted to via application the search engine providing service, applies the data returned by search engine and re-starts and play up and present result to user;
When user carry out deleting, upgrade or update time, the request of user forwards corresponding operating to search engine via application, and search engine completes corresponding operating.
The function that described search engine has screening and sorts, and provide with lower interface: increase search content interface, be that existing search content increases or deletes screening conditions interface, and setting has sortord or the method interface of search content.
The request of described user is transmitted to via application the search engine providing service, applies the data returned by search engine and re-starts to play up and present result and be achieved in that to user
The query display request of user sends to described application, described application provides screening conditions and sortord to described search engine according to the query display request of user, described search engine is searched for data according to described screening conditions and sortord, then search data is returned to application, apply and described search data played up again and presents result to user.
The request of described user forwards corresponding operating to search engine via application, and search engine completes corresponding operating and is achieved in that
User is edit file in the application, apply the information that provides according to user by interpolations index content, increase, delete sifting sort, amendment these operations of score of sorting send to search engine, after described search engine operates, return and call successful information to application, application returns and stores success message to user.
Realize a system for described method, comprise search engine communication module, user's request receiving module, rendering module and present module;
Described search engine communication module is used for communicating with search engine;
Described rendering module is used for playing up the data that search engine returns, and the data after playing up is sent to and present module;
Described user's request receiving module for receiving the request of user, and processes the request of user, then the request of the user after process is sent to search engine communication module; The process carried out comprises: the retrieval and inquisition expression tree click request of user being converted into search engine, and by the sequence score correlation parameter used in search with return relevant parameter to data and be processed as search engine parameters etc.
Data after playing up are presented to user by the described module that presents.
The request of described user comprises visit, inquiry, deletion, upgrades and insert.
When user carry out going sight-seeing or query script time, the request of user is via after the reception of user's request receiving module, after the request of user's request receiving module to user processes, send it to search engine communication module, search engine communication module is transmitted to the search engine providing service again, after the data that search engine returns receive via search engine communication module, be sent to rendering module, after rendering module is played up data, send to and present module, present module and data are presented.
When user carry out deleting, upgrade or update time, the request of user is via after the reception of user's request receiving module, after the request of user's request receiving module to user processes, send it to search engine communication module, search engine communication module is transmitted to the search engine providing service again, after search engine complete operation, successful information will be called and send to search engine communication module, search engine communication module sends it to rendering module again, after rendering module is played up it, send to and present module, present module and it is presented.
Compared with prior art, the invention has the beneficial effects as follows: for application developer, the present invention's search engine instead of M and C in existing MVC pattern, shortens the construction cycle, reduces cost of development.And for search service provider, can better technology of sharing.
Accompanying drawing explanation
Data flow diagram when Fig. 1 is the inventive method application.
Fig. 2 is the structured flowchart of present system.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail:
The present invention proposes a kind of software design pattern, search for-present (Search-View) Design Mode.It is for meet at search engine process by the screening of data and sequence, and again plays up searching for the data obtained the software design pattern presented.Search engine is namely used to replace the function of M and C in script MVC pattern.Thus reduce the cost of exploitation, shorten the construction cycle, improve maintainability and the extensibility of software systems.And for based on the search engine of framework carry out upgrading and safeguard just can the performance of all application on it of the raising of universality.
Fig. 1 is the application of observing the design, data flow diagram during its application.Search engine and application are independently 2 systems, and search engine provides numerous interface can for application.Such as " application " can be certain website, uses public search engine (such as can use Baidu) to deposit all indexes of this website, uses the people of this website, be called user.
Specific as follows:
When user carry out going sight-seeing/query script time, user's request is transmitted to via application the search engine providing service, and the data returned by search engine re-start and play up and present result to user;
When user carry out deleting/upgrade/insert wait operation time, user's request forwards corresponding operating to search engine to achieve the goal via application.
The present invention enters internal system by the search engine of introducing open to the outside world " can user contribution " in other words, as system bus, builds a reusable software architecture.From MVC pattern is different before, is not that different models is used for different application, but architecture is done for the same search engine of numerous software applications.Such benefit is reduction of the cost of exploitation, shortens the construction cycle, improves maintainability and the extensibility of software systems.And for based on the search engine of framework carry out upgrading and safeguard just can the performance of all application on it of the raising of universality.Use and do architecture based on the search engine of HTTP request, it is natural possesses extensibility, the easier dilatation when portfolio increases.
When web2.0 is rooted in the hearts of the people gradually, (Web2.0 is a kind of mentality of designing to this public open search engine, and also both user contributes pattern.As long as search engine possesses the thinking meeting user's contribution, the search engine under web2.0 pattern just can be become), even can consider to allow data to circulate between multiple application, facilitate the integration of information, be convenient to hatch the application having more polymerism.
Search for-present the software design pattern of (Search-View): (search engine provides the function of carrying out screening and sorting, and can use application developer to be characterized in the screening of data and sequence being met at search engine process.Concrete steps ... such as a: interface of software, or certain field etc of index data), again play up present that (such as search engine returns the data result of format for searching for the data that obtain, as xml or json, application is played up as the html page, presents to final user.), self directly do not carry out persistent storage and the logical operation (storage and logical operation are completed by search engine) of data.
Except removal search, search engine also has a, increases search content; B, for existing search content increases/delete screening conditions; C, the sortord of the existing search content of setting or method, these three kinds of external interfaces.
Be that (all data are stored in search engine, and all inquiries are by search engine, and all operations is all through search engine for the system architecture of the messaging bus of system with search engine.Because title search engine is the messaging bus of the system following the design's pattern.Realize irrelevant with search engine inside).The above-mentioned interface of its each structure division and search engine carry out alternately (software transfer), and by searching for the software system structure obtaining and present data.
As shown in Figure 2, present system comprises search engine communication module, user's request receiving module, rendering module and presents module;
Described search engine communication module is used for communicating with search engine;
Described rendering module is used for playing up the data that search engine returns, and the data after playing up is sent to and present module;
Described user's request receiving module for receiving the request of user, and processes the request of user, then the request of the user after process is sent to search engine communication module; The process carried out comprises: the retrieval and inquisition expression tree click request of user being converted into search engine, and by the sequence score correlation parameter used in search with return relevant parameter to data and be processed as search engine parameters etc.
Data after playing up are presented to user by the described module that presents.
The request of described user comprises visit, inquiry, deletion, upgrades and insert.
When user carry out going sight-seeing or query script time, the request of user is via after the reception of user's request receiving module, after the request of user's request receiving module to user processes, send it to search engine communication module, search engine communication module is transmitted to the search engine providing service again, after the data that search engine returns receive via search engine communication module, be sent to rendering module, after rendering module is played up data, send to and present module, present module and data are presented.
When user carry out deleting, upgrade or update time, the request of user is via after the reception of user's request receiving module, after the request of user's request receiving module to user processes, send it to search engine communication module, search engine communication module is transmitted to the search engine providing service again, after search engine complete operation, successful information will be called and send to search engine communication module, search engine communication module sends it to rendering module again, after rendering module is played up it, send to and present module, present module and it is presented.
Technique scheme is one embodiment of the present invention, for those skilled in the art, on the basis that the invention discloses application process and principle, be easy to make various types of improvement or distortion, and the method be not limited only to described by the above-mentioned embodiment of the present invention, therefore previously described mode is just preferred, and does not have restrictive meaning.

Claims (8)

1. search presents a software design approach, it is characterized in that: described method comprises:
When user carry out going sight-seeing or query script time, the request of user is transmitted to via application the search engine providing service, applies the data returned by search engine and re-starts and play up and present result to user;
When user carry out deleting, upgrade or update time, the request of user forwards corresponding operating to search engine via application, and search engine completes corresponding operating.
2. one search according to claim 1 presents software design approach, it is characterized in that: described search engine has the function of screening and sequence, and provide with lower interface: increase search content interface, increase for existing search content or delete screening conditions interface, and setting has sortord or the method interface of search content.
3. one search according to claim 2 presents software design approach, it is characterized in that: the request of described user is transmitted to via application the search engine providing service, apply the data returned by search engine and re-start to play up and present result and be achieved in that to user
The query display request of user sends to described application, described application provides screening conditions and sortord to described search engine according to the query display request of user, described search engine is searched for data according to described screening conditions and sortord, then search data is returned to application, apply and described search data played up again and presents result to user.
4. one search according to claim 3 presents software design approach, it is characterized in that: the request of described user forwards corresponding operating to search engine via application, and search engine completes corresponding operating and is achieved in that
User is edit file in the application, apply the information that provides according to user by interpolations index content, increase, delete sifting sort, amendment these operations of score of sorting send to search engine, after described search engine operates, return and call successful information to application, application returns and stores success message to user.
5. realize a system for the arbitrary described method of Claims 1-4, it is characterized in that: described system comprises search engine communication module, user's request receiving module, rendering module and presents module;
Described search engine communication module is used for communicating with search engine;
Described rendering module is used for playing up the data that search engine returns, and the data after playing up is sent to and present module;
Described user's request receiving module for receiving the request of user, and processes the request of user, then the request of the user after process is sent to search engine communication module;
Data after playing up are presented to user by the described module that presents.
6. system according to claim 5, is characterized in that: the request of described user comprises visit, inquiry, deletion, upgrades and insert.
7. system according to claim 6, it is characterized in that: when user carry out going sight-seeing or query script time, the request of user is via after the reception of user's request receiving module, after the request of user's request receiving module to user processes, send it to search engine communication module, search engine communication module is transmitted to the search engine providing service again, after the data that search engine returns receive via search engine communication module, be sent to rendering module, after rendering module is played up data, send to and present module, present module and data are presented.
8. system according to claim 6, it is characterized in that: when user deletes, when renewal or update, the request of user is via after the reception of user's request receiving module, after the request of user's request receiving module to user processes, send it to search engine communication module, search engine communication module is transmitted to the search engine providing service again, after search engine complete operation, successful information will be called and send to search engine communication module, search engine communication module sends it to rendering module again, after rendering module is played up it, send to and present module, present module to present it.
CN201410648501.0A 2014-11-14 2014-11-14 Searching and presenting software design method and system Pending CN104376076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410648501.0A CN104376076A (en) 2014-11-14 2014-11-14 Searching and presenting software design method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410648501.0A CN104376076A (en) 2014-11-14 2014-11-14 Searching and presenting software design method and system

Publications (1)

Publication Number Publication Date
CN104376076A true CN104376076A (en) 2015-02-25

Family

ID=52554983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410648501.0A Pending CN104376076A (en) 2014-11-14 2014-11-14 Searching and presenting software design method and system

Country Status (1)

Country Link
CN (1) CN104376076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110480651A (en) * 2019-08-20 2019-11-22 深圳市一恒科电子科技有限公司 It is a kind of that cloud method and system are built based on interactive company robot search system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583072A (en) * 2008-05-15 2009-11-18 北京凯思昊鹏软件工程技术有限公司 Middleware product for realizing Mobile Internet and method thereof
US20100306047A1 (en) * 2009-06-01 2010-12-02 Click Group, Inc. Synonym building system and method for search engine marketing campaign
CN102207963A (en) * 2011-05-30 2011-10-05 何吴迪 Post-search instant intelligent navigation technique for cloud computing window platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583072A (en) * 2008-05-15 2009-11-18 北京凯思昊鹏软件工程技术有限公司 Middleware product for realizing Mobile Internet and method thereof
US20100306047A1 (en) * 2009-06-01 2010-12-02 Click Group, Inc. Synonym building system and method for search engine marketing campaign
CN102207963A (en) * 2011-05-30 2011-10-05 何吴迪 Post-search instant intelligent navigation technique for cloud computing window platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘一洲: ""搜索-呈现(Search-View) "设计模式中通用搜索能力的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110480651A (en) * 2019-08-20 2019-11-22 深圳市一恒科电子科技有限公司 It is a kind of that cloud method and system are built based on interactive company robot search system
CN110480651B (en) * 2019-08-20 2022-03-25 深圳市一恒科电子科技有限公司 Cloud establishing method and system based on interactive accompanying robot search system

Similar Documents

Publication Publication Date Title
CN110147437B (en) Knowledge graph-based searching method and device
CN102033748B (en) Method for generating data processing flow codes
CN103294475B (en) The business automatic creation system of graphic based business scenario and domain template and method
CN103853727B (en) Improve the method and system of big data quantity query performance
CN105975531B (en) Robot dialog control method and system based on dialogue knowledge base
CN112287015B (en) Image generation system, image generation method, electronic device, and storage medium
CN109194762B (en) SSH-based soil information network publishing system and method
CN103942281B (en) The method and device that a kind of object to persistent storage is operated
CN102985922A (en) Method and apparatus for managing distributed computations within a computation space
CN109918472A (en) Method, apparatus, equipment and the medium of storage and inquiry data
CN112199086A (en) Automatic programming control system, method, device, electronic device and storage medium
CN104361099A (en) Adaptive device facing heterogeneous storage
CN102682044A (en) Method for splitting tables for PHP MYSQL database
CN107636655A (en) Data are provided in real time to service(DaaS)System and method
CN105023184A (en) Financial market information query method based on WeChat terminal
CN107169047A (en) A kind of method and device for realizing data buffer storage
CN107526619B (en) The loading method of format data stream file
CN109063086A (en) Execution method, apparatus, server and the storage medium of structured query language
CN116363457B (en) Task processing, image classification and data processing method of task processing model
CN104376076A (en) Searching and presenting software design method and system
CN112199154A (en) Distributed collaborative sampling central optimization-based reinforcement learning training system and method
CN116860221A (en) Intelligent recommendation method and system for low-code data model
CN110062112A (en) Data processing method, device, equipment and computer readable storage medium
CN110209985A (en) A method of updating dom tree
CN112395365B (en) Knowledge graph batch offline query solution

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150225