CN107239530A - Label search method, device, system and computer-readable recording medium - Google Patents
Label search method, device, system and computer-readable recording medium Download PDFInfo
- Publication number
- CN107239530A CN107239530A CN201710396475.0A CN201710396475A CN107239530A CN 107239530 A CN107239530 A CN 107239530A CN 201710396475 A CN201710396475 A CN 201710396475A CN 107239530 A CN107239530 A CN 107239530A
- Authority
- CN
- China
- Prior art keywords
- tag
- label
- retrieval
- data
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000004140 cleaning Methods 0.000 claims description 20
- 238000004891 communication Methods 0.000 abstract description 15
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of label search method, device, system and computer-readable recording medium, belong to communication technical field.This method includes:Receive the instruction of the label of retrieval first of user's input;First label is retrieved in client data area, to judge whether the historical data of first label;If so, then showing the historical data of first label.When label search method, device, system and the computer-readable recording medium of the present invention avoids user's repeated retrieval, repeatedly submit and ask to server, the unnecessary loss of server bandwidth is reduced, server concurrency is improved, more preferable Consumer's Experience is brought to user.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a computer-readable storage medium for tag retrieval.
Background
With the popularity of the internet, people have increasingly higher living standards and are more and more likely to browse news media information at various sites, which also includes many media articles written by media people. The industry is also increasingly being viewed by businesses as self-media. Many businesses specialize in websites (e.g., news media centers) to provide media assets for these self-media. Due to the particularity of the website, the website does not have a complex retrieval system like a shopping website, and is generally retrieved through tags, wherein the tags are products of enterprises, and information on the website is associated through the tags. Articles, photo albums, video collections and the like in the website are bound with the tags, and relevant data can be easily retrieved through the tags on the website.
However, as the number of people accessing the site increases, the number of searches increases, and even through the tag search, especially the repeated search comparison of the same or a plurality of users for the same hotspot information, the repeated search comparison causes great and less stress on the server. The most intuitive embodiment is that the cost of the server bandwidth and the database IO have certain pressure, so that the retrieval efficiency is low and the feedback is slow, and the server is shut down and suspends the service.
Increasing the number of servers is most intuitive and results are still considerable, but this is also relatively costly. From code and server level analysis, it can be found that when each user searches, if the database is accessed each time, the input and output (I/O) of the database is increased, and each time the client requests are responded, a larger proportion of the server bandwidth is occupied. Database IO and server bandwidth are two important factors that limit concurrency bottlenecks and affect retrieval efficiency, and therefore, it is necessary to provide a tag retrieval method, apparatus, system and computer-readable storage medium to avoid the above situations.
Disclosure of Invention
The invention mainly aims to provide a label retrieval method, a label retrieval device, a label retrieval system and a computer readable storage medium, and aims to solve the problems that in the prior art, multiple times of retrieval bring time and economic loss to a server, retrieval efficiency is low and the like.
In order to achieve the above object, the present invention provides a tag retrieval method applied to a client, the method comprising the steps of:
receiving an instruction input by a user for retrieving the first label;
searching the first label in a client data area to judge whether historical data of the first label exists or not;
and if so, displaying the historical data of the first label.
Optionally, the method further comprises:
when the first label is retrieved in the client data area and the historical data of the first label does not exist, sending a retrieval request to a server, wherein the retrieval request comprises an instruction for retrieving the first label;
receiving first retrieval data which is sent by the server and corresponds to the first label according to the retrieval request;
and displaying the first retrieval data.
Optionally, the method further comprises:
setting a first cleaning period corresponding to the first label;
and deleting the first retrieval data corresponding to the first label in the client data area when the first cleaning period is reached.
Optionally, the method further comprises:
receiving an instruction input by a user for retrieving the second label;
judging whether the second label comprises the first label or not, if so, displaying first retrieval data corresponding to the first label, and if not, displaying second retrieval data corresponding to the second label;
or,
and judging whether the semanteme of the second label is the same as or similar to the semanteme of the first label, if so, displaying first retrieval data corresponding to the first label, and if not, displaying second retrieval data corresponding to the second label.
In addition, in order to achieve the above object, the present invention further provides a tag retrieving apparatus applied to a client, the apparatus including:
the first receiving module is used for receiving an instruction for retrieving the first label, which is input by a user;
the judging module is used for searching the first label in a client data area to judge whether historical data of the first label exists or not;
and the display module is used for displaying the historical data of the first label when the judging module judges that the historical data of the first label exists.
Optionally, the apparatus further comprises:
a sending module, configured to retrieve the first tag in the client data area, and send a retrieval request to a server when the determining module determines that the historical data of the first tag does not exist, where the retrieval request includes an instruction to retrieve the first tag;
and the second receiving module is used for receiving first retrieval data which is sent by the server and corresponds to the first label according to the retrieval request.
Optionally, the apparatus further comprises:
the setting module is used for setting a first cleaning period corresponding to the first label;
and the deleting module is used for deleting the first retrieval data corresponding to the first label in the client data area when the first cleaning period is reached.
Optionally, the first receiving module is further configured to receive an instruction input by a user to retrieve the second tag;
the judging module is further configured to judge whether the second tag includes the first tag, if so, the display module displays first retrieval data including the first tag, and if not, the display module displays second retrieval data corresponding to the second tag;
or,
the judging module is further configured to judge whether the semantic meaning of the second tag is the same as or similar to the semantic meaning of the first tag, if so, the display module displays first retrieval data corresponding to the first tag, and if not, the display module displays second retrieval data corresponding to the second tag.
In addition, in order to achieve the above object, the present invention further provides a tag retrieval system, which includes a client and a server in communication connection with the client, wherein the client includes the tag retrieval device.
In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium, wherein a tag retrieval program is stored on the computer-readable storage medium, and the tag retrieval program, when executed by a processor, implements the steps of the above tag retrieval method.
According to the tag retrieval method, the device and the system as well as the computer readable storage medium, the first tag is retrieved in the client data area by receiving the instruction for retrieving the first tag input by the user, and the historical data of the first tag is displayed when the historical data of the first tag exists in the client data area, so that the situation that the user submits a request to a server for many times when repeatedly retrieving is avoided, unnecessary loss of server bandwidth is reduced, the concurrency of the server is improved, and better user experience is brought to the user.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
fig. 3 is a schematic flowchart of a tag retrieval method according to a first embodiment of the present invention;
fig. 4 is another schematic flow chart of the tag retrieval method according to the first embodiment of the present invention;
fig. 5 is a schematic flowchart of a tag retrieval method according to a second embodiment of the present invention;
fig. 6 is a schematic flowchart of a tag retrieval method according to a third embodiment of the present invention;
FIG. 7 is a schematic diagram of a client display interface;
fig. 8 is a block diagram of a tag retrieval apparatus according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The client in the present invention is installed on a terminal, and the terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Referring to fig. 3, a first embodiment of the present invention provides a tag retrieval method applied to a client, where the method includes:
step 301, receiving an instruction for retrieving the first tag input by a user.
Specifically, a search instruction input by a user at a search field of a client is received. More specifically, the search field in this embodiment may be an input box of a search website (e.g., Baidu, 360, etc.), or an input box in a dictionary, etc. The input mode can be a touch instruction or an instruction input through a keyboard. When a user inputs a keyword (such as a first tag) to be retrieved in a corresponding search field, and presses a touch instruction or inputs an enter instruction on a keyboard, a retrieval instruction is sent, and the retrieval instruction is received.
Further, the instruction to search for the first tag may also be a voice instruction.
Further, the local client data area includes at least one tag and history data corresponding to each tag.
Step 302, retrieving the first tag in a client data area to determine whether the history data of the first tag exists. If yes, go to step 303, otherwise, go to step 304.
Specifically, the content of the first tag is parsed from the search instruction, and the search is performed in the local client data area according to the content of the first tag, so as to search whether the historical data of the first tag is included in the local client data area, if yes, step 303 is performed, and if not, step 304 is performed.
Step 303, displaying the history data of the first label.
Specifically, if the local client data area includes the history data of the first tag, which indicates that the search instruction including the first tag has been sent to the server before the search instruction, the same search instruction does not need to be repeatedly sent to the server, but the search result sent by the server last time can be directly retrieved, and the history data can be directly displayed.
Furthermore, when the local client data area includes the history data of the first tag, a mobile network or a wireless network is not needed, so that the whole search process is more convenient and faster, and the network traffic is saved for the user.
Further, step 302 may also be replaced by the following steps: judging whether the hidden data block of the first tag exists in the search page, if yes, step 303 may be replaced by the following steps: and displaying the data block corresponding to the first label and hiding other data blocks.
Step 304, sending a retrieval request to a server, wherein the retrieval request comprises an instruction for retrieving the first tag.
Specifically, if there is no history data of the first tag in the local client data area, which indicates that a search instruction including the first tag has not been sent to the server before the search instruction, a search request including an instruction to search for the first tag is sent to the server.
Further, the process of sending the retrieval request to the server may adopt the prior art, and this embodiment is not described herein again.
Step 305, receiving first retrieval data corresponding to the first tag sent by the server according to the retrieval request.
Specifically, after the server finishes searching according to the searching request, first searching data which is sent by the server and corresponds to the first label is received.
Further, after receiving the first search data, the first search data is saved in the local client data area, so that the first search data becomes history data when the first tag is searched at a later date.
Further, after receiving the first search data, the first search data may be stored in the data block and the data block may be identified with the first tag for determination before the next request is submitted.
Step 306, displaying the first retrieval data.
Further, referring to fig. 4, as a further improvement of the embodiment, the tag retrieving method further includes:
step 401, setting a first cleaning cycle corresponding to the first label.
Specifically, a first cleaning cycle corresponding to the first tag and the first search data is set in the client data area. Alternatively, the first cleaning cycle is identified in the data block and the first label is used as the identifier.
Step 402, deleting the first search data corresponding to the first tag in the client data area when the first cleaning period is reached.
Specifically, when the first cleaning cycle is reached, the first retrieval data corresponding to the first tag in the client data area is automatically deleted. In other embodiments, the data block identified with the first tag may also be automatically deleted.
Further, step 402 may be performed before step 301, after step 302, or after step 306, and the implementation order is not particularly limited in this embodiment.
In order to make the present invention better understood by those skilled in the art, the tag retrieval method of the present embodiment is described by three examples:
example one:
step 1.1, receiving an instruction of a retrieval tag A input by a user in 1 month and 1 day;
step 1.2, retrieving a label A in a client data area, and judging that no historical data of the label A exists;
step 1.3, sending a request for retrieving the tag A to a server;
step 1.4, receiving data of a label A sent by a server;
step 1.5, display the results of label a.
Step 1.6, hiding the data of the tag A in the form of data blocks, and setting the cleaning period of the data A to be one week (7 days).
Example two:
step 2.1, receiving an instruction of a retrieval tag A input by a user in 1 month and 5 days;
step 2.2, retrieving the label A in the client data area, and judging that the historical data of the label A exists;
and 2.3, displaying the result of the label A.
Example three:
step 3.1, reaching the clearing period of the tag A in 1 month and 8 days, and deleting the data block of the tag A;
step 3.2, receiving an instruction of a retrieval tag A input by a user in 1 month and 10 days;
step 3.3, retrieving the label A in the client data area, and judging that no historical data of the label A exists;
step 3.4, sending a request for retrieving the tag A to the server;
step 3.5, receiving the data of the label A sent by the server;
and 3.6, displaying the result of the label A.
In the tag retrieval method of this embodiment, the instruction for retrieving the first tag, which is input by the user, is received, the first tag is retrieved in the client data area, and when the history data of the first tag exists in the client data area, the history data of the first tag is displayed. The method and the device avoid the problem that the user submits the request to the server for many times when repeatedly searching, reduce unnecessary loss of the server bandwidth, improve the concurrency of the server and bring better user experience for the user.
Referring to fig. 5, a second embodiment of the present invention further provides a tag retrieval method, including:
step 501, receiving an instruction for retrieving a first tag input by a user.
Step 502, retrieving the first tag in a client data area to determine whether the history data of the first tag exists. If yes, go to step 503, otherwise, go to step 504.
Step 503, displaying the history data of the first label.
Step 504, sending a retrieval request to a server, wherein the retrieval request comprises an instruction for retrieving the first tag.
Step 505, receiving first retrieval data corresponding to the first tag sent by the server according to the retrieval request.
Step 506, displaying the first retrieval data.
The contents of steps 501-506 are the same as those of steps 301-306 in the first embodiment, and the description of the same contents is omitted here.
Step 507, receiving an instruction for retrieving the second tag input by the user.
Step 508, determining whether the second tag includes the first tag, if so, entering step 509, and if not, entering step 510.
Specifically, according to the content of the second tag, it needs to first determine whether the second tag is the same as the first tag or includes the content of the first tag. Illustratively, the first tag is tag a, and if the second tag is tag a, the second tag is the same as the first tag; if the second label is label AB, the second label comprises the first label; if the second label is the label CD, the second label does not include the first label.
Step 509, displaying the first search data corresponding to the first label.
Specifically, step 509 is divided into two cases:
in case one, when the second tag is the same as the first tag, it is displayed that the search result is the first search data.
And in the second case, when the second label is different from the first label, the result containing the first retrieval data is displayed, and the retrieval results corresponding to the remaining keywords of the second label can be selectively displayed.
Step 510, displaying the second search data corresponding to the second label.
Specifically, when the second tag is different from the first tag, the second search data corresponding to the second tag is displayed according to the process of steps 501 and 506.
The tag retrieval method of this embodiment receives an instruction for retrieving a second tag input by a user, and displays first retrieval data including a first tag when the second tag includes the first tag, and displays second retrieval data corresponding to the second tag if the second tag does not include the first tag. The historical data is determined through the label content, the situation that when a user initiates a retrieval request again for the retrieved data, a server does not need to be requested is avoided, unnecessary bandwidth overhead of the server is reduced, meanwhile, the request of the user is directly responded, delay is avoided, results are displayed more timely, and better use experience is brought to the user.
Referring to fig. 6, a third embodiment of the present invention further provides a tag retrieval method, including:
step 601, receiving an instruction for retrieving the first tag input by a user.
Step 602, retrieving the first tag in a client data area to determine whether the history data of the first tag exists. If yes, go to step 603, otherwise, go to step 604.
Step 603, displaying the history data of the first label.
Step 604, sending a retrieval request to a server, wherein the retrieval request comprises an instruction for retrieving the first tag.
Step 605, receiving first retrieval data corresponding to the first tag sent by the server according to the retrieval request.
Step 606, displaying the first retrieval data.
The contents of the steps 601-606 are the same as those of the steps 301-306 in the first embodiment, and the description of the same contents is omitted here for the embodiment.
Step 607, receiving the instruction for retrieving the second tag inputted by the user.
Step 608, determine whether the semantic meaning of the second label is the same as or similar to the semantic meaning of the first label, if yes, go to step 609, and if no, go to step 610.
Specifically, in an actual application scenario, in many cases, although the content of the second tag is different from the content of the first tag, the second tag is substantially the same as the content to be retrieved by the first tag, and if the second tag is substantially the same as the first tag, the process may automatically determine that the second tag is substantially the same as the first tag, and then proceed to step 609. Or, whether the user searches for the content of the first tab may be prompted on the display page, if so, step 609 is performed, and if not, step 610 is performed.
Step 609, displaying the first retrieval data corresponding to the first label.
Step 610, displaying the second search data corresponding to the second label.
As shown in fig. 7, when the user inputs tag a in the search field, and determines that the semantic meaning of tag a is the same as that of tag B retrieved before, the search data of tag B is displayed, and a prompt box "do you find tag B? "
The tag retrieval method of this embodiment receives an instruction for retrieving a second tag input by a user, and displays first retrieval data corresponding to the first tag when a semantic meaning of the second tag is the same as or similar to a semantic meaning of the first tag, and displays second retrieval data corresponding to the second tag if the semantic meaning of the second tag is different from or not similar to the semantic meaning of the first tag. The historical data is determined through the label content, the situation that when a user initiates a retrieval request again for the retrieved data, a server does not need to be requested is avoided, unnecessary bandwidth overhead of the server is reduced, meanwhile, the request of the user is directly responded, delay is avoided, results are displayed more timely, and better use experience is brought to the user.
Referring to fig. 8, a fourth embodiment of the present invention further provides a tag retrieving apparatus applied to a client, the apparatus including:
a first receiving module 810, configured to receive an instruction input by a user to retrieve a first tag.
Specifically, the first receiving module 810 receives a search field input retrieval instruction of a user at a client. More specifically, the search field in this embodiment may be an input box of a search website (e.g., Baidu, 360, etc.), or an input box in a dictionary, etc. The input mode can be a touch instruction or an instruction input through a keyboard. When a user inputs a keyword (such as a first tag) to be retrieved in a corresponding search field, and presses a touch instruction or inputs an enter instruction on a keyboard, a retrieval instruction is sent, and the retrieval instruction is received.
Further, the instruction to search for the first tag may also be a voice instruction.
Further, the local client data area includes at least one tag and history data corresponding to each tag.
A determining module 820, configured to retrieve the first tag in the client data area to determine whether there is history data of the first tag. And if so, triggering.
Specifically, the content of the first tag is parsed from the search instruction, and the search is performed in the local client data area according to the content of the first tag, and the determining module 820 searches whether the history data of the first tag is included in the local client data area.
A displaying module 830, configured to display the history data of the first tag when the determining module 820 determines that the history data of the first tag exists.
Specifically, if the local client data area includes the history data of the first tag, which indicates that the search instruction including the first tag has been sent to the server before the search instruction, the display module 830 directly retrieves the search result sent by the server last time and directly displays the history data without repeatedly sending the same search instruction to the server.
Furthermore, when the local client data area includes the history data of the first tag, a mobile network or a wireless network is not needed, so that the whole search process is more convenient and faster, and the network traffic is saved for the user.
Further, the determining module 320 may be further configured to determine whether a hidden data block of the first tag exists in the search page, and if so, the displaying module 330 is further configured to display the data block corresponding to the first tag and hide other data blocks.
A sending module 840, configured to send, when the determining module 820 determines that the history data of the first tag does not exist, a retrieval request to the server, where the retrieval request includes an instruction to retrieve the first tag.
Specifically, if there is no history data of the first tag in the local client data area, which indicates that a search instruction including the first tag has not been sent to the server before the search instruction, the sending module 840 sends a search request to the server, where the search request includes an instruction to retrieve the first tag.
Further, the process of sending the retrieval request to the server by the sending module 840 may adopt the prior art, and this embodiment is not described herein again.
The second receiving module 850 is further configured to receive, according to the retrieval request, first retrieval data corresponding to the first tag sent by the server.
Specifically, after the server finishes searching according to the search request, the second receiving module 850 receives the first search data corresponding to the first tag sent by the server.
Further, after the second receiving module 850 receives the first retrieval data, the first retrieval data is saved in the local client data area, so that when the first tag is retrieved later, the first retrieval data becomes history data.
Further, after the second receiving module 850 receives the first retrieval data, the first retrieval data may be stored in the data block and the data block may be identified with the first tag for determination before the next request is submitted.
The display module 840 is further configured to display the first search data.
Further, the tag retrieval apparatus of the present embodiment further includes:
a setting module 860 for setting a first cleaning cycle corresponding to the first tag.
Specifically, the setting module 860 sets a first cleaning cycle corresponding to the first tag and the first search data in the client data area. Alternatively, the first cleaning cycle is identified in the data block and the first label is used as the identifier.
Deleting module 870 for deleting the first search data corresponding to the first tag in the client data area when the first cleaning cycle is reached.
Specifically, when the first cleaning cycle is reached, deletion module 870 automatically deletes the first search data corresponding to the first tag in the client data area. In other embodiments, deletion module 870 may also automatically delete the data block identified with the first tag.
In order to make the present invention better understood by those skilled in the art, the operation of the tag retrieving apparatus of the present embodiment is described by three examples:
example one:
step 1.1, a first receiving module 810 receives a command of a retrieval tag A input by a user in 1 month and 1 day;
step 1.2, the judging module 820 searches for the label a in the client data area and judges that the historical data of the label a does not exist;
step 1.3, the sending module 840 sends a request for retrieving the tag a to the server;
step 1.4, the second receiving module 850 receives the data of the tag a sent by the server;
step 1.5, the display module 830 displays the result of tag a.
Step 1.6, the setting module 860 hides the data of the tag a in the form of a data block, and sets the cleaning cycle of the data a to be one week (7 days).
Example two:
step 2.1, the first receiving module 810 receives an instruction of a retrieval tag A input by a user in 1 month and 5 days;
step 2.2, the judging module 820 searches the label a in the client data area and judges that the historical data of the label a exists;
step 2.3, the display module 830 displays the results of tag a.
Example three:
step 3.1, the deleting module 870 reaches the clearing period of the tag A in 1 month and 8 days, and deletes the data block of the tag A;
step 3.2, the first receiving module 810 receives the instruction of the retrieval tag A input by the user in 1 month and 10 days;
step 3.3, the judging module 820 retrieves the label a in the client data area and judges that the historical data of the label a does not exist;
step 3.4, the sending module 840 sends a request for retrieving the tag a to the server;
step 3.5, the second receiving module 850 receives the data of the tag a sent by the server;
step 3.6, the display module 830 displays the results of tag a.
Further, when the first receiving module 810 receives an instruction for retrieving a second tag input by a user, the determining module 820 is further configured to determine whether the second tag includes the first tag, if so, the displaying module 830 displays first retrieval data including the first tag, and if not, the displaying module 830 displays second retrieval data corresponding to the second tag.
Specifically, according to the content of the second tag received by the first receiving module 810, the determining module 820 needs to first determine whether the second tag is the same as the first tag or includes the content of the first tag. Illustratively, the first tag is tag a, and if the second tag is tag a, the second tag is the same as the first tag; if the second label is label AB, the second label comprises the first label; if the second label is the label CD, the second label does not include the first label.
When the display module 830 displays the first search data including the first tag, the display module displays the first search data in two cases:
in case one, when the second tag is the same as the first tag, the display module 830 displays that the search result is the first search data.
In the second case, when the second tag is different from the first tag, the display module 830 displays the result including the first search data, and optionally displays the search result corresponding to the remaining keyword of the second tag.
Further, the determining module 820 is further configured to determine whether a semantic meaning of the second tag is the same as or similar to a semantic meaning of the first tag, if so, the displaying module 830 displays the first search data corresponding to the first tag, and if not, the displaying module 830 displays the second search data corresponding to the second tag.
As shown in fig. 7, when the user inputs tag a in the search field, and determines that the semantic meaning of tag a is the same as that of tag B retrieved before, the search data of tag B is displayed, and a prompt box "do you find tag B? "
In the tag retrieving apparatus of this embodiment, the first receiving module 810 receives an instruction for retrieving a first tag input by a user, the determining module 820 retrieves the first tag from the client data area, and the displaying module 830 displays history data of the first tag when the history data of the first tag exists in the client data area. The method and the device avoid the problem that the user submits the request to the server for many times when repeatedly searching, reduce unnecessary loss of the server bandwidth, improve the concurrency of the server and bring better user experience for the user.
The fifth embodiment of the present invention further provides a tag retrieval system, which includes a client and a server in communication connection with the client, where the client includes the tag retrieval apparatus as described above.
The sixth embodiment of the present invention further provides a computer-readable storage medium having stored thereon a tag retrieval program which, when executed by a processor, implements the tag retrieval method as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A label retrieval method is applied to a client, and comprises the following steps:
receiving an instruction input by a user for retrieving the first label;
searching the first label in a client data area to judge whether historical data of the first label exists or not;
and if so, displaying the historical data of the first label.
2. The tag retrieval method of claim 1, wherein the method further comprises:
when the first label is retrieved in the client data area and the historical data of the first label does not exist, sending a retrieval request to a server, wherein the retrieval request comprises an instruction for retrieving the first label;
receiving first retrieval data which is sent by the server and corresponds to the first label according to the retrieval request;
and displaying the first retrieval data.
3. The tag retrieval method of claim 2, further comprising:
setting a first cleaning period corresponding to the first label;
and deleting the first retrieval data corresponding to the first label in the client data area when the first cleaning period is reached.
4. The tag retrieval method of claim 1, wherein the method further comprises:
receiving an instruction input by a user for retrieving the second label;
judging whether the second label comprises the first label or not, if so, displaying first retrieval data corresponding to the first label, and if not, displaying second retrieval data corresponding to the second label;
or,
and judging whether the semanteme of the second label is the same as or similar to the semanteme of the first label, if so, displaying first retrieval data corresponding to the first label, and if not, displaying second retrieval data corresponding to the second label.
5. A label retrieval device applied to a client, the device comprising:
the first receiving module is used for receiving an instruction for retrieving the first label, which is input by a user;
the judging module is used for searching the first label in a client data area to judge whether historical data of the first label exists or not;
and the display module is used for displaying the historical data of the first label when the judging module judges that the historical data of the first label exists.
6. The tag retrieval device of claim 5, wherein the device further comprises:
a sending module, configured to retrieve the first tag in the client data area, and send a retrieval request to a server when the determining module determines that the historical data of the first tag does not exist, where the retrieval request includes an instruction to retrieve the first tag;
and the second receiving module is used for receiving first retrieval data which is sent by the server and corresponds to the first label according to the retrieval request.
7. The tag retrieval device of claim 6, wherein the device further comprises:
the setting module is used for setting a first cleaning period corresponding to the first label;
and the deleting module is used for deleting the first retrieval data corresponding to the first label in the client data area when the first cleaning period is reached.
8. The tag retrieval apparatus of claim 5, wherein the first receiving module is further configured to receive an instruction input by a user to retrieve the second tag;
the judging module is further configured to judge whether the second tag includes the first tag, if so, the display module displays first retrieval data including the first tag, and if not, the display module displays second retrieval data corresponding to the second tag;
or,
the judging module is further configured to judge whether the semantic meaning of the second tag is the same as or similar to the semantic meaning of the first tag, if so, the display module displays first retrieval data corresponding to the first tag, and if not, the display module displays second retrieval data corresponding to the second tag.
9. A tag retrieval system, the system comprising a client and a server communicatively connected to the client, the client comprising a tag retrieval apparatus as claimed in any one of claims 5 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a tag retrieval program, which when executed by a processor implements the steps of the tag retrieval method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710396475.0A CN107239530A (en) | 2017-05-31 | 2017-05-31 | Label search method, device, system and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710396475.0A CN107239530A (en) | 2017-05-31 | 2017-05-31 | Label search method, device, system and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107239530A true CN107239530A (en) | 2017-10-10 |
Family
ID=59985683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710396475.0A Pending CN107239530A (en) | 2017-05-31 | 2017-05-31 | Label search method, device, system and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107239530A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111177541A (en) * | 2019-12-20 | 2020-05-19 | 上海淇玥信息技术有限公司 | Data analysis method and device based on user tag generation time, server and storage medium |
CN111274463A (en) * | 2020-02-26 | 2020-06-12 | 上海云鱼智能科技有限公司 | Information display method and device based on IM contact person grouping setting and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095424A (en) * | 2015-07-17 | 2015-11-25 | 四川久远银海软件股份有限公司 | Method for realizing high-concurrency retrieval of medicine in hospital HIS system |
CN105653198A (en) * | 2014-11-13 | 2016-06-08 | 杭州迪普科技有限公司 | Data processing method and device |
CN106254529A (en) * | 2016-09-20 | 2016-12-21 | 郑州云海信息技术有限公司 | A kind of client-side data cache method and apparatus |
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN106649585A (en) * | 2016-11-18 | 2017-05-10 | 福建中金在线信息科技有限公司 | Retrieval method and device |
-
2017
- 2017-05-31 CN CN201710396475.0A patent/CN107239530A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653198A (en) * | 2014-11-13 | 2016-06-08 | 杭州迪普科技有限公司 | Data processing method and device |
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN105095424A (en) * | 2015-07-17 | 2015-11-25 | 四川久远银海软件股份有限公司 | Method for realizing high-concurrency retrieval of medicine in hospital HIS system |
CN106254529A (en) * | 2016-09-20 | 2016-12-21 | 郑州云海信息技术有限公司 | A kind of client-side data cache method and apparatus |
CN106649585A (en) * | 2016-11-18 | 2017-05-10 | 福建中金在线信息科技有限公司 | Retrieval method and device |
Non-Patent Citations (1)
Title |
---|
JESS CHADWICK 等: "《ASP.NET MVC 4 WEB编程》", 31 July 2013, 《华中科技大学出版社》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111177541A (en) * | 2019-12-20 | 2020-05-19 | 上海淇玥信息技术有限公司 | Data analysis method and device based on user tag generation time, server and storage medium |
CN111177541B (en) * | 2019-12-20 | 2023-08-22 | 上海淇玥信息技术有限公司 | Data analysis method and device based on user tag generation time |
CN111274463A (en) * | 2020-02-26 | 2020-06-12 | 上海云鱼智能科技有限公司 | Information display method and device based on IM contact person grouping setting and storage medium |
CN111274463B (en) * | 2020-02-26 | 2023-11-28 | 上海云鱼智能科技有限公司 | Information display method, device and storage medium based on IM contact person grouping setting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108572764B (en) | Character input control method and device and computer readable storage medium | |
CN107967322B (en) | File classification display method, mobile terminal and computer readable storage medium | |
CN107329682B (en) | Edge interaction method and mobile terminal | |
CN107562705B (en) | Data export method, server and computer readable storage medium | |
CN108255970A (en) | A kind of video retrieval method, terminal and computer readable storage medium | |
CN107547741B (en) | Information processing method and device and computer readable storage medium | |
CN108600325B (en) | Push content determining method, server and computer readable storage medium | |
CN108449513B (en) | Interactive regulation and control method, equipment and computer readable storage medium | |
CN107911536B (en) | Cross-application access method, device and computer readable storage medium | |
CN107124466B (en) | Method and device for preventing cache from penetrating and computer readable storage medium | |
CN108897846B (en) | Information searching method, apparatus and computer readable storage medium | |
CN109254972B (en) | Offline command word bank updating method, terminal and computer readable storage medium | |
CN107480054B (en) | Call chain data processing method and device and computer readable storage medium | |
CN107577726B (en) | Searching method, server and computer readable storage medium | |
CN107239530A (en) | Label search method, device, system and computer-readable recording medium | |
CN109683796B (en) | Interaction control method, equipment and computer readable storage medium | |
CN108845821B (en) | Application program updating method, terminal and computer readable storage medium | |
CN107766544B (en) | Information management method, terminal and computer readable storage medium | |
CN111931155A (en) | Verification code input method, verification code input equipment and storage medium | |
CN108900696B (en) | Data processing method, terminal and computer readable storage medium | |
CN107832009B (en) | Data distribution method, equipment and computer storage medium | |
CN107404568B (en) | Control switch management method and mobile terminal | |
CN111399710B (en) | Associated touch method, associated touch equipment and computer readable storage medium | |
CN109600512B (en) | Status bar interaction regulation and control method, equipment and computer readable storage medium | |
CN110275667B (en) | Content display method, mobile terminal, and computer-readable storage 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171010 |