CN110134831B - Tree structure node retrieval display method and device based on cloud server - Google Patents

Tree structure node retrieval display method and device based on cloud server Download PDF

Info

Publication number
CN110134831B
CN110134831B CN201910266893.7A CN201910266893A CN110134831B CN 110134831 B CN110134831 B CN 110134831B CN 201910266893 A CN201910266893 A CN 201910266893A CN 110134831 B CN110134831 B CN 110134831B
Authority
CN
China
Prior art keywords
retrieval
data
page
node
terminal
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
CN201910266893.7A
Other languages
Chinese (zh)
Other versions
CN110134831A (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.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and 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 Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN201910266893.7A priority Critical patent/CN110134831B/en
Publication of CN110134831A publication Critical patent/CN110134831A/en
Application granted granted Critical
Publication of CN110134831B publication Critical patent/CN110134831B/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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • 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/953Querying, e.g. by the use of web search engines
    • 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
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

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)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a tree structure node retrieval display method and device based on a cloud server, wherein the method comprises the following steps: recognizing that a user enters a retrieval page for the first time, and loading page data capable of displaying a full current page to a terminal receiving cloud server; the terminal receives retrieval data input by a user and loads the data to a current display page of the terminal according to pages; traversing all node structures of the data of the tree structure of the current display page loaded to the terminal based on the retrieval data, and highlighting the current node structures matched with the retrieval; recursively traversing whether the child node structures of the current node structure are matched with the retrieval data; highlighting the matched sub-node structure; and the terminal page highlights the highlighted node mechanism and the highlighted sub-node structure. In the embodiment of the invention, the data loading speed is increased, the retrieval result is visually displayed, and the use experience of a user is increased.

Description

