CN105447072B - Configurable interface framework and searching method and system using same - Google Patents

Configurable interface framework and searching method and system using same Download PDF

Info

Publication number
CN105447072B
CN105447072B CN201510564466.9A CN201510564466A CN105447072B CN 105447072 B CN105447072 B CN 105447072B CN 201510564466 A CN201510564466 A CN 201510564466A CN 105447072 B CN105447072 B CN 105447072B
Authority
CN
China
Prior art keywords
interface
browser
search
module
script
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.)
Active
Application number
CN201510564466.9A
Other languages
Chinese (zh)
Other versions
CN105447072A (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.)
Fusionskye Beijing Software Co ltd
Original Assignee
Fusionskye Beijing Software 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 Fusionskye Beijing Software Co ltd filed Critical Fusionskye Beijing Software Co ltd
Priority to CN201510564466.9A priority Critical patent/CN105447072B/en
Publication of CN105447072A publication Critical patent/CN105447072A/en
Application granted granted Critical
Publication of CN105447072B publication Critical patent/CN105447072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/957Browsing optimisation, e.g. caching or content distillation
    • 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 configurable interface frame and a searching method and a searching system using the same, wherein the configurable interface frame comprises an interface configuration file, an interface module and a registration module; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface; the browser script reads the search parameters in the interface configuration file and sends search request information to the data analysis platform; the processing interface processes the search result into an interactive preset display format and calls a browser script to display the preset display format on the browser; the interface configuration file has a simple structure, and front-end designers can quickly get on the hands, so that the learning cost is greatly reduced; the highly complex interface display is also packaged into an interface module for multiple uses in a project; and the requirement of the user for quick change can be met by recombining the existing interface modules, so that the interface development speed is high, and the design efficiency of the whole framework is improved.

Description

