CN110134831A - A kind of tree structures node retrieval display method and device based on cloud server - Google Patents
A kind of tree structures node retrieval display method and device based on cloud server Download PDFInfo
- Publication number
- CN110134831A CN110134831A CN201910266893.7A CN201910266893A CN110134831A CN 110134831 A CN110134831 A CN 110134831A CN 201910266893 A CN201910266893 A CN 201910266893A CN 110134831 A CN110134831 A CN 110134831A
- Authority
- CN
- China
- Prior art keywords
- data
- retrieval
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9027—Trees
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising 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 kind of tree structures node retrieval display method and device based on cloud server, wherein, the described method includes: identification user first enters the retrieval page, terminal, which receives cloud server, can show the page data of full current page to its load;Terminal receives the retrieval data of user's input, and data are loaded onto the current display page of terminal by page;The data of the tree structure for the current display page for being loaded onto terminal are carried out based on retrieval data to traverse all node structures retrievals, then will retrieve the current node configuration to match and carry out highlighted mark;Whether the child node structure of recursive traversal current node configuration matches with retrieval data;The child node structure to match is subjected to highlighted mark;Terminal page is highlighted the joint mechanism of highlighted mark and the child node structure of highlighted mark.In embodiments of the present invention, data loading is promoted, search result is intuitively shown, the usage experience of user is increased.
Description
Technical field
The present invention relates to data retrieval technology field more particularly to a kind of tree structures node inspections based on cloud server
Rope display methods and device.
Background technique
Cloud information issuing system use B/S framework, including is provided in wide area network cloud platform server capability, terminal use
Family accesses the PC of cloud system, user plays in the android terminal device and terminal device of the information such as advertisement, bulletin and
APK is applied in cloud server communication;The system manages its affiliated terminal to the open access right of all enterprises after authorization and sets
It is standby;Each enterprise can establish multistage clamp mechanism (portion according to the organizational structure of oneself company, under his father mechanism (enterprise)
Door), different terminal devices is then belonged to different clamp mechanisms (department);Conveniently to terminal device according to mechanism (department)
It is managed;Different advertisement or notification information are issued to different mechanisms (department).
When terminal is retrieved, disposably data are loaded onto terminal in existing technology, cause to load
Data volume is excessive, is easy to appear access time-out, and the existing display to search result, only display hit title of part or
Unique identifier, display are not friendly enough.
Summary of the invention
It is an object of the invention to overcome the deficiencies in the prior art, and the present invention provides a kind of trees based on cloud server
Shape structure node retrieval display method and device promote data loading, are intuitively shown to search result, increase and use
The usage experience at family.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of tree structure section based on cloud server
Point retrieval display methods, which comprises
User's identity-based certification mark enters the retrieval page of terminal, and identifies that the user is based on cloud server
No is to first enter the retrieval page;
If so, the terminal, which receives the cloud server, can show the page data of full current page to its load;
The terminal receives the retrieval data of user's input based on the page data, and will be in the cloud server
Data are loaded onto the current display page of the terminal by page, wherein the data be cloud server according to tree structure from upper
The data being ranked up under;
Based on the retrieval data to the data of the tree structure for the current display page for being loaded onto the terminal into
Row traverses all node structure retrievals, and judges whether current node configuration matches with the retrieval data;If so, by phase
Matched current node configuration carries out highlighted mark;
If it is not, whether the child node structure of current node configuration described in recursive traversal matches with the retrieval data;If
It is that the child node structure to match is then subjected to highlighted mark;
The terminal page carries out the joint mechanism of the highlighted mark and the child node structure of the highlighted mark high
Bright display.
Optionally, the terminal, which receives the cloud server, can show the page number of full current page to its load
According to, comprising:
The terminal receives the cloud server can show the page number of full current page based on paging to its load
According to.
Optionally, the terminal receives the retrieval data of user's input based on the page data, and the cloud is taken
Data in business device are loaded onto the current display page of the terminal by page, comprising:
After the terminal receives the retrieval data of user's input based on the page data, the terminal is according to receiving
Retrieval data based on the mode of paging to the cloud server send load request of data;
After the cloud server receives request, Xiang Suoshu terminal is loaded all related to the retrieval data by page
Data to its current display page.
Optionally, it is described based on the retrieval data to the tree-like knot of the current display page for being loaded onto the terminal
The data of structure carry out traversing all node structure retrievals, comprising:
Hide all node structures gone out other than root node structure in the data of tree structure;
It identifies that current retrieval type belongs to precisely retrieval type or fuzzy search type based on the retrieval data, and is based on
Affiliated retrieval type chooses corresponding search rule;
Based on search rule corresponding to retrieval type belonging to the retrieval data to being loaded onto the current of the terminal
Show that the data of the tree structure of the page carry out traversing all node structure retrievals.
Optionally, described that precisely retrieval type or fuzzy search are belonged to based on the current retrieval type of retrieval data identification
Type, and corresponding search rule is chosen based on affiliated retrieval type, comprising:
Identify that the content in the retrieval data is keyword or unique identifier;
If identifying, the content in the retrieval data is keyword, it is determined that is fuzzy search type, and chooses fuzzy
Search rule;
If identifying, the content in the retrieval data is unique identifier, it is determined that is accurate retrieval type, and chooses
Accurate search rule.
Optionally, described described to being loaded onto based on search rule corresponding to retrieval type belonging to the retrieval data
The data of the tree structure of the current display page of terminal carry out traversing all node structure retrievals, comprising:
By the number of the tree structure of all node structures in the data of hiding tree structure in addition to root node structure
According to be uniformly placed into one set in;
Search rule corresponding to retrieval type according to the retrieval data is successively to each tree structure in set
Data only once traversed the retrieval of all node structures.
Optionally, the method also includes:
It identifies that the user first enters the retrieval page to be non-based on cloud server, then receives the user and be based on retrieval
The retrieval data of page input, and carried out based on data of the retrieval data to the tree structure that user's last time loads
Traverse all node structure retrievals.
Optionally, the method also includes:
If the child node structure of current node configuration described in recursive traversal is not matched that with the retrieval data, by all sections
Point structure is packed up.
Optionally, the terminal page is to the joint mechanism of the highlighted mark and the child node structure of the highlighted mark
It is highlighted, comprising:
Superior node structure of the terminal page to the node structure of highlighted mark and the son to the highlighted mark
The superior node mechanism of node structure shown, the child node of joint mechanism and the highlighted mark to the highlighted mark
Structure is highlighted.
In addition, the embodiment of the invention also provides a kind of, the tree structures node retrieval display based on cloud server is filled
It sets, described device includes:
Subscriber identification module: enter the retrieval page of terminal for user's identity-based certification mark, and taken based on cloud
Business device identifies whether the user is to first enter the retrieval page;
First data loading module: if when for identifying that user first enters the retrieval page, the terminal receives the cloud
End server can show the page data of full current page to its load;
Second data loading module: receiving the retrieval data of user's input for the terminal based on the page data,
And the data in the cloud server are loaded onto the current display page of the terminal by page, wherein the data are cloud
The data that server has been ranked up from top to bottom according to tree structure;
Retrieval module: for based on the retrieval data to the described tree-like of the current display page for being loaded onto the terminal
The data of structure traverse all node structures retrievals, and judge current node configuration whether with the retrieval data phase
Match;If so, the current node configuration to match is carried out highlighted mark;If it is not, current node configuration described in recursive traversal
Whether child node structure matches with the retrieval data;If so, the child node structure to match is carried out highlighted mark;
Display module: the joint mechanism of the highlighted mark and the son of the highlighted mark are saved for the terminal page
Point structure is highlighted.
In embodiments of the present invention, full current page can be shown to its load by receiving the cloud server by terminal
Page data realize loading velocity significantly promotion, effectively avoid because data volume is excessive cause access time-out;By right
It retrieves the node structure to match and carries out highlighted mark, and the node structure of highlighted mark is highlighted, guarantee inspection
The displaying of hitch fruit quicklook, promotes the usage experience of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it is clear that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is that the process of the tree structures node retrieval display method based on cloud server in the embodiment of the present invention is shown
It is intended to;
Fig. 2 is the structure group of the tree structures node retrieval display device based on cloud server in the embodiment of the present invention
At schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
Embodiment
Referring to Fig. 1, Fig. 1 is the tree structures node retrieval display side based on cloud server in the embodiment of the present invention
The flow diagram of method.
As shown in Figure 1, a kind of tree structures node retrieval display method based on cloud server, which comprises
S101: user's identity-based certification mark enters the retrieval page of terminal;
In specific implementation process of the present invention, the identity identifier of user is the sole mode for authenticating user identity,
It can be the biometric identification of user, such as vocal print, face, fingerprint, iris biometric identification, or user's registration
The mark etc. that is formed with corresponding password of account;Whether the identity that user is confirmed using the identity identifier of user is conjunction
Method user is legitimate user in confirmation user and then just permission user enters the retrieval page of terminal.
S102: and identify whether the user is to first enter the retrieval page based on cloud server;If not first entering
The retrieval page then enters S105;
In specific implementation process of the present invention, identify that the user first enters retrieved page to be non-based on cloud server
Face then receives retrieval data of the user based on retrieval page input, and based on the retrieval data on the user
The data of the tree structure of secondary load carry out traversing all node structure retrievals.
Further, after confirmation user is legitimate user, the identity identifier of user is uploaded to cloud service
Device identifies whether the user is the user for first entering the retrieval page beyond the clouds on server, if it is not, S105 is jumped to, if
It is, into S103.
S103: if user is to first enter the retrieval page, the terminal receives the cloud server can to its load
Show the page data of full current page;
In specific implementation process of the present invention, the terminal reception cloud server can show brimful to its load
The page data of the preceding page, comprising: the terminal reception cloud server can be shown based on paging to its load brimful
The page data of the preceding page.
Specifically, determine user be first enter retrieval the page after, cloud server will using paging load function
Can, the first time accession page for entering the retrieval page to user only loads the data of first page, i.e., load can show it is brimful before
The data of the current page of the display interface of terminal;The display that can accelerate the page in this way, avoids data volume is excessive from leading to the page
Access time-out.
S104: the terminal receives the retrieval data of user's input based on the page data, and by the cloud service
Data in device are loaded onto the current display page of the terminal by page, wherein the data are cloud server according to tree-like knot
The data that structure has been ranked up from top to bottom;
In specific implementation process of the present invention, the terminal receives the retrieval number of user's input based on the page data
According to, and the data in the cloud server are loaded onto the current display page of the terminal by page, comprising: the terminal base
After the retrieval data that the page data receives user's input, the terminal is based on paging according to the retrieval data received
Mode to the cloud server send load request of data;After the cloud server receives request, to the end
End loads all data relevant to the retrieval data to its current display page by page.
Specifically, the terminal receives the retrieval data of user's input by the retrieval input frame in page data, and eventually
The retrieval data received are utilized and are sent to cloud server based on front end JS code by end, and based on the mode of paging to cloud
Server sends the request of load data;Cloud server loads all and inspection by page after the requests have been received, to terminal
In rope data relevant data to the current display page of terminal.
S105: based on the retrieval data to the number of the tree structure for the current display page for being loaded onto the terminal
According to traverse all node structures retrievals;
In specific implementation process of the present invention, the current display based on the retrieval data to the terminal is loaded onto
The data of the tree structure of the page carry out traversing all node structure retrievals, comprising: hide in the data of tree structure and remove
All node structures other than root node structure;Identify that current retrieval type belongs to precisely retrieval class based on the retrieval data
Type or fuzzy search type, and corresponding search rule is chosen based on affiliated retrieval type;Based on belonging to the retrieval data
Retrieval type corresponding to search rule to the data of the tree structure for the current display page for being loaded onto the terminal
It carries out traversing all node structure retrievals.
Further, described that precisely retrieval type or fuzzy inspection are belonged to based on the current retrieval type of retrieval data identification
Rope type, and corresponding search rule is chosen based on affiliated retrieval type, comprising: identify that the content in the retrieval data is
Keyword or unique identifier;If identifying, the content in the retrieval data is keyword, it is determined that it is fuzzy search type, with
And choose fuzzy search rule;If identifying, the content in the retrieval data is unique identifier, it is determined that for precisely retrieval class
Type, and choose accurate search rule.
Further, it is described based on search rule corresponding to retrieval type belonging to the retrieval data to being loaded onto
The data for stating the tree structure of the current display page of terminal carry out traversing all node structure retrievals, comprising: will hide
The data of the tree structure of all node structures gone out other than root node structure in the data of tree structure are uniformly placed into one
In a set;Search rule corresponding to retrieval type according to the retrieval data is successively to each tree structure in set
Data only once traversed the retrieval of all node structures.
It, in this way can be with specifically, hide all node structures in addition to root node structure in the data of tree structure
Accelerate loaded and displayed speed when effectively reducing the required content to be shown when display, and terminal being shown;Then
Retrieval data are identified, and judge that the retrieval data recognized belong to precisely retrieval type or fuzzy search type, and
Corresponding search rule is chosen according to the retrieval type identified;Corresponding to the retrieval type according to determined by the retrieval data
Search rule carries out traversing all node structures to the data of all tree structures for the current page for being loaded onto the terminal
Retrieval.
Further, by identification user input retrieval data in content be keyword or unique identifier, so
Determine that current retrieval type is accurate retrieval type or fuzzy inspection according to keyword or unique identifier is identified as afterwards
Rope type, when the content in the identification retrieval data is keyword, it is determined that be fuzzy search type, and choose fuzzy search
Rule;When the content in the identification retrieval data is unique identifier, it is determined that for precisely retrieval type, and selection precisely inspection
Rope rule.
Fuzzy search rule is to occur content identical with search key only in the title of mechanism to retrieve hit;
Accurate search rule is that only unique identifier and the ID of mechanism retrieve hit in the case where exactly matching.
The number of the tree structure of all node structures other than root node structure will be gone out in the data of hiding tree structure
According to be uniformly placed into one set in;Then according to search rule corresponding to retrieval data retrieval type successively to every in set
The data of one tree structure are only once traversed all node structure retrievals;When can making retrieval, realize quick
Retrieval, and do not repeat, improve recall precision.
S106: judge whether current node configuration matches with the retrieval data;If matching into S108;
In specific implementation process of the present invention, according to retrieval type determined by the retrieval data come to current node configuration
Match.
S107: if current node configuration is not matched that with the retrieval data, current node configuration described in recursive traversal
Whether child node structure matches with the retrieval data;If not matching that into S110;
In specific implementation process of the present invention, after current node configuration and the retrieval data do not match that, using passing
Return whether the child node structure of ergodic algorithm traversal current node configuration matches with retrieval data.
S108: the current node configuration to match is subjected to highlighted mark or highlights the child node structure to match
Mark;
In specific implementation process of the present invention, in retrieving, by the current node configuration to match or match
Child node structure carry out highlighted mark.
S109: the terminal page to the child node structure of the joint mechanism of the highlighted mark and the highlighted mark into
Row is highlighted;
In specific implementation process of the present invention, the terminal page is to the joint mechanism of the highlighted mark and described highlighted
The child node structure of mark is highlighted, comprising: superior node of the terminal page to the node structure of highlighted mark
Structure and the superior node mechanism of the child node structure of the highlighted mark is shown, to the node of the highlighted mark
Mechanism and the child node structure of the highlighted mark are highlighted.
Specifically, when the terminal page shows the node structure and child node structure of highlighted mark, it is also right
Its higher level's node structure carries out common display (not highlighted display), and the node structure and child node structure to highlighted mark carry out high
Bright display.
S110: if the child node structure of current node configuration and retrieval data do not match that, all node structures are received
It rises.
In specific implementation process of the present invention, if the child node structure of current node configuration described in recursive traversal and the inspection
Rope data do not match that, all node structures are packed up.
Specifically, packing up when the child node structure and retrieval data of current node configuration do not match that and working as prosthomere
All child nodes of highlighted mark are not carried out in point.
In embodiments of the present invention, full current page can be shown to its load by receiving the cloud server by terminal
Page data realize loading velocity significantly promotion, effectively avoid because data volume is excessive cause access time-out;By right
It retrieves the node structure to match and carries out highlighted mark, and the node structure of highlighted mark is highlighted, guarantee inspection
The displaying of hitch fruit quicklook, promotes the usage experience of user.
Embodiment
Referring to Fig. 2, Fig. 2 is the tree structures node retrieval display dress based on cloud server in the embodiment of the present invention
The structure composition schematic diagram set.
As shown in Fig. 2, a kind of tree structures node retrieval display device based on cloud server, described device include:
Subscriber identification module 21: enter the retrieval page of terminal for user's identity-based certification mark, and be based on cloud
Server identifies whether the user is to first enter the retrieval page;
In specific implementation process of the present invention, the identity identifier of user is the sole mode for authenticating user identity,
It can be the biometric identification of user, such as vocal print, face, fingerprint, iris biometric identification, or user's registration
The mark etc. that is formed with corresponding password of account;Whether the identity that user is confirmed using the identity identifier of user is conjunction
Method user is legitimate user in confirmation user and then just permission user enters the retrieval page of terminal.
In specific implementation process of the present invention, identify that the user first enters retrieved page to be non-based on cloud server
Face then receives retrieval data of the user based on retrieval page input, and based on the retrieval data on the user
The data of the tree structure of secondary load carry out traversing all node structure retrievals.
Further, after confirmation user is legitimate user, the identity identifier of user is uploaded to cloud service
Device identifies whether the user is the user for first entering the retrieval page, if it is not, then receiving the user beyond the clouds on server
Based on the retrieval data of retrieval page input, and the tree structure that user's last time is loaded based on the retrieval data
Data carry out traversing all node structure retrievals;If so, terminal receive the cloud server can be shown to its load it is brimful
The page data of the preceding page.
First data loading module 22: if when for identifying that user first enters the retrieval page, described in the terminal reception
Cloud server can show the page data of full current page to its load;
In specific implementation process of the present invention, the terminal reception cloud server can show brimful to its load
The page data of the preceding page, comprising: the terminal reception cloud server can be shown based on paging to its load brimful
The page data of the preceding page.
Specifically, determine user be first enter retrieval the page after, cloud server will using paging load function
Can, the first time accession page for entering the retrieval page to user only loads the data of first page, i.e., load can show it is brimful before
The data of the current page of the display interface of terminal;The display that can accelerate the page in this way, avoids data volume is excessive from leading to the page
Access time-out.
Second data loading module 23: the retrieval number of user's input is received based on the page data for the terminal
According to, and the data in the cloud server are loaded onto the current display page of the terminal by page, wherein the data are
The data that cloud server has been ranked up from top to bottom according to tree structure;
In specific implementation process of the present invention, the terminal receives the retrieval number of user's input based on the page data
According to, and the data in the cloud server are loaded onto the current display page of the terminal by page, comprising: the terminal base
After the retrieval data that the page data receives user's input, the terminal is based on paging according to the retrieval data received
Mode to the cloud server send load request of data;After the cloud server receives request, to the end
End loads all data relevant to the retrieval data to its current display page by page.
Specifically, the terminal receives the retrieval data of user's input by the retrieval input frame in page data, and eventually
The retrieval data received are utilized and are sent to cloud server based on front end JS code by end, and based on the mode of paging to cloud
Server sends the request of load data;Cloud server loads all and inspection by page after the requests have been received, to terminal
In rope data relevant data to the current display page of terminal.
Retrieval module 24: for the tree based on the retrieval data to the current display page for being loaded onto the terminal
The data of shape structure traverse all node structures retrievals, and judge current node configuration whether with the retrieval data phase
Match;If so, the current node configuration to match is carried out highlighted mark;If it is not, current node configuration described in recursive traversal
Whether child node structure matches with the retrieval data;If so, the child node structure to match is carried out highlighted mark;
In specific implementation process of the present invention, the current display based on the retrieval data to the terminal is loaded onto
The data of the tree structure of the page carry out traversing all node structure retrievals, comprising: hide in the data of tree structure and remove
All node structures other than root node structure;Identify that current retrieval type belongs to precisely retrieval class based on the retrieval data
Type or fuzzy search type, and corresponding search rule is chosen based on affiliated retrieval type;Based on belonging to the retrieval data
Retrieval type corresponding to search rule to the data of the tree structure for the current display page for being loaded onto the terminal
It carries out traversing all node structure retrievals.
Further, described that precisely retrieval type or fuzzy inspection are belonged to based on the current retrieval type of retrieval data identification
Rope type, and corresponding search rule is chosen based on affiliated retrieval type, comprising: identify that the content in the retrieval data is
Keyword or unique identifier;If identifying, the content in the retrieval data is keyword, it is determined that it is fuzzy search type, with
And choose fuzzy search rule;If identifying, the content in the retrieval data is unique identifier, it is determined that for precisely retrieval class
Type, and choose accurate search rule.
Further, it is described based on search rule corresponding to retrieval type belonging to the retrieval data to being loaded onto
The data for stating the tree structure of the current display page of terminal carry out traversing all node structure retrievals, comprising: will hide
The data of the tree structure of all node structures gone out other than root node structure in the data of tree structure are uniformly placed into one
In a set;Search rule corresponding to retrieval type according to the retrieval data is successively to each tree structure in set
Data only once traversed the retrieval of all node structures.
It, in this way can be with specifically, hide all node structures in addition to root node structure in the data of tree structure
Accelerate loaded and displayed speed when effectively reducing the required content to be shown when display, and terminal being shown;Then
Retrieval data are identified, and judge that the retrieval data recognized belong to precisely retrieval type or fuzzy search type, and
Corresponding search rule is chosen according to the retrieval type identified;Corresponding to the retrieval type according to determined by the retrieval data
Search rule carries out traversing all node structures to the data of all tree structures for the current page for being loaded onto the terminal
Retrieval.
Further, by identification user input retrieval data in content be keyword or unique identifier, so
Determine that current retrieval type is accurate retrieval type or fuzzy inspection according to keyword or unique identifier is identified as afterwards
Rope type, when the content in the identification retrieval data is keyword, it is determined that be fuzzy search type, and choose fuzzy search
Rule;When the content in the identification retrieval data is unique identifier, it is determined that for precisely retrieval type, and selection precisely inspection
Rope rule.
Fuzzy search rule is to occur content identical with search key only in the title of mechanism to retrieve hit;
Accurate search rule is that only unique identifier and the ID of mechanism retrieve hit in the case where exactly matching.
The number of the tree structure of all node structures other than root node structure will be gone out in the data of hiding tree structure
According to be uniformly placed into one set in;Then according to search rule corresponding to retrieval data retrieval type successively to every in set
The data of one tree structure are only once traversed all node structure retrievals;When can making retrieval, realize quick
Retrieval, and do not repeat, improve recall precision.
In specific implementation process of the present invention, according to retrieval type determined by the retrieval data come to current node configuration
Match.
In specific implementation process of the present invention, after current node configuration and the retrieval data do not match that, using passing
Return whether the child node structure of ergodic algorithm traversal current node configuration matches with retrieval data.
In specific implementation process of the present invention, in retrieving, by the current node configuration to match or match
Child node structure carry out highlighted mark.
Display module 25: for the terminal page to the joint mechanism of the highlighted mark and the son of the highlighted mark
Node structure is highlighted.
In specific implementation process of the present invention, the terminal page is to the joint mechanism of the highlighted mark and described highlighted
The child node structure of mark is highlighted, comprising: superior node of the terminal page to the node structure of highlighted mark
Structure and the superior node mechanism of the child node structure of the highlighted mark is shown, to the node of the highlighted mark
Mechanism and the child node structure of the highlighted mark are highlighted.
Specifically, when the terminal page shows the node structure and child node structure of highlighted mark, it is also right
Its higher level's node structure carries out common display (not highlighted display), and the node structure and child node structure to highlighted mark carry out high
Bright display.
Finally, if the child node structure of current node configuration described in recursive traversal is not matched that with the retrieval data, it will
All node structures are packed up.
Specifically, packing up when the child node structure and retrieval data of current node configuration do not match that and working as prosthomere
All child nodes of highlighted mark are not carried out in point.
In embodiments of the present invention, full current page can be shown to its load by receiving the cloud server by terminal
Page data realize loading velocity significantly promotion, effectively avoid because data volume is excessive cause access time-out;By right
It retrieves the node structure to match and carries out highlighted mark, and the node structure of highlighted mark is highlighted, guarantee inspection
The displaying of hitch fruit quicklook, promotes the usage experience of user.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
In addition, it is aobvious to be provided for the embodiments of the invention a kind of tree structures node retrieval based on cloud server above
Show that method and device is described in detail, specific case should be used herein, the principle of the present invention and embodiment are carried out
It illustrates, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Meanwhile for ability
The those skilled in the art in domain, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, comprehensive
Upper described, the contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of tree structures node retrieval display method based on cloud server, which is characterized in that the described method includes:
User's identity-based certification mark enters the retrieval page of terminal, and based on cloud server identify the user whether be
First enter the retrieval page;
If so, the terminal, which receives the cloud server, can show the page data of full current page to its load;
The terminal receives the retrieval data of user's input based on the page data, and by the data in the cloud server
The current display page of the terminal is loaded by page, wherein the data be cloud server according to tree structure from top to bottom
The data being ranked up;
Data progress time based on the retrieval data to the tree structure for the current display page for being loaded onto the terminal
All node structure retrievals are gone through, and judge whether current node configuration matches with the retrieval data;If so, will match
Current node configuration carry out highlighted mark;
If it is not, whether the child node structure of current node configuration described in recursive traversal matches with the retrieval data;If so,
The child node structure to match is subjected to highlighted mark;
The terminal page carries out the joint mechanism of the highlighted mark and the child node structure of the highlighted mark highlighted aobvious
Show.
2. tree structures node retrieval display method according to claim 1, which is characterized in that described in the terminal receives
Cloud server can show the page data of full current page to its load, comprising:
The terminal receives the cloud server can show the page data of full current page based on paging to its load.
3. tree structures node retrieval display method according to claim 1, which is characterized in that the terminal is based on described
Page data receives the retrieval data of user's input, and the data in the cloud server are loaded onto the terminal by page
Current display page, comprising:
After the terminal receives the retrieval data of user's input based on the page data, the terminal is according to the inspection received
Rope data send load request of data to the cloud server based on the mode of paging;
After the cloud server receives request, Xiang Suoshu terminal loads all numbers relevant to the retrieval data by page
According to its current display page.
4. tree structures node retrieval display method according to claim 1, which is characterized in that described to be based on the retrieval
Data carry out the data of the tree structure for the current display page for being loaded onto the terminal to traverse all node structures inspections
Rope, comprising:
Hide all node structures in the data of tree structure in addition to root node structure;
Identify that current retrieval type belongs to precisely retrieval type or fuzzy search type based on the retrieval data, and based on affiliated
Retrieval type choose corresponding search rule;
Based on current display of the search rule to the terminal is loaded onto corresponding to retrieval type belonging to the retrieval data
The data of the tree structure of the page carry out traversing all node structure retrievals.
5. tree structures node retrieval display method according to claim 4, which is characterized in that described to be based on the retrieval
Data identify that current retrieval type belongs to precisely retrieval type or fuzzy search type, and based on affiliated retrieval type selection pair
The search rule answered, comprising:
Identify that the content in the retrieval data is keyword or unique identifier;
If identifying, the content in the retrieval data is keyword, it is determined that is fuzzy search type, and chooses fuzzy search
Rule;
If identifying, the content in the retrieval data is unique identifier, it is determined that is accurate retrieval type, and chooses accurate
Search rule.
6. tree structures node retrieval display method according to claim 4, which is characterized in that described to be based on the retrieval
The tree-like knot of the search rule corresponding to retrieval type belonging to data to the current display page for being loaded onto the terminal
The data of structure carry out traversing all node structure retrievals, comprising:
The data system of the tree structure of all node structures other than root node structure will be gone out in the data of hiding tree structure
One is placed into a set;
Search rule corresponding to retrieval type according to the retrieval data is successively to the number of each tree structure in set
It is retrieved according to all node structures are only once traversed.
7. tree structures node retrieval display method according to claim 1, which is characterized in that the method also includes:
It identifies that the user first enters the retrieval page to be non-based on cloud server, then receives the user and be based on the retrieval page
The retrieval data of input, and the data for the tree structure that user's last time loads are traversed based on the retrieval data
All node structure retrievals.
8. tree structures node retrieval display method according to claim 1, which is characterized in that the method also includes:
If the child node structure of current node configuration described in recursive traversal is not matched that with the retrieval data, by all node knots
Structure is packed up.
9. tree structures node retrieval display method according to claim 1, which is characterized in that the terminal page is to institute
The child node structure of the joint mechanism and the highlighted mark of stating highlighted mark is highlighted, comprising:
Superior node structure of the terminal page to the node structure of highlighted mark and the child node to the highlighted mark
The superior node mechanism of structure shown, the child node structure of joint mechanism and the highlighted mark to the highlighted mark
It is highlighted.
10. a kind of tree structures node retrieval display device based on cloud server, which is characterized in that described device includes:
Subscriber identification module: enter the retrieval page of terminal for user's identity-based certification mark, and be based on cloud server
Identify whether the user is to first enter the retrieval page;
First data loading module: if when for identifying that user first enters the retrieval page, the terminal receives the cloud clothes
Business device can show the page data of full current page to its load;
Second data loading module: the retrieval data of user's input are received based on the page data for the terminal, and will
Data in the cloud server are loaded onto the current display page of the terminal by page, wherein the data are cloud service
The data that device has been ranked up from top to bottom according to tree structure;
Retrieval module: for the tree structure based on the retrieval data to the current display page for being loaded onto the terminal
Data traverse all node structures retrievals, and judge whether current node configuration matches with the retrieval data;If
It is that the current node configuration to match is then subjected to highlighted mark;If it is not, the child node of current node configuration described in recursive traversal
Whether structure matches with the retrieval data;If so, the child node structure to match is carried out highlighted mark;
Display module: for the terminal page to the joint mechanism of the highlighted mark and the child node knot of the highlighted mark
Structure is highlighted.
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 true CN110134831A (en) | 2019-08-16 |
CN110134831B 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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577603A (en) * | 2013-11-19 | 2014-02-12 | 北京京东尚科信息技术有限公司 | Webpage loading method, device and system |
US20140143246A1 (en) * | 2011-08-02 | 2014-05-22 | Tencent Technology (Shenzhen) Company Limited | Search Method, System and Device |
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 |
-
2019
- 2019-04-03 CN CN201910266893.7A patent/CN110134831B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140143246A1 (en) * | 2011-08-02 | 2014-05-22 | Tencent Technology (Shenzhen) Company Limited | Search Method, System and Device |
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)
Title |
---|
LI KELI: "Ztree树模糊搜索,并高亮", 《博客园》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110134831B (en) | 2021-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104618312B (en) | A kind of remote login methods, devices and systems of M2M application | |
CN106792992A (en) | A kind of method and apparatus for providing WAP information | |
CN108959244A (en) | The method and apparatus of address participle | |
CN105022939B (en) | Information Authentication method and device | |
CN103679498B (en) | A kind of information-pushing method and its system to the network terminal | |
CN109889517A (en) | Data processing method, permissions data collection creation method, device and electronic equipment | |
CN107766470B (en) | Intelligent statistical method, intelligent statistical display method and device for data sharing | |
CN112016030B (en) | Message pushing method, device, server and computer storage medium | |
CN107545637A (en) | The Activiation method and server of a kind of electronic lock | |
CN104021205A (en) | Method and device for establishing microblog index | |
CN107798046A (en) | Client identity information processing method, device, storage medium and computer equipment | |
CN108834196A (en) | A kind of sending, receiving method and equipment of the access information of wireless access point | |
CN109120506B (en) | Detection processing method and system for idle account in social network | |
CN106789901A (en) | A kind of method and device for preventing malice from submitting web-page requests to | |
WO2017084456A1 (en) | Wifi hotspot processing method, device and system | |
CN104902498B (en) | The recognition methods of user's network re-entry and device | |
CN105224541B (en) | Uniqueness control method, information storage means and the device of data | |
CN103617221B (en) | Software recommendation method and software recommendation system | |
CN110515940A (en) | Querying method, equipment, storage medium and device based on data sharing | |
CN114070847B (en) | Method, device, equipment and storage medium for limiting current of server | |
CN106331060A (en) | Control execution method and system based on WIFI | |
CN102932239B (en) | The means of communication in immediate communication platform and system | |
CN112084021A (en) | Interface configuration method, device and equipment of education system and readable storage medium | |
CN110134831A (en) | A kind of tree structures node retrieval display method and device based on cloud server | |
CN114331446B (en) | Method, device, equipment and medium for realizing out-of-chain service of block chain |
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 | ||
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. |