Tree structure node retrieval display method and device based on cloud server
Technical Field
The invention relates to the technical field of data retrieval, in particular to a tree structure node retrieval display method and device based on a cloud server.
Background
The cloud information issuing system uses a B/S framework and comprises a server function provided by a wide area network cloud platform, a PC (personal computer) for accessing a cloud system by a terminal user, Android terminal equipment for playing information such as advertisements and announcements by the user, and an application APK (Android Package) communicated with the cloud server on the terminal equipment; the system manages the affiliated terminal equipment for all authorized enterprises open use authority; each enterprise can establish a multi-level sub-organization (department) under the parent organization (enterprise) of the enterprise according to the organization architecture of the enterprise, and then different terminal devices are assigned to different sub-organizations (departments); the terminal equipment is convenient to manage according to the organization (department); different advertisements or notification messages are distributed to different organizations (departments).
When the terminal is used for searching, data is loaded to the terminal at one time in the prior art, so that the loaded data volume is too large, the access timeout is easy to occur, and the prior display of the searching result only displays the name or the unique identification code of the hit part, so that the display is not friendly enough.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a tree structure node retrieval display method and device based on a cloud server, which can be used for improving the data loading speed, visually displaying the retrieval result and increasing the use experience of a user.
In order to solve the above technical problem, an embodiment of the present invention provides a tree structure node retrieval display method based on a cloud server, where the method includes:
a user enters a retrieval page of a terminal based on an identity authentication identifier, and identifies whether the user enters the retrieval page for the first time based on a cloud server;
if so, the terminal receives page data which can display a full current page and is loaded to the cloud server by the cloud server;
the terminal receives retrieval data input by a user based on the page data, and loads the data in the cloud server to a current display page of the terminal according to pages, wherein the data is well ordered by the cloud server from top to bottom according to a tree structure;
traversing all node structures of the tree-structured data loaded to the current display page of the terminal based on the retrieval data, and judging whether the current node structure is matched with the retrieval data; if so, highlighting and marking the matched current node structure;
if not, recursively traversing whether the child node structure of the current node structure is matched with the retrieval data; if so, highlighting and labeling the matched child node structure;
and the terminal page highlights the highlighted node mechanism and the highlighted sub-node structure.
Optionally, the receiving, by the terminal, the page data that can be displayed on the full current page and is loaded to the cloud server by the cloud server includes:
and the terminal receives page data which can display the full current page and is loaded to the cloud server based on paging.
Optionally, the receiving, by the terminal, retrieval data input by a user based on the page data, and loading the data in the cloud server to a current display page of the terminal according to a page includes:
after the terminal receives retrieval data input by a user based on the page data, the terminal sends a data loading request to the cloud server based on a paging mode according to the received retrieval data;
and after receiving the request, the cloud server loads all data related to the retrieval data to the current display page of the terminal according to the page.
Optionally, the traversing all node structure searches for the tree-structured data loaded to the current display page of the terminal based on the search data includes:
hiding all node structures except the root node structure in the data of the tree structure;
identifying that the current retrieval type belongs to an accurate retrieval type or a fuzzy retrieval type based on the retrieval data, and selecting a corresponding retrieval rule based on the retrieval type;
and traversing all node structure searches for the data of the tree structure loaded to the current display page of the terminal based on the search rule corresponding to the search type to which the search data belongs.
Optionally, the identifying, based on the search data, that the current search type belongs to the accurate search type or the fuzzy search type, and selecting the corresponding search rule based on the search type includes:
identifying the content in the retrieval data as a keyword or a unique identification code;
if the content in the retrieval data is identified as the keyword, determining the content as a fuzzy retrieval type, and selecting a fuzzy retrieval rule;
and if the content in the retrieval data is identified as the unique identification code, determining the content as a precise retrieval type, and selecting a precise retrieval rule.
Optionally, the traversing all node structure searches for the tree-structured data loaded to the current display page of the terminal based on the search rule corresponding to the search type to which the search data belongs includes:
uniformly placing tree-structured data of all node structures except the root node structure in the hidden tree-structured data into a set;
and sequentially carrying out traversal all node structure retrieval on the data of each tree structure in the set only once according to the retrieval rule corresponding to the retrieval type of the retrieval data.
Optionally, the method further includes:
and receiving retrieval data input by the user based on the retrieval page if the user is identified as not entering the retrieval page for the first time based on a cloud server, and performing traversal all-node structure retrieval on the tree-structured data loaded by the user last time based on the retrieval data.
Optionally, the method further includes:
and if the child node structures of the current node structure are recursively traversed and are not matched with the retrieval data, all the node structures are collected.
Optionally, the highlighting the highlighted node mechanism and the highlighted sub-node structure by the terminal page includes:
the terminal page displays a superior node structure of the highlighted node structure and superior node mechanisms of the highlighted sub-node structures, and highlights the highlighted node structures and the highlighted sub-node structures.
In addition, an embodiment of the present invention further provides a cloud server-based tree structure node retrieval display apparatus, where the apparatus includes:
a user identification module: the system comprises a retrieval page used for a user to enter a terminal based on an identity authentication identifier and identifying whether the user enters the retrieval page for the first time based on a cloud server;
a first data loading module: the terminal is used for receiving page data which can display a full current page and is loaded to the cloud server by the cloud server if the fact that a user enters a retrieval page for the first time is recognized;
the second data loading module: the terminal receives retrieval data input by a user based on the page data, and loads the data in the cloud server to a current display page of the terminal according to pages, wherein the data is well ordered by the cloud server from top to bottom according to a tree structure;
the retrieval module: the system comprises a terminal and a database, wherein the terminal is used for searching all node structures of the tree-structured data loaded to a current display page of the terminal based on the search data and judging whether the current node structure is matched with the search data or not; if so, highlighting and marking the matched current node structure; if not, recursively traversing whether the child node structure of the current node structure is matched with the retrieval data; if so, highlighting and labeling the matched child node structure;
a display module: and the terminal page is used for highlighting the highlighted node mechanism and the highlighted sub-node structure.
In the embodiment of the invention, the terminal receives the page data which can display the current page and is loaded to the cloud server through the cloud server, so that the loading speed is greatly increased, and the access overtime caused by overlarge data volume is effectively avoided; by highlighting the node structures matched with the retrieval and highlighting the highlighted node structures, the retrieval result is quickly and visually displayed, and the use experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a tree structure node retrieval display method based on a cloud server in an embodiment of the present invention;
fig. 2 is a schematic structural composition diagram of a cloud server-based tree structure node retrieval display apparatus according to an embodiment of the present invention.
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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a tree structure node retrieval and display method based on a cloud server according to an embodiment of the present invention.
As shown in fig. 1, a tree structure node retrieval and display method based on a cloud server includes:
s101: a user enters a retrieval page of the terminal based on the identity authentication identifier;
in the specific implementation process of the invention, the identity authentication identification of the user is the only way of authenticating the identity of the user, and can be a biological characteristic identification of the user, such as a voiceprint, a face, a fingerprint, an iris and the like, and also can be an identification formed by an account registered by the user and a corresponding password and the like; and confirming whether the identity of the user is a legal user by using the identity authentication identifier of the user, and allowing the user to enter a retrieval page of the terminal after confirming that the user is the legal user.
S102: identifying whether the user enters a retrieval page for the first time based on a cloud server; if not, entering the retrieval page for the first time, entering S105;
in the specific implementation process of the invention, the cloud server identifies that the user does not enter the retrieval page for the first time, then the retrieval data input by the user based on the retrieval page is received, and the tree-structured data loaded by the user last time is searched by traversing all node structures based on the retrieval data.
Further, after the user is confirmed to be a legal user, the identity authentication identification of the user is uploaded to a cloud server, whether the user is the user entering the retrieval page for the first time is identified on the cloud server, if not, the step is skipped to S105, and if yes, the step is entered to S103.
S103: if the user enters the retrieval page for the first time, the terminal receives page data which can display a full current page and is loaded to the cloud server by the cloud server;
in a specific implementation process of the present invention, the receiving, by the terminal, page data that can display a full current page and is loaded to the cloud server by the cloud server includes: and the terminal receives page data which can display the full current page and is loaded to the cloud server based on paging.
Specifically, after determining that the user enters the retrieval page for the first time, the cloud server only loads data of a first page to a first access page of the user entering the retrieval page by adopting a paging loading function, namely loads data of a current page capable of displaying a display interface of a current terminal; therefore, the display of the page can be accelerated, and the overtime page access caused by overlarge data volume is avoided.
S104: the terminal receives retrieval data input by a user based on the page data, and loads the data in the cloud server to a current display page of the terminal according to pages, wherein the data is well ordered by the cloud server from top to bottom according to a tree structure;
in a specific implementation process of the present invention, the receiving, by the terminal, retrieval data input by a user based on the page data, and loading data in the cloud server to a current display page of the terminal by page includes: after the terminal receives retrieval data input by a user based on the page data, the terminal sends a data loading request to the cloud server based on a paging mode according to the received retrieval data; and after receiving the request, the cloud server loads all data related to the retrieval data to the current display page of the terminal according to the page.
Specifically, the terminal receives retrieval data input by a user through a retrieval input box in the page data, sends the received retrieval data to the cloud server by using the front-end-based JS code, and sends a data loading request to the cloud server in a paging mode; and after receiving the request, the cloud server loads all data related to the retrieval data to the current display page of the terminal according to the page.
S105: traversing all node structure retrieval on the tree-structured data loaded to the current display page of the terminal based on the retrieval data;
in a specific implementation process of the present invention, the traversing all node structure searches for the tree-structured data loaded to the current display page of the terminal based on the search data includes: hiding all node structures except the root node structure in the data of the tree structure; identifying that the current retrieval type belongs to an accurate retrieval type or a fuzzy retrieval type based on the retrieval data, and selecting a corresponding retrieval rule based on the retrieval type; and traversing all node structure searches for the data of the tree structure loaded to the current display page of the terminal based on the search rule corresponding to the search type to which the search data belongs.
Further, the identifying, based on the search data, that the current search type belongs to the accurate search type or the fuzzy search type, and selecting a corresponding search rule based on the search type includes: identifying the content in the retrieval data as a keyword or a unique identification code; if the content in the retrieval data is identified as the keyword, determining the content as a fuzzy retrieval type, and selecting a fuzzy retrieval rule; and if the content in the retrieval data is identified as the unique identification code, determining the content as a precise retrieval type, and selecting a precise retrieval rule.
Further, the traversing all node structure searches for the tree-structured data loaded to the current display page of the terminal based on the search rule corresponding to the search type to which the search data belongs includes: uniformly placing tree-structured data of all node structures except the root node structure in the hidden tree-structured data into a set; and sequentially carrying out traversal all node structure retrieval on the data of each tree structure in the set only once according to the retrieval rule corresponding to the retrieval type of the retrieval data.
Specifically, all node structures except the root node structure in the data of the tree structure are hidden, so that the content required to be displayed during display can be effectively reduced, and the loading display speed is increased during terminal display; then, identifying the retrieval data, judging that the identified retrieval data belongs to an accurate retrieval type or a fuzzy retrieval type, and selecting a corresponding retrieval rule according to the identified retrieval type; and performing search of traversing all node structures on all the tree-structured data loaded to the current page of the terminal according to the search rule corresponding to the search type determined by the search data.
Further, the method comprises the steps of identifying the content in the retrieval data input by a user as a keyword or a unique identification code, then determining that the current retrieval type is an accurate retrieval type or a fuzzy retrieval type according to the identification as the keyword or the unique identification code, determining the current retrieval type as the fuzzy retrieval type when the content in the retrieval data is identified as the keyword, and selecting a fuzzy retrieval rule; and when the content in the retrieval data is identified as the unique identification code, determining the content as the accurate retrieval type, and selecting the accurate retrieval rule.
The fuzzy retrieval rule is that only the content identical to the retrieval key word appears in the name of the organization, namely retrieval hit; the precise retrieval rule is that retrieval is hit only when the unique identification code is completely matched with the ID of the organization.
Uniformly placing tree-structured data of all node structures except the root node structure in the hidden tree-structured data into a set; then, sequentially carrying out traversal all node structure retrieval on the data of each tree structure in the set only once according to retrieval rules corresponding to the retrieval data retrieval types; the method can realize quick retrieval without repetition during retrieval, and improve retrieval efficiency.
S106: judging whether the current node structure is matched with the retrieval data; if the matching is carried out, the step S108 is carried out;
in the implementation process of the invention, the current node structure is matched according to the retrieval type determined by the retrieval data.
S107: if the current node structure is not matched with the retrieval data, recursively traversing whether the child node structure of the current node structure is matched with the retrieval data; if not, entering S110;
in the specific implementation process of the invention, after the current node structure is not matched with the retrieval data, a recursive traversal algorithm is used for traversing whether the child node structure of the current node structure is matched with the retrieval data.
S108: highlighting the matched current node structure or highlighting the matched sub-node structure;
in the specific implementation process of the invention, in the retrieval process, highlighting is carried out on the matched current node structure or the matched child node structure.
S109: the terminal page highlights the highlighted node mechanism and the highlighted sub-node structure;
in the specific implementation process of the present invention, the highlighting of the highlighted node mechanism and the highlighted sub-node structure by the terminal page includes: the terminal page displays a superior node structure of the highlighted node structure and superior node mechanisms of the highlighted sub-node structures, and highlights the highlighted node structures and the highlighted sub-node structures.
Specifically, when the terminal page displays the highlighted node structure and the highlighted sub-node structure, the terminal page also displays the upper-level node structure of the terminal page in a common manner (without highlighting), and highlights the highlighted node structure and the highlighted sub-node structure.
S110: and if the child node structures of the current node structure are not matched with the retrieval data, all the node structures are collected.
In the specific implementation process of the invention, if the sub-node structures of the current node structure are recursively traversed and not matched with the retrieval data, all the node structures are collected.
Specifically, when the child node structure of the current node structure is not matched with the retrieval data, all child nodes which are not highlighted in the current node are collected.
In the embodiment of the invention, the terminal receives the page data which can display the current page and is loaded to the cloud server through the cloud server, so that the loading speed is greatly increased, and the access overtime caused by overlarge data volume is effectively avoided; by highlighting the node structures matched with the retrieval and highlighting the highlighted node structures, the retrieval result is quickly and visually displayed, and the use experience of a user is improved.
Examples
Referring to fig. 2, fig. 2 is a schematic structural composition diagram of a cloud server-based tree structure node retrieval display device according to an embodiment of the present invention.
As shown in fig. 2, an apparatus for retrieving and displaying a tree structure node based on a cloud server, the apparatus includes:
the subscriber identity module 21: the system comprises a retrieval page used for a user to enter a terminal based on an identity authentication identifier and identifying whether the user enters the retrieval page for the first time based on a cloud server;
in the specific implementation process of the invention, the identity authentication identification of the user is the only way of authenticating the identity of the user, and can be a biological characteristic identification of the user, such as a voiceprint, a face, a fingerprint, an iris and the like, and also can be an identification formed by an account registered by the user and a corresponding password and the like; and confirming whether the identity of the user is a legal user by using the identity authentication identifier of the user, and allowing the user to enter a retrieval page of the terminal after confirming that the user is the legal user.
In the specific implementation process of the invention, the cloud server identifies that the user does not enter the retrieval page for the first time, then the retrieval data input by the user based on the retrieval page is received, and the tree-structured data loaded by the user last time is searched by traversing all node structures based on the retrieval data.
Further, after the user is confirmed to be a legal user, the identity authentication identification of the user is uploaded to a cloud server, whether the user enters a retrieval page for the first time is identified on the cloud server, if not, retrieval data input by the user based on the retrieval page is received, and traversal of all node structure retrieval is carried out on the tree-structured data loaded by the user last time based on the retrieval data; and if so, the terminal receives page data which can display the full current page and is loaded to the cloud server by the cloud server.
The first data loading module 22: the terminal is used for receiving page data which can display a full current page and is loaded to the cloud server by the cloud server if the fact that a user enters a retrieval page for the first time is recognized;
in a specific implementation process of the present invention, the receiving, by the terminal, page data that can display a full current page and is loaded to the cloud server by the cloud server includes: and the terminal receives page data which can display the full current page and is loaded to the cloud server based on paging.
Specifically, after determining that the user enters the retrieval page for the first time, the cloud server only loads data of a first page to a first access page of the user entering the retrieval page by adopting a paging loading function, namely loads data of a current page capable of displaying a display interface of a current terminal; therefore, the display of the page can be accelerated, and the overtime page access caused by overlarge data volume is avoided.
The second data loading module 23: the terminal receives retrieval data input by a user based on the page data, and loads the data in the cloud server to a current display page of the terminal according to pages, wherein the data is well ordered by the cloud server from top to bottom according to a tree structure;
in a specific implementation process of the present invention, the receiving, by the terminal, retrieval data input by a user based on the page data, and loading data in the cloud server to a current display page of the terminal by page includes: after the terminal receives retrieval data input by a user based on the page data, the terminal sends a data loading request to the cloud server based on a paging mode according to the received retrieval data; and after receiving the request, the cloud server loads all data related to the retrieval data to the current display page of the terminal according to the page.
Specifically, the terminal receives retrieval data input by a user through a retrieval input box in the page data, sends the received retrieval data to the cloud server by using the front-end-based JS code, and sends a data loading request to the cloud server in a paging mode; and after receiving the request, the cloud server loads all data related to the retrieval data to the current display page of the terminal according to the page.
The retrieval module 24: the system comprises a terminal and a database, wherein the terminal is used for searching all node structures of the tree-structured data loaded to a current display page of the terminal based on the search data and judging whether the current node structure is matched with the search data or not; if so, highlighting and marking the matched current node structure; if not, recursively traversing whether the child node structure of the current node structure is matched with the retrieval data; if so, highlighting and labeling the matched child node structure;
in a specific implementation process of the present invention, the traversing all node structure searches for the tree-structured data loaded to the current display page of the terminal based on the search data includes: hiding all node structures except the root node structure in the data of the tree structure; identifying that the current retrieval type belongs to an accurate retrieval type or a fuzzy retrieval type based on the retrieval data, and selecting a corresponding retrieval rule based on the retrieval type; and traversing all node structure searches for the data of the tree structure loaded to the current display page of the terminal based on the search rule corresponding to the search type to which the search data belongs.
Further, the identifying, based on the search data, that the current search type belongs to the accurate search type or the fuzzy search type, and selecting a corresponding search rule based on the search type includes: identifying the content in the retrieval data as a keyword or a unique identification code; if the content in the retrieval data is identified as the keyword, determining the content as a fuzzy retrieval type, and selecting a fuzzy retrieval rule; and if the content in the retrieval data is identified as the unique identification code, determining the content as a precise retrieval type, and selecting a precise retrieval rule.
Further, the traversing all node structure searches for the tree-structured data loaded to the current display page of the terminal based on the search rule corresponding to the search type to which the search data belongs includes: uniformly placing tree-structured data of all node structures except the root node structure in the hidden tree-structured data into a set; and sequentially carrying out traversal all node structure retrieval on the data of each tree structure in the set only once according to the retrieval rule corresponding to the retrieval type of the retrieval data.
Specifically, all node structures except the root node structure in the data of the tree structure are hidden, so that the content required to be displayed during display can be effectively reduced, and the loading display speed is increased during terminal display; then, identifying the retrieval data, judging that the identified retrieval data belongs to an accurate retrieval type or a fuzzy retrieval type, and selecting a corresponding retrieval rule according to the identified retrieval type; and performing search of traversing all node structures on all the tree-structured data loaded to the current page of the terminal according to the search rule corresponding to the search type determined by the search data.
Further, the method comprises the steps of identifying the content in the retrieval data input by a user as a keyword or a unique identification code, then determining that the current retrieval type is an accurate retrieval type or a fuzzy retrieval type according to the identification as the keyword or the unique identification code, determining the current retrieval type as the fuzzy retrieval type when the content in the retrieval data is identified as the keyword, and selecting a fuzzy retrieval rule; and when the content in the retrieval data is identified as the unique identification code, determining the content as the accurate retrieval type, and selecting the accurate retrieval rule.
The fuzzy retrieval rule is that only the content identical to the retrieval key word appears in the name of the organization, namely retrieval hit; the precise retrieval rule is that retrieval is hit only when the unique identification code is completely matched with the ID of the organization.
Uniformly placing tree-structured data of all node structures except the root node structure in the hidden tree-structured data into a set; then, sequentially carrying out traversal all node structure retrieval on the data of each tree structure in the set only once according to retrieval rules corresponding to the retrieval data retrieval types; the method can realize quick retrieval without repetition during retrieval, and improve retrieval efficiency.
In the implementation process of the invention, the current node structure is matched according to the retrieval type determined by the retrieval data.
In the specific implementation process of the invention, after the current node structure is not matched with the retrieval data, a recursive traversal algorithm is used for traversing whether the child node structure of the current node structure is matched with the retrieval data.
In the specific implementation process of the invention, in the retrieval process, highlighting is carried out on the matched current node structure or the matched child node structure.
The display module 25: and the terminal page is used for highlighting the highlighted node mechanism and the highlighted sub-node structure.
In the specific implementation process of the present invention, the highlighting of the highlighted node mechanism and the highlighted sub-node structure by the terminal page includes: the terminal page displays a superior node structure of the highlighted node structure and superior node mechanisms of the highlighted sub-node structures, and highlights the highlighted node structures and the highlighted sub-node structures.
Specifically, when the terminal page displays the highlighted node structure and the highlighted sub-node structure, the terminal page also displays the upper-level node structure of the terminal page in a common manner (without highlighting), and highlights the highlighted node structure and the highlighted sub-node structure.
And finally, if the child node structures of the current node structure are recursively traversed and are not matched with the retrieval data, all the node structures are collected.
Specifically, when the child node structure of the current node structure is not matched with the retrieval data, all child nodes which are not highlighted in the current node are collected.
In the embodiment of the invention, the terminal receives the page data which can display the current page and is loaded to the cloud server through the cloud server, so that the loading speed is greatly increased, and the access overtime caused by overlarge data volume is effectively avoided; by highlighting the node structures matched with the retrieval and highlighting the highlighted node structures, the retrieval result is quickly and visually displayed, and the use experience of a user is improved.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
In addition, the tree structure node retrieval and display method and device based on the cloud server provided by the embodiment of the invention are introduced in detail, a specific embodiment is adopted to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (7)