Configurable interface framework and searching method and system using same
Technical Field
The invention relates to the field of data search, in particular to a configurable interface framework and a search method and a search system using the framework.
Background
The data analysis platform is mainly used for collecting data, indexing the data, and finally searching the data according to the requirements of users to obtain valuable information for the users. In the data analysis platform, in order to process the searched data into displayable content to be presented to the user, the user can check the content, an interface frame needs to be written, and then the request of the user is processed through data transmission between the interface frame and the data analysis platform, so that the purpose is achieved.
Specifically, the interface frame is an integral body, and the interface frame needs to include a plurality of page files for the user to select the search parameters, and for this, foreground personnel design a plurality of types of page files to realize different selections of different users; meanwhile, the interface framework needs to be configured to enable the interface framework to be capable of realizing data communication with a data analysis platform, and an interface is designed in the interface framework to enable the interface framework to process search results fed back by the data analysis platform. After the configuration of the interface frame is completed, the interface frame can receive the search parameters selected by the user, and initiate a search request for requesting a corresponding search result to the data analysis platform according to the search parameters, and then process the search result into a common single table form and send the common single table form to the browser for displaying when receiving the search result fed back by the data analysis platform.
The inventor finds that each page file in the multiple page files has the same part, but the realized targets are different, and the design of the multiple page files brings great workload to foreground designers. In addition, in the prior art, the processing interfaces and the like of the interface frame are designed by front desk workers, and the front desk workers familiar with webpage making need to continuously learn the design knowledge and technology of the interfaces, so that the learning cost of the front desk workers is increased, and the implementation of projects is difficult.
Disclosure of Invention
The invention aims to provide a configurable interface frame and a searching method and a searching system using the same, wherein an interface configuration file has a simple structure and is easy to learn and use, the learning cost of users is greatly reduced, and a highly complex interface is displayed and packaged into an interface module and is used for multiple times in a project, so that the development speed of the interface is improved.
In a first aspect, an embodiment of the present invention provides a configurable interface framework, including: the system comprises an interface configuration file, an interface module and a registration module;
the interface configuration file is preset with search parameters, and the search parameters at least comprise search sentences and search time ranges; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface;
the interface module calls the browser script corresponding to the search parameters to read the search parameters in the interface configuration file, and sends search request information carrying the search parameters to a data analysis platform, so that the data analysis platform returns a search result corresponding to the search request information to the browser script;
and the interface module calls the processing interface to process the search result into an interactive preset display format, and calls the browser script to display the preset display format on a browser.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the interface module calls the browser-side script to store the data corresponding to the received search result in a temporary storage area of a browser, so as to be used by the interface module of a lower level.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the configurable interface framework further includes a parsing module;
the analysis module calls a preset template engine to analyze the template file corresponding to the search result in the interface module so as to generate a page code and a loading style file;
the browser script displays the preset display format processed by the processing interface on the browser according to the page code and the loading style file; the preset presentation format comprises one or more of the following: web page code or diagrams.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the configurable interface framework further includes a calling module, configured to call the interface module according to a received calling instruction;
the number of the interface modules is multiple; the interface modules are all arranged in a designated folder which can be called by the calling module; the file name of the specified folder includes a first characteristic symbol.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the interface module includes at least one layer of subfiles, and a file name of each layer of the subfiles includes a second feature symbol; the second characteristic symbols are all sub-symbols of the first characteristic symbols, and the second characteristic symbols corresponding to each layer of sub-files are different.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the interface module further includes a verification unit;
the verification unit is used for verifying the search parameters read by the browser script according to a preset reference configuration file in the interface module, and returning indication information that the browser script passes verification when the search parameters are matched with the preset reference configuration file.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the configurable interface framework further includes a loading module and an execution module;
the loading module is used for loading a browser-side script dependency library so as to enable browser scripts in all the interface modules to be in an initial working state; loading other preset browser end scripts related to the currently working browser scripts;
and the execution module is used for reading the interface configuration file and executing the interface modules marked in the interface configuration file according to a preset sequence.
In a second aspect, an embodiment of the present invention further provides a search method using a configurable interface framework, where the configurable interface framework includes: the system comprises an interface configuration file, an interface module and a registration module; search parameters are preset in the interface configuration file; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface; the method comprises the following steps:
the browser script reads the search parameters selected by the user in the interface configuration file and sends search request information carrying the search parameters to a data analysis platform, so that the data analysis platform returns the search results corresponding to the search request information to the browser script;
the browser script sends processing request information carrying the search result to the registered processing interface so that the processing interface can process the search result into an interactive preset display format;
the browser script receives a processing result in a preset display format and sends the processing result to the browser for display.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where after sending search request information carrying the search parameter to a data analysis platform, the method further includes:
the browser script receives a search task identification number sent by the data analysis platform, and sends search request information for inquiring search results to the data analysis platform by taking the search identification number as a search parameter;
when receiving feedback information which is sent by the data analysis platform and is not searched, waiting for preset time and carrying out next query after the preset time;
and when receiving feedback information of search completion sent by the data analysis platform, acquiring a search result from the data analysis platform by taking the search task identification number as a search parameter.
In a third aspect, an embodiment of the present invention further provides a search system using a configurable interface framework, including: a configurable interface framework and a data analysis platform; the configurable interface framework includes: the system comprises an interface configuration file, an interface module and a registration module; search parameters are preset in the interface configuration file; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface; wherein the content of the first and second substances,
the configurable interface framework is used for reading the search parameters selected by the user and sending search request information carrying the search parameters to the data analysis platform; receiving a search result corresponding to the search request information sent by the data analysis platform; processing the search result into an interactive preset display format, and displaying the processed preset display format on a browser;
and the data analysis platform is used for inquiring a corresponding search result according to the search request information and returning the search result to the configurable interface frame.
The embodiment of the invention provides a configurable interface frame and a searching method and a searching system using the same, wherein the configurable interface frame comprises the following steps: the system comprises an interface configuration file, an interface module and a registration module; search parameters are preset in the interface configuration file; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface; the browser script reads the search parameters in the interface configuration file and sends search request information to the data analysis platform; the processing interface processes the search result into an interactive preset display format and calls a browser script to display the preset display format on the browser, compared with the prior art that the design of a plurality of page files brings great workload to foreground designers and the learning cost of the foreground designers is increased by the design of the interface,
the interface configuration file is used for the user to select, the structure of the interface configuration file is simple, a front-end designer can quickly get on the hand, and the learning cost is greatly reduced; the method also packages the highly complex interface display into an interface module which can be used for multiple times in a project; in addition, a registration module is preset by background personnel, foreground personnel can directly call the registration module to register a background script in the interface module as an accessible processing interface, and the learning cost of the foreground personnel is also reduced; and the requirement of the user for quick change can be met by recombining the existing interface modules, so that the interface development speed is high, and the design efficiency of the whole framework is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic structural diagram of a configurable interface framework according to an embodiment of the present invention;
FIG. 2 is a block diagram of another configurable interface framework provided by embodiments of the present invention;
FIG. 3 illustrates a flow chart of a search method utilizing a configurable interface framework provided by an embodiment of the present invention;
FIG. 4 is a flow diagram illustrating another search method utilizing a configurable interface framework provided by embodiments of the present invention;
FIG. 5 is a flow diagram illustrating another search method utilizing a configurable interface framework provided by embodiments of the present invention;
fig. 6 is a schematic structural diagram of a search system using a configurable interface framework according to an embodiment of the present invention.
Description of the main reference numerals:
11. a configurable interface framework; 12. a data analysis platform; 101. an interface configuration file; 102. an interface module; 103. a registration module; 104. an analysis module; 105. calling a module; 106. loading a module; 107. an execution module; 1021. a browser script; 1022. a background script; 1023. and an authentication unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In order to meet a user with a rapid demand change in an interface frame serving a data analysis platform in the prior art, a foreground worker needs to set a plurality of page files, each of the plurality of page files has the same part, (since the demand of the user changes rapidly, a search result display page needs to be modified many times within one day), so that the realization targets of the plurality of page files are different, and the design of the plurality of page files brings great workload to the foreground designer. In addition, in the prior art, the processing interfaces and the like of the interface frame are designed by front desk workers, which needs to be familiar with the design knowledge and technology of the front desk workers in the learning interface, thereby increasing the learning cost of the front desk workers and bringing difficulty to the implementation of projects. Moreover, in the prior art, the data analysis result is displayed in a single table form only, so that the data analysis result is not intuitive and is inconvenient for a user to check.
Based on the problems, the invention provides a configurable interface frame and a searching method and a searching system using the same, wherein an interface configuration file has a simple structure and is easy to learn and use, the learning cost of users is greatly reduced, and a highly complex interface is displayed and packaged into an interface module and is used for multiple times in a project, so that the development speed of the interface is increased.
Referring to fig. 1, the present invention provides a configurable interface framework 11 comprising: an interface configuration file 101, an interface module 102 and a registration module 103;
the interface configuration file 101 is preset with search parameters, and the search parameters at least comprise search sentences and search time ranges; the interface module 102 includes a browser script 1021 and a background script 1022; the registration module 103 is configured to register the background script 1022 as an accessible processing interface;
the interface module 102 calls the browser script 1021 corresponding to the search parameter to read the search parameter in the interface configuration file 101, and sends search request information carrying the search parameter to the data analysis platform 12, so that the data analysis platform 12 returns a search result corresponding to the search request information to the browser script 1021;
the interface module 102 calls the processing interface to process the search result into an interactive preset display format, and calls the browser script 1021 to display the preset display format on a browser.
Compared with the prior art that the design of a plurality of page files brings great workload to foreground designers and the learning cost of the foreground designers is increased by the design of interfaces, the configurable interface frame 11 provided by the embodiment of the invention is provided for the users to select through the interface configuration file 101, and the interface configuration file 101 has a simple structure, so that the front end designers can get on the hand quickly, and the learning cost is greatly reduced; it also encapsulates highly complex interface displays into an interface module 102, which interface module 102 can be used multiple times in a project; in addition, the background staff has preset the registration module 103, and the foreground staff can directly call the registration module 103 to register the background script 1022 in the interface module 102 as an accessible processing interface, so that the learning cost of the foreground staff is also reduced; and the existing interface module 102 is recombined to meet the requirement of the user for quick change, so that the interface development speed is high, and the design efficiency of the whole frame is improved.
In this embodiment, the search parameters are stored in the interface configuration file 101, and the selection conditions of the search parameters may be displayed on the browser through the interface module 102 (specifically, the browser script 1021) for the user to select; the search parameters at least include a search statement and a search time range, and may further include a type of search, a search environment, and the like.
The interface configuration file 101 is an xml format text, which defines the composition relationship between modules, and after the content of the interface configuration file 101 is changed, the change can be made effective by accessing the interface configuration file 101 again.
The interface module 102 corresponds to search parameters, and different search parameters are processed by different interface modules 102; preferably, the interface module 102 and the data analysis platform 12 perform data transmission through a hypertext transfer protocol; the interface configuration file 101 is an extensible markup language XML format text.
The registration module 103 is preset by a background worker and can be stored in an interface frame; when a user sends a search request, the whole framework starts to work, and at this time, the registration module 103 registers the background script 1022 of the interface module 102 as an accessible processing interface, so that the processing interface processes the search result fed back by the data analysis platform 12 in the following.
In addition, the browser script 1021 is a foreground script, which can read the search parameters selected by the user in the interface configuration file 101, and can also send the search results fed back by the data analysis platform 12 to the processing interface for processing; in addition, the browser script 1021 can also send the result of the processing by the background script 1022 to the browser for display. In this embodiment, the search result is in a private format.
When reading the search parameter selected by the user in the interface configuration file 101, the interface module 102 is required to call the browser script 1021 corresponding to the search parameter to implement the search, that is, different browser scripts 1021 corresponding to different search parameters are read, and the corresponding relationship is stored in the interface module 102 in advance.
In addition, the preset display type may be one or more of the following types: the webpage codes or the diagrams can visually display the search results in a mode of the webpage codes and the diagrams, and the search results can be conveniently viewed by a user.
Considering that the requirement of the user changes rapidly, the search result presentation page needs to be modified many times within one day, and the search result after the first search by the user may be the same as the previous search content or the previous search result, in this embodiment, the search result may also be stored in the temporary storage area of the browser, so that the interface module 102 may be invoked next time.
Specifically, the interface module 102 calls the browser-side script to store the received data corresponding to the search result in a temporary storage area of the browser, so that the data can be used by the interface module 102 in a lower level.
In this embodiment, when the browser script 1021 displays the processing result of the processing interface on the browser, the template may be called to display the processing result, so that the displayed page is beautiful and neat, and is convenient for the user to view and improve the user experience.
Specifically, referring to fig. 2, the configurable interface framework 11 further includes a parsing module 104; the analysis module 104 calls a preset template engine to analyze the template file corresponding to the search result in the interface module 102 to generate a page code and a loading style file;
the browser script 1021 displays the preset display format processed by the processing interface on a browser according to the page code and the loading style file; the preset presentation format comprises one or more of the following: web page code or diagrams.
Specifically, the preset display format may be a mode of combining a chart of a display interface and user interaction with data, each page may display a part of preferential data, and may include a plurality of pages, and a user may select the number of pages to view a search result that the user needs to view, so that the user can view the search result conveniently, and the user can view the search result intuitively.
Further, referring to fig. 2, the configurable interface framework 11 further includes a calling module 105, configured to call the interface module 102 according to a received calling instruction;
the interface module 102 is a plurality of; a plurality of the interface modules 102 are all arranged in a designated folder which can be called by the calling module 105; the file name of the specified folder comprises a first characteristic symbol; moreover, the interface module 102 includes at least one layer of subfiles, and the file name of each layer of subfile includes a second characteristic symbol; the second characteristic symbols are all sub-symbols of the first characteristic symbols, and the second characteristic symbols corresponding to each layer of sub-files are different.
Specifically, the interface module 102 has the following characteristics:
1. all interface modules 102 are placed in a designated folder having a first characteristic symbol, e.g., gX;
2. the subfiles in the interface module 102 are all of the same name as the interface module 102, i.e. have a second characteristic symbol; if the interface module 102 has one layer of subfiles (e.g., 3), the three subfiles may include the second characteristic symbols of a.gx, b.gx, c.gx, etc.; the three subfiles may further include subfiles (e.g., 3), and the feature symbols of the subfiles may be a.gx, b.gx, etc.;
in this embodiment, the number of layers of the subfiles is not specifically limited, as long as the signatures of the subfiles are all attached to the file (or subfile) on the top layer.
The above configuration can ensure that the calling module 105 can call the interface module 102, and in colloquial, the above characteristics of the interface module 102 enable the interface framework to call all the interface modules 102 by using one set of codes.
Further, referring to fig. 2, in the configurable interface framework 11, the interface module 102 further includes a verification unit 1023; the verification unit 1023 is configured to verify the search parameter read by the browser script 1021 according to a preset reference configuration file in the interface module 102, and when the search parameter matches the preset reference configuration file, return to indication information that the browser script 1021 passes verification.
Specifically, the interface module 102 has configuration files therein, and the configuration files determine which parameters the interface module 102 can receive from the interface configuration file 101; and the browser script 1021 sends the search request information carrying the corresponding search parameter to the data analysis platform 12 only when receiving the indication information that the verification is passed, so as to obtain the search result.
Further, referring to fig. 2, the configurable interface framework 11 further includes a loading module 106 and an executing module 107;
the loading module 106 is configured to load a browser-side script dependency library, so that the browser scripts 1021 in all the interface modules 102 are in an initialized working state; loading other preset browser end scripts related to the currently working browser script 1021;
the execution module 107 is configured to read the interface configuration file 101, and execute the interface modules 102 marked in the interface configuration file 101 according to a preset sequence.
Specifically, when the entire configurable interface framework 11 starts to work, the loading module 106 needs to first load a necessary browser-side script dependency library, so that the browser-side scripts (i.e., foreground scripts) in all the interface modules 102 work normally;
then, the execution module 107 reads the interface configuration file 101, and preferably executes the interface modules 102 marked in the interface configuration file 101 layer by layer from outside to inside, so that the subsequent interface modules 102 execute corresponding tasks according to the marked sequence.
In addition, when the browser script 1021 corresponding to the search parameter selected by the user reads the search parameter, the loading module 106 may also load another preset browser-side script related to the currently operating browser script 1021 for use when needed.
Referring to fig. 3, the following briefly describes a workflow of an interface framework according to an embodiment of the present invention, which is as follows:
s101, loading a necessary browser-side script dependency library by an interface framework to enable browser-side scripts (namely foreground scripts) in all interface modules to work normally;
s102, the interface framework reads the interface configuration file and executes the interface modules marked in the interface configuration file 101 layer by layer from outside to inside;
s103, reading search parameters in the interface configuration file 101 by a browser-side script in the interface module, which is the same name as the interface module, and loading other necessary browser-side scripts;
s104, registering a background script in the interface module as a processing interface by the interface framework;
s105, the browser script in the interface module calls a data analysis platform according to the search parameters in the interface configuration file, and polls the request to wait for the analysis to be completed until the analysis is completed;
s106, the browser script in the interface module transmits the analysis result of the data analysis platform to a processing interface, and the processing interface processes the analysis result into webpage codes;
s107, the interface framework analyzes the template file in the interface module by using a template engine to generate a page code and a loading style file, so that a browser script displays a processed search result on a browser according to the page code and the loading style file;
and S108, the browser-side script in the interface module stores the data in a temporary storage area of the browser for the lower-level interface module to use.
Compared with the prior art that the design of a plurality of page files brings great workload to foreground designers and the learning cost of the foreground workers is increased by the design of interfaces, the configurable interface frame 11 provided by the embodiment of the invention is provided for users to select through the interface configuration file 101, and the interface configuration file 101 has a simple structure, so that the front-end designers can get on the hand quickly, and the learning cost is greatly reduced; it also encapsulates highly complex interface displays into an interface module 102, which interface module 102 can be used multiple times in a project; in addition, the background staff has preset the registration module 103, and the foreground staff can directly call the registration module 103 to register the background script 1022 in the interface module 102 as an accessible processing interface, so that the learning cost of the foreground staff is also reduced; and the existing interface module 102 is recombined to meet the requirement of the user for quick change, so that the interface development speed is high, and the design efficiency of the whole frame is improved.
The present invention also provides a search method using a configurable interface framework, wherein the configurable interface framework 11 comprises: an interface configuration file 101, an interface module 102 and a registration module 103; search parameters are preset in the interface configuration file 101; the interface module 102 includes a browser script 1021 and a background script 1022; the registration module 103 is configured to register the background script 1022 as an accessible processing interface; the method relates to a browser script 1021 side, and specifically comprises the following steps with reference to fig. 4:
s201, reading search parameters selected by a user in an interface configuration file by a browser script.
Specifically, the search parameter at least includes a search statement and a search time range, and may further include a type of search, a search environment, and the like.
S202, sending search request information carrying the search parameters to the data analysis platform so that the data analysis platform can return search results corresponding to the search request information to the browser script.
S203, the browser script sends processing request information carrying the search result to the registered processing interface so that the processing interface can process the search result into an interactive preset display format.
Specifically, the registration module is preset by a background worker and can be stored in the interface frame; when a user sends a search request, the whole framework starts to work, and at the moment, the registration module registers the background script of the interface module as an accessible processing interface so as to facilitate the subsequent processing interface to process the search result fed back by the data analysis platform.
In addition, the preset display type may be one or more of the following types: the webpage codes or the diagrams can visually display the search results in a mode of the webpage codes and the diagrams, and the search results can be conveniently viewed by a user.
And S204, the browser script receives the processing result in the preset display format and sends the processing result to the browser for display.
Referring to fig. 5, after the step S202, the method further includes the following steps:
s301, the browser script receives the search task identification number sent by the data analysis platform.
S302, sending search request information for inquiring search results to the data analysis platform by taking the search identification number as a search parameter.
And S303, when receiving feedback information which is sent by the data analysis platform and is not searched, waiting for preset time and carrying out next query after the preset time.
S304, when feedback information of completion of searching sent by the data analysis platform is received, a searching task identification number is used as a searching parameter to obtain a searching result from the data analysis platform.
Specifically, a browser script (namely a foreground script) initiates a search request to a data analysis platform through a hypertext transfer protocol, parameters comprise a search statement and a search time range, the data analysis platform returns a search task identification number to the browser script, then the browser script queries whether the search is completed or not to the data analysis platform 12 through the hypertext transfer protocol by using the search identification number as a parameter, if the search is not completed, the browser script waits for 5 seconds and then performs the next query until the search is completed, and the browser script obtains a search result from the data analysis platform through the hypertext transfer protocol by using the search identification number as a parameter; in this embodiment, the search result is in a private format.
In the interface frame, the background script is registered as an accessible processing interface by the interface frame through a registration module, the browser script transmits the search result as a parameter to the processing interface, the processing interface processes the search result in a private format into a web page form and returns the web page form to the browser script, and the browser script receives the processed result and displays the result on the browser for a user to check.
Compared with the search method using the configurable interface frame 11 provided by the embodiment of the invention, which brings great workload to foreground designers due to the design of a plurality of page files in the prior art and increases the learning cost of the foreground designers due to the design of interfaces, the search method uses the interface configuration file 101 for the users to select, and the interface configuration file 101 has a simple structure, so that the front designers can get on the hand quickly, and the learning cost is greatly reduced; it also encapsulates highly complex interface displays into an interface module 102, which interface module 102 can be used multiple times in a project; in addition, the background staff has preset the registration module 103, and the foreground staff can directly call the registration module 103 to register the background script 1022 in the interface module 102 as an accessible processing interface, so that the learning cost of the foreground staff is also reduced; and the existing interface module 102 is recombined to meet the requirement of the user for quick change, so that the interface development speed is high, and the design efficiency of the whole frame is improved.
Referring to fig. 6, a search system using a configurable interface framework according to another embodiment of the present invention includes: a configurable interface framework 11 and a data analysis platform 12; the configurable interface framework 11 comprises: an interface configuration file 101, an interface module 102 and a registration module 103; search parameters are preset in the interface configuration file 101; the interface module 102 includes a browser script 1021 and a background script 1022; the registration module 103 is configured to register the background script 1022 as an accessible processing interface; wherein the content of the first and second substances,
the configurable interface frame 11 is configured to read a search parameter selected by a user, and send search request information carrying the search parameter to the data analysis platform 12; receiving a search result corresponding to the search request information sent by the data analysis platform 12; and processing the search result into an interactive preset display format, and displaying the processed preset display format on a browser.
The data analysis platform 12 is configured to query a corresponding search result according to the search request information, and return the search result to the configurable interface frame 11.
Compared with the search system using the configurable interface framework 11 in the prior art that the design of a plurality of page files brings great workload to foreground designers and the design of interfaces increases the learning cost of the foreground designers, the search system uses the interface configuration file 101 for the users to select, and the interface configuration file 101 has a simple structure, so that the front-end designers can quickly start to work, and the learning cost is greatly reduced; it also encapsulates highly complex interface displays into an interface module 102, which interface module 102 can be used multiple times in a project; in addition, the background staff has preset the registration module 103, and the foreground staff can directly call the registration module 103 to register the background script 1022 in the interface module 102 as an accessible processing interface, so that the learning cost of the foreground staff is also reduced; and the existing interface module 102 is recombined to meet the requirement of the user for quick change, so that the interface development speed is high, and the design efficiency of the whole frame is improved.
The computer program product for performing the search method using the configurable interface frame provided in the embodiment of the present invention includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (6)

1. A configurable interface framework, comprising: the system comprises an interface configuration file, an interface module, a registration module, a calling module, a loading module and an execution module;
search parameters are preset in the interface configuration file; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface; the interface module corresponds to the search parameters, and different search parameters are processed by different interface modules;
the interface module calls the browser script corresponding to the search parameters to read the search parameters in the interface configuration file, and sends search request information carrying the search parameters to a data analysis platform, so that the data analysis platform returns a search result corresponding to the search request information to the browser script;
the interface module calls the processing interface to process the search result into an interactive preset display format and calls the browser script to display the preset display format on a browser;
the loading module is used for loading a browser-side script dependency library so as to enable browser scripts in all the interface modules to be in an initial working state; loading other preset browser end scripts related to the currently working browser scripts;
the execution module is used for reading the interface configuration file and executing the interface modules marked in the interface configuration file according to a preset sequence;
the calling module is used for calling the interface module according to the received calling instruction;
the number of the interface modules is multiple; the interface modules are all arranged in a designated folder which can be called by the calling module; the file name of the specified folder comprises a first characteristic symbol;
the interface module comprises at least one layer of subfiles, and the file name of each layer of subfile comprises a second characteristic symbol; the second characteristic symbols are all sub-symbols of the first characteristic symbols, and the second characteristic symbols corresponding to each layer of sub-files are different;
and the interface module calls the browser end script to store the received data corresponding to the search result in a temporary storage area of the browser for the next use of the interface module.
2. The configurable interface framework of claim 1, further comprising a parsing module;
the analysis module calls a preset template engine to analyze the template file corresponding to the search result in the interface module so as to generate a page code and a loading style file;
the browser script displays the preset display format processed by the processing interface on the browser according to the page code and the loading style file; the preset presentation format comprises one or more of the following: web page code or diagrams.
3. The configurable interface framework of claim 1, wherein the interface module further comprises a validation unit;
the verification unit is used for verifying the search parameters read by the browser script according to a preset reference configuration file in the interface module, and returning indication information that the browser script passes verification when the search parameters are matched with the preset reference configuration file.
4. A search method utilizing a configurable interface framework, the configurable interface framework comprising: the system comprises an interface configuration file, an interface module, a registration module, a calling module, a loading module and an execution module; search parameters are preset in the interface configuration file; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface; the method comprises the following steps:
the loading module loads a browser-side script dependency library so that browser scripts in all interface modules are in an initial working state; loading other preset browser end scripts related to the currently working browser scripts;
the execution module reads the interface configuration file and executes the interface modules marked in the interface configuration file according to a preset sequence;
the calling module calls the interface module according to the received calling instruction; the number of the interface modules is multiple; the interface modules are all arranged in a designated folder which can be called by the calling module; the file name of the specified folder comprises a first characteristic symbol;
the browser script reads the search parameters selected by the user in the interface configuration file and sends search request information carrying the search parameters to a data analysis platform, so that the data analysis platform returns the search results corresponding to the search request information to the browser script;
the browser script sends processing request information carrying the search result to the registered processing interface so that the processing interface can process the search result into an interactive preset display format;
the browser script receives a processing result in a preset display format and sends the processing result to a browser for display;
the interface module comprises at least one layer of subfiles, and the file name of each layer of subfile comprises a second characteristic symbol; the second characteristic symbols are all sub-symbols of the first characteristic symbols, and the second characteristic symbols corresponding to each layer of sub-files are different;
and the interface module calls the browser end script to store the received data corresponding to the search result in a temporary storage area of the browser for the next use of the interface module.
5. The search method using the configurable interface framework according to claim 4, further comprising, after sending the search request information carrying the search parameters to a data analysis platform:
the browser script receives a search task identification number sent by the data analysis platform, and sends search request information for inquiring search results to the data analysis platform by taking the search task identification number as a search parameter;
when receiving feedback information which is sent by the data analysis platform and is not searched, waiting for preset time and carrying out next query after the preset time;
and when receiving feedback information of search completion sent by the data analysis platform, acquiring a search result from the data analysis platform by taking the search task identification number as a search parameter.
6. A search system utilizing a configurable interface framework, comprising: a configurable interface framework and a data analysis platform; the configurable interface framework includes: the system comprises an interface configuration file, an interface module and a registration module; search parameters are preset in the interface configuration file; the interface module comprises a browser script and a background script; the registration module is used for registering the background script as an accessible processing interface; wherein the content of the first and second substances,
the configurable interface framework is used for loading a browser-side script dependency library so as to enable browser scripts in all interface modules to be in an initial working state; loading other preset browser end scripts related to the currently working browser scripts; reading the interface configuration file, and executing the interface modules marked in the interface configuration file according to a preset sequence; calling the interface module according to the received calling instruction; the number of the interface modules is multiple; the interface modules are all arranged in a designated folder which can be called; the file name of the specified folder comprises a first characteristic symbol; reading search parameters selected by a user, and sending search request information carrying the search parameters to a data analysis platform; receiving a search result corresponding to the search request information sent by the data analysis platform; processing the search result into an interactive preset display format, and displaying the processed preset display format on a browser;
the data analysis platform is used for inquiring a corresponding search result according to the search request information and returning the search result to the configurable interface frame;
the interface module comprises at least one layer of subfiles, and the file name of each layer of subfile comprises a second characteristic symbol; the second characteristic symbols are all sub-symbols of the first characteristic symbols, and the second characteristic symbols corresponding to each layer of sub-files are different;
and the interface module calls the browser end script to store the received data corresponding to the search result in a temporary storage area of the browser for the next use of the interface module.
CN201510564466.9A 2015-09-07 2015-09-07 Configurable interface framework and searching method and system using same Active CN105447072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510564466.9A CN105447072B (en) 2015-09-07 2015-09-07 Configurable interface framework and searching method and system using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510564466.9A CN105447072B (en) 2015-09-07 2015-09-07 Configurable interface framework and searching method and system using same