1. A tree structure node retrieval and display method based on a cloud server is characterized by comprising the following steps:
a user enters a retrieval page of a terminal based on an identity authentication identifier, and identifies whether the user enters the retrieval page for the first time based on a cloud server;
if so, the terminal receives page data which can display a full current page and is loaded to the cloud server by the cloud server;
the terminal receives retrieval data input by a user based on the page data, and loads the data in the cloud server to a current display page of the terminal according to pages, wherein the data is well ordered by the cloud server from top to bottom according to a tree structure;
traversing all node structures of the tree-structured data loaded to the current display page of the terminal based on the retrieval data, and judging whether the current node structure is matched with the retrieval data; if so, highlighting and marking the matched current node structure;
if not, recursively traversing whether the child node structure of the current node structure is matched with the retrieval data; if so, highlighting and labeling the matched child node structure;
the terminal page highlights the highlighted node mechanism and the highlighted sub-node structure;
the traversing all-node structure retrieval of the tree-structured data loaded to the current display page of the terminal based on the retrieval data includes:
hiding all node structures except the root node structure in the data of the tree structure;
identifying that the current retrieval type belongs to an accurate retrieval type or a fuzzy retrieval type based on the retrieval data, and selecting a corresponding retrieval rule based on the retrieval type;
traversing all node structure retrieval on the tree-structured data loaded to the current display page of the terminal based on the retrieval rule corresponding to the retrieval type to which the retrieval data belongs;
the identifying that the current retrieval type belongs to the accurate retrieval type or the fuzzy retrieval type based on the retrieval data and selecting the corresponding retrieval rule based on the retrieval type comprises the following steps:
identifying the content in the retrieval data as a keyword or a unique identification code;
if the content in the retrieval data is identified as the keyword, determining the content as a fuzzy retrieval type, and selecting a fuzzy retrieval rule;
if the content in the retrieval data is identified to be the unique identification code, determining the content to be the accurate retrieval type, and selecting an accurate retrieval rule;
the traversing all node structure retrieval of the tree-structured data loaded to the current display page of the terminal is performed based on the retrieval rule corresponding to the retrieval type to which the retrieval data belongs, and the method comprises the following steps:
uniformly placing tree-structured data of all node structures except the root node structure in the hidden tree-structured data into a set;
and sequentially carrying out traversal all node structure retrieval on the data of each tree structure in the set only once according to the retrieval rule corresponding to the retrieval type of the retrieval data.
2. The tree structure node retrieval and display method according to claim 1, wherein the terminal receives page data that the cloud server loads to the terminal and can display a full current page, and the method includes:
and the terminal receives page data which can display the full current page and is loaded to the cloud server based on paging.
3. The tree structure node retrieval display method according to claim 1, wherein the terminal receives retrieval data input by a user based on the page data, and loads data in the cloud server to a current display page of the terminal by pages, and the method includes:
after the terminal receives retrieval data input by a user based on the page data, the terminal sends a data loading request to the cloud server based on a paging mode according to the received retrieval data;
and after receiving the request, the cloud server loads all data related to the retrieval data to the current display page of the terminal according to the page.
4. The tree structure node retrieval display method according to claim 1, further comprising:
and receiving retrieval data input by the user based on the retrieval page if the user is identified as not entering the retrieval page for the first time based on a cloud server, and performing traversal all-node structure retrieval on the tree-structured data loaded by the user last time based on the retrieval data.
5. The tree structure node retrieval display method according to claim 1, further comprising:
and if the child node structures of the current node structure are recursively traversed and are not matched with the retrieval data, all the node structures are collected.
6. The method according to claim 1, wherein said highlighting said highlighted node mechanism and said highlighted sub-node structure by said terminal page comprises:
the terminal page displays a superior node structure of the highlighted node structure and superior node mechanisms of the highlighted sub-node structures, and highlights the highlighted node structures and the highlighted sub-node structures.
7. A tree structure node retrieval display device based on a cloud server is characterized in that the device comprises:
a user identification module: the system comprises a retrieval page used for a user to enter a terminal based on an identity authentication identifier and identifying whether the user enters the retrieval page for the first time based on a cloud server;
a first data loading module: the terminal is used for receiving page data which can display a full current page and is loaded to the cloud server by the cloud server if the fact that a user enters a retrieval page for the first time is recognized;
the second data loading module: the terminal receives retrieval data input by a user based on the page data, and loads the data in the cloud server to a current display page of the terminal according to pages, wherein the data is well ordered by the cloud server from top to bottom according to a tree structure;
the retrieval module: the system comprises a terminal and a database, wherein the terminal is used for searching all node structures of the tree-structured data loaded to a current display page of the terminal based on the search data and judging whether the current node structure is matched with the search data or not; if so, highlighting and marking the matched current node structure; if not, recursively traversing whether the child node structure of the current node structure is matched with the retrieval data; if so, highlighting and labeling the matched child node structure;
a display module: the terminal page is used for highlighting the highlighted node mechanism and the highlighted sub-node structure;
the retrieval module: the node structure is also used for hiding all node structures except the root node structure in the data of the tree structure; identifying that the current retrieval type belongs to an accurate retrieval type or a fuzzy retrieval type based on the retrieval data, and selecting a corresponding retrieval rule based on the retrieval type; traversing all node structure retrieval on the tree-structured data loaded to the current display page of the terminal based on the retrieval rule corresponding to the retrieval type to which the retrieval data belongs;
the identifying that the current retrieval type belongs to the accurate retrieval type or the fuzzy retrieval type based on the retrieval data and selecting the corresponding retrieval rule based on the retrieval type comprises the following steps:
identifying the content in the retrieval data as a keyword or a unique identification code;
if the content in the retrieval data is identified as the keyword, determining the content as a fuzzy retrieval type, and selecting a fuzzy retrieval rule;
if the content in the retrieval data is identified to be the unique identification code, determining the content to be the accurate retrieval type, and selecting an accurate retrieval rule;
the traversing all node structure retrieval of the tree-structured data loaded to the current display page of the terminal is performed based on the retrieval rule corresponding to the retrieval type to which the retrieval data belongs, and the method comprises the following steps:
uniformly placing tree-structured data of all node structures except the root node structure in the hidden tree-structured data into a set;
and sequentially carrying out traversal all node structure retrieval on the data of each tree structure in the set only once according to the retrieval rule corresponding to the retrieval type of the retrieval data.
CN201910266893.7A 2019-04-03 2019-04-03 Tree structure node retrieval display method and device based on cloud server Active CN110134831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910266893.7A CN110134831B (en) 2019-04-03 2019-04-03 Tree structure node retrieval display method and device based on cloud server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910266893.7A CN110134831B (en) 2019-04-03 2019-04-03 Tree structure node retrieval display method and device based on cloud server

Publications (2)

Publication Number Publication Date
CN110134831A CN110134831A (en) 2019-08-16
CN110134831B true CN110134831B (en) 2021-08-10

Family

ID=67569034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910266893.7A Active CN110134831B (en) 2019-04-03 2019-04-03 Tree structure node retrieval display method and device based on cloud server

Country Status (1)

Country Link
CN (1) CN110134831B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577603A (en) * 2013-11-19 2014-02-12 北京京东尚科信息技术有限公司 Webpage loading method, device and system
CN104216695A (en) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 Method and system for providing webpage information to be displayed on webpage and displaying webpage information
CN104216902A (en) * 2013-05-31 2014-12-17 西门子公司 Paging data loading method, device and system based on server paging
CN108984548A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Content of pages caching method and device
CN109408699A (en) * 2018-09-14 2019-03-01 厦门天锐科技股份有限公司 A kind of method that synchronization caching zTree tree realizes tree node quick-searching

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915306B (en) * 2011-08-02 2016-08-03 腾讯科技(深圳)有限公司 A kind of searching method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216902A (en) * 2013-05-31 2014-12-17 西门子公司 Paging data loading method, device and system based on server paging
CN104216695A (en) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 Method and system for providing webpage information to be displayed on webpage and displaying webpage information
CN103577603A (en) * 2013-11-19 2014-02-12 北京京东尚科信息技术有限公司 Webpage loading method, device and system
CN108984548A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Content of pages caching method and device
CN109408699A (en) * 2018-09-14 2019-03-01 厦门天锐科技股份有限公司 A kind of method that synchronization caching zTree tree realizes tree node quick-searching

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Ztree树模糊搜索,并高亮;Li Keli;《博客园》;20150618;第1-4页 *

Also Published As

Publication number Publication date
CN110134831A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN113098870B (en) Phishing detection method and device, electronic equipment and storage medium
CN109831459B (en) Method, device, storage medium and terminal equipment for secure access
CN112307472A (en) Abnormal user identification method and device based on intelligent decision and computer equipment
CN107633022A (en) Personnel's portrait analysis method, device and storage medium
CN104750826B (en) A kind of structural data resource metadata is screened automatically and dynamic registration method
CN111652622A (en) Risk website identification method and device and electronic equipment
CN105897704A (en) Authority adding method, device, and system, and authority addition requesting method and device
CN110727740B (en) Correlation analysis method and device, computer equipment and readable medium
CN105825442A (en) Method and device for self service of hotel
CN104392171A (en) Automatic memory evidence analyzing method based on data association
CN106776731A (en) One kind search implementation method, device and system
CN112016317A (en) Sensitive word recognition method and device based on artificial intelligence and computer equipment
CN110807044A (en) Model dimension management method based on artificial intelligence technology
Paul et al. Editing Behavior to Recognize Authors of Crowdsourced Content.
CN110134831B (en) Tree structure node retrieval display method and device based on cloud server
CN106102059A (en) For determining the possessory method and apparatus of hotspot
CN107590374A (en) Control method, intelligent terminal and the storage device of voice assistant authority
CN116226108A (en) Data management method and system capable of realizing different management degrees
CN116159310A (en) Data processing method, device, electronic equipment and storage medium
CN116418705A (en) Network asset identification method, system, terminal and medium based on machine learning
EP2747371A1 (en) Access policy definition with respect to a data object
CN109992960A (en) A kind of forgery parameter detection method, device, electronic equipment and storage medium
CN114338058B (en) Information processing method, device and storage medium
CN109872119A (en) Project information management method, apparatus, computer equipment and storage medium
CN112686732B (en) Abnormal address data identification method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000

Patentee after: Guangzhou langguo Electronic Technology Co.,Ltd.

Address before: 510000 unit a and B, zone 02, 4th floor, No. 136, Gaopu Road, high tech Development Zone, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address