Publications (2)

Publication Number Publication Date
CN105447072A CN105447072A (en) 2016-03-30
CN105447072B true CN105447072B (en) 2020-08-11

Family

ID=55557253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510564466.9A Active CN105447072B (en) 2015-09-07 2015-09-07 Configurable interface framework and searching method and system using same

Country Status (1)

Country Link
CN (1) CN105447072B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339226B (en) * 2016-08-26 2019-10-25 南威软件股份有限公司 A kind of methods of exhibiting and page presentation device of Webpage
CN107977380B (en) * 2016-10-25 2023-04-07 北京京东尚科信息技术有限公司 Method and device for generating page
CN109101500A (en) * 2017-06-20 2018-12-28 北京国双科技有限公司 A kind of methods of exhibiting and device of file data
CN110020298A (en) * 2017-10-27 2019-07-16 北京国双科技有限公司 Parameter display method and apparatus
CN109388398B (en) * 2018-10-16 2021-07-30 郑州云海信息技术有限公司 Interface generation method and device in virtualization system
CN112905929A (en) * 2019-12-03 2021-06-04 北京沃东天骏信息技术有限公司 Method, device, equipment and computer readable medium for saving webpage content

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246495A (en) * 2008-03-21 2008-08-20 深圳国人通信有限公司 Method for constructing query scheme and executing data query and statistics
CN104657384A (en) * 2013-11-21 2015-05-27 航天信息股份有限公司 Dynamic allocation report data processing method based on two-dimension relationship
CN104750548A (en) * 2015-04-01 2015-07-01 贵州电网公司信息通信分公司 Asynchronous request method based on mixed mode cross-platform application

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183371B (en) * 2007-12-12 2010-06-09 中兴通讯股份有限公司 Method for quickly finishing large data-handling and reporting system
US8375296B2 (en) * 2010-06-30 2013-02-12 Samsung Electronics Co., Ltd. Reusing style sheet assets
CN102637184A (en) * 2011-02-15 2012-08-15 北京千橡网景科技发展有限公司 Method and system for customizing webpages
CN102681832B (en) * 2011-03-17 2017-02-08 新奥特(北京)视频技术有限公司 Extensible markup language (XML) based interaction method and interaction device
US8522134B1 (en) * 2012-08-13 2013-08-27 Volusion, Inc. Methods and apparatus for in-line editing of web page content with reduced disruption of logical and presentational structure of content
CN102981855A (en) * 2012-11-23 2013-03-20 蓝盾信息安全技术股份有限公司 Template-based interface autogeneration method and system
CN104331295B (en) * 2014-11-05 2018-06-26 北京中科辅龙信息技术有限公司 Page generation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246495A (en) * 2008-03-21 2008-08-20 深圳国人通信有限公司 Method for constructing query scheme and executing data query and statistics
CN104657384A (en) * 2013-11-21 2015-05-27 航天信息股份有限公司 Dynamic allocation report data processing method based on two-dimension relationship
CN104750548A (en) * 2015-04-01 2015-07-01 贵州电网公司信息通信分公司 Asynchronous request method based on mixed mode cross-platform application

Also Published As

Publication number Publication date
CN105447072A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105447072B (en) Configurable interface framework and searching method and system using same
US9697110B1 (en) Codeless system and tool for testing applications
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
CN105610819B (en) The method and apparatus of the query service of server info are provided
CN107133165B (en) Browser compatibility detection method and device
US20150089415A1 (en) Method of processing big data, apparatus performing the same and storage media storing the same
CN104391786A (en) Webpage automatic test system and method thereof
CN107403111A (en) HIVE data desensitization method and device
EP3436982B1 (en) Modular electronic data analysis computing system
CN106951495A (en) Method and apparatus for information to be presented
TW201610713A (en) Identifying and surfacing relevant report artifacts in documents
US20140237347A1 (en) Collaborative bookmarks
TW201308108A (en) System and method for integrating menus and toolbars
CN109471627A (en) Page presentation control method, system and device
WO2020056976A1 (en) Optimized sequencing method, device, and program for search results, and computer readable storage medium
CN111598707A (en) Page generation method and electronic equipment
CN111797297A (en) Page data processing method and device, computer equipment and storage medium
US20090288033A1 (en) User-Directed Capture of Unstructured Information from Web Pages with Assignment to Data Type
CN110909155B (en) Book order generation method, calculation device and computer storage medium
CN107909382A (en) User grouping management method, server and storage medium
CN114296696A (en) Business function operation method and device, storage medium and electronic equipment
CN115686506A (en) Data display method and device, electronic equipment and storage medium
US8868600B2 (en) Value help search system and method
CN111143398A (en) Extra-large set query method and device based on extended SQL function
KR20200103133A (en) Method and apparatus for performing extract-transfrom-load procedures in a hadoop-based big data processing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 802, 8th Floor, Shining Building, 35 College Road, Haidian District, Beijing

Applicant after: FUSIONSKYE (BEIJING) SOFTWARE Co.,Ltd.

Address before: Room 802, 8th Floor, Shining Building, 35 College Road, Haidian District, Beijing

Applicant before: FUSIONSKYE (BEIJING) TECHNOLOGY Co.,Ltd.

Address after: Room 802, 8th Floor, Shining Building, 35 College Road, Haidian District, Beijing

Applicant after: FUSIONSKYE (BEIJING) TECHNOLOGY Co.,Ltd.

Address before: 100029 Beijing city Chaoyang District anzhen bridge Gu Road No. 2 jinjiye building room 1005

Applicant before: BEIJING FUSIONSKYE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant