CN111104402A - Method, device, electronic equipment and medium for searching data - Google Patents

Method, device, electronic equipment and medium for searching data Download PDF

Info

Publication number
CN111104402A
CN111104402A CN201911199666.3A CN201911199666A CN111104402A CN 111104402 A CN111104402 A CN 111104402A CN 201911199666 A CN201911199666 A CN 201911199666A CN 111104402 A CN111104402 A CN 111104402A
Authority
CN
China
Prior art keywords
data
index
heat
searching
time period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911199666.3A
Other languages
Chinese (zh)
Inventor
王贤宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wenyuanjia Technology Co Ltd
Original Assignee
Beijing Wenyuanjia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wenyuanjia Technology Co Ltd filed Critical Beijing Wenyuanjia Technology Co Ltd
Priority to CN201911199666.3A priority Critical patent/CN111104402A/en
Publication of CN111104402A publication Critical patent/CN111104402A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2272Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Abstract

The application discloses a method, a device, electronic equipment and a medium for searching data. In the present application, after receiving at least one data query instruction, target data may be searched based on a first index generated from high-heat data, where the high-heat data is stored data that satisfies a first matching condition that is generated within a first preset time period and a query frequency exceeds a first preset threshold. By applying the technical scheme of the application, when the condition that the user inquires the target data in the search server is detected, the index search can be preferentially carried out in the high-heat data in the server. And further, the problem that the efficiency of searching the target data is low when massive data of the search server is faced in the related technology can be avoided.

Description

Method, device, electronic equipment and medium for searching data
Technical Field
The present application relates to data processing technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for searching data
Background
In the mass data era, the processing of databases affects the performance of platforms or systems. The common various search engine architectures on the internet are mainly centralized, data are rapidly expanding and becoming large along with the increase of the development pace of informatization, the massive data quantity causes the massive data to have high complexity and is full of changes, and the centralized information retrieval and processing mode is heavy enough, so that the processing speed is reduced, and the accuracy is reduced.
Therefore, how to search the data needed by the user in time and quickly in the database with mass data becomes a problem to be solved by the technical personnel in the field.
Disclosure of Invention
The embodiment of the application provides a method and a device for searching data, electronic equipment and a medium.
According to an aspect of an embodiment of the present application, there is provided a method for searching data, including:
at least one data query instruction is received,
searching target data based on a first index, wherein the first index is generated based on high-heat data, the high-heat data is stored data meeting a first matching condition, and the first matching condition is as follows: and generating the query frequency within a first preset time period and exceeding a first preset threshold value.
Optionally, in another embodiment of the foregoing method based on the present application, when it is detected that finding the target data based on the first index fails, finding the target data based on a second index, where the second index is an index generated based on low-heat data, the low-heat data is stored data that satisfies a second matching condition, and the second matching condition is: and generating within a second preset time period, wherein the query frequency does not exceed a second preset threshold.
Optionally, in another embodiment based on the foregoing method of the present application, the first preset threshold is greater than or equal to a second preset threshold.
Optionally, in another embodiment based on the foregoing method of the present application, the method further includes:
grouping the high heat data and/or the low heat data based on a time period of data generation to obtain at least one high heat data packet and/or at least one low heat data packet,
and respectively creating an index for each high-heat data packet to obtain the first index, and/or respectively creating an index for each low-heat data packet to obtain the second index.
Optionally, in another embodiment based on the foregoing method of the present application, the high-heat data corresponds to a service identifier in a specific range, and the service identifier is used for characterizing a service type corresponding to the stored data.
Optionally, in another embodiment based on the above method of the present application, the high-heat data corresponds to object tags within a specific range, the object tags being used to characterize the business objects that generated the stored data.
According to another aspect of the embodiments of the present application, there is provided an apparatus for searching data, including:
a receiving module configured to receive at least one data query instruction,
a searching module configured to search target data based on a first index, where the first index is an index generated based on high-heat data, the high-heat data is stored data that satisfies a first matching condition, and the first matching condition is: and generating the query frequency within a first preset time period and exceeding a first preset threshold value.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for displaying with the memory to execute the executable instructions to perform the operations of any of the above-described methods of finding data.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which when executed, perform the operations of any one of the above methods for finding data.
In the present application, after receiving at least one data query instruction, the target data may be searched based on a first index generated from high-heat data, where the high-heat data is stored data that satisfies a first matching condition generated within a first preset time period and a query frequency exceeds a first preset threshold. By applying the technical scheme of the application, when the condition that the user inquires the target data in the search server is detected, the index search can be preferentially carried out in the high-heat data in the server. And further, the problem that the efficiency of searching the target data is low when massive data of the search server is faced in the related technology can be avoided.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a system architecture for look-up data according to the present application;
FIG. 2 is a schematic diagram of a method for searching data according to the present application;
FIG. 3 is a schematic structural diagram of an apparatus for searching data according to the present application;
fig. 4 is a schematic view of an electronic device according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all the directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
A method for performing a lookup for data according to an exemplary embodiment of the present application is described below in conjunction with fig. 1-2. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a method, a device, a target terminal and a medium for searching data.
Fig. 1 schematically shows a flowchart of a method for searching data according to an embodiment of the present application. As shown in fig. 1, the method includes:
s101, at least one data query instruction is received.
It should be noted that, in the present application, a device for receiving a data query instruction is not specifically limited, and may be, for example, an intelligent device or a server. The intelligent device may be a PC (Personal Computer), or a smart phone, a tablet Computer, an e-book reader, an MP3(Moving Picture Experts group audio layer III) device for searching data. MP4(Moving picture expert group Audio Layer IV), a device for searching data, a portable terminal device such as a portable computer with a display function, and so on.
Further, a Search Engine (Search Engine) refers to a system that collects information from the internet by using a specific computer program according to a certain policy, organizes and processes the information, provides a Search service for a user, and displays information related to user Search to the user.
In the related art, data query by using a search engine is a function that people can use at any time. As more and more data is used with search engines, the time lost each time a desired search result is obtained accumulates, constituting a significant cost in social time. Therefore, the time consumption of text retrieval by using a search engine is reduced, and the query efficiency of the user can be effectively improved.
It should be noted that the present application is not limited to a search server specifically, and may be, for example, a distributed multi-user-capability full text search server (elastic search ES). The ElasticSearch is a distributed, high-expansion and high-real-time search and data analysis engine. It can conveniently make a large amount of data have the capability of searching, analyzing and exploring. The horizontal flexibility of the elastic search is fully utilized, so that the data can become more valuable in a production environment. The implementation principle of the ElasticSearch is mainly divided into the following steps that firstly, a user submits data to an ElasticSearch database, then a word controller divides words of corresponding sentences, the weights and word division results are stored into the data, when the user searches data, the results are ranked and scored according to the weights, and then returned results are presented to the user.
In the present application, the target data stored in the search server is not specifically limited, that is, the target data may be any type of data stored in the search server.
S102, target data is searched based on a first index, the first index is generated based on high-heat-degree data, the high-heat-degree data is stored data meeting a first matching condition, and the first matching condition is as follows: and generating the query frequency within a first preset time period and exceeding a first preset threshold value.
In the application, after the target data stored in the search server is obtained, the data which is generated in the first preset time period and has the query frequency exceeding the preset threshold value in the target data can be selected as the data in the high-heat data set according to the preset matching strategy.
First, it should be noted that the first preset time period is not specifically limited in the present application, and may be, for example, 30 days, or 60 days. Similarly, the preset threshold is not specifically limited in this application, and may be, for example, 30 times/day, or 100 times/month.
In addition, the matching strategy is not specifically limited, that is, the data generated in the first preset time period and having the query frequency exceeding the preset threshold value in the target data can be selected as the data in the high-heat data set according to any mode. For example, the data generated in the first preset time period and having the query frequency exceeding the preset threshold may be selected from the data corresponding to the specific object as the data in the high-heat data set, on the condition that the specific generated object is used as the condition. Or, it may also be that, on the condition of a specific service type, data generated in a first preset time period and having an inquiry frequency exceeding a preset threshold is selected from the data corresponding to the specific service type as data in the high-heat data set.
Further, the number of data in the high-heat data set is not specifically limited in the present application. That is, the high-heat data set may be combined from any number of target data sets.
Further, after the high-heat data set is generated, when a query instruction for the data to be searched is received, the data to be searched can be searched based on the first index generated corresponding to the high-heat data. It is understood that searching for data to be searched based on the first index may be to search for whether existing in the high-heat data set in preference to searching for the high-heat data set.
Further, a large amount of data is often stored in a large-scale search server, and the data is continuously added with the development of services. Background operation has various complex query requirements on data, and query conditions can be changed continuously along with service development. In this case, the following problems are brought about for data processing: most of the existing application systems are queried based on a database, and under a complex query condition, queried data needs to be screened from mass data, so that the data size is large, and a large number of link tables are required, which also causes the problems of poor query performance, slow response time and the like.
Based on the disadvantage of long query time caused by querying specific data in the search server, the index search can be preferentially performed on the high-heat data set when the query instruction aiming at the data to be searched is received. Thereby saving lookup time.
In the present application, after receiving at least one data query instruction, the target data may be searched based on a first index generated from high-heat data, where the high-heat data is stored data that satisfies a first matching condition generated within a first preset time period and a query frequency exceeds a first preset threshold. By applying the technical scheme of the application, when the condition that the user inquires the target data in the search server is detected, the index search can be preferentially carried out in the high-heat data in the server. And further, the problem that the efficiency of searching the target data is low when massive data of the search server is faced in the related technology can be avoided.
Optionally, in a possible implementation manner of the present application, after the application S101 (receiving at least one data query instruction), the following steps may be further implemented:
when failure of searching the target data based on the first index is detected, searching the target data based on a second index, wherein the second index is generated based on low-heat data, the low-heat data is stored data meeting a second matching condition, and the second matching condition is as follows: and generating within a second preset time period, wherein the query frequency does not exceed a second preset threshold.
It can be understood that, in the present application, data that is generated in a second preset time period and has a query frequency not exceeding a preset threshold may be further selected as data in the low-heat data set based on a preset matching policy.
First, it should be noted that the second preset time period is not specifically limited in the present application, and may be, for example, 30 days, or 60 days. In addition, the second preset time period may be the same as the first preset time period, and the second preset time period may also be different from the first preset time period.
Similarly, in the method for selecting the target data, the mode that the data which is generated in the second preset time period and the query frequency of which does not exceed the preset threshold value is used as the low-heat data set is not specifically limited. For example, the data generated in the second preset time period and having the query frequency exceeding the preset threshold may be selected from the data corresponding to the specific object as the data in the low-heat data set, on the condition that the specific generated object is used as the condition. Or, it may also be that, on the condition of a specific service type, data generated in a second preset time period and having an inquiry frequency not exceeding a preset threshold is selected from the data corresponding to the specific service type as data in the low-heat data set.
Further, the number of data in the low-heat data set is not specifically limited in the present application. That is, the low-heat data set may be combined from any number of target data sets. When the target data is found based on the first index, the target data can be found based on the second index.
In the present application, when an inquiry instruction for data to be searched is received, index search is preferentially performed on a high-heat data set (that is, the first index is used to search the data to be searched). Further, when index search fails in the high-heat data set, the data to be searched may be stored in the low-heat data set, so that the second index generated corresponding to the low-heat data may be obtained from the search database. And searching the data to be searched based on the second index.
Further optionally, in a possible implementation manner of the present application, in S101 of the present application, the following steps may be further implemented to obtain the first index and the second index:
creating a target number of indexes for the target data based on a third preset time period, wherein each index corresponds to the target data generated in different time periods;
generating a high-heat data set based on the matching strategy and the target data;
and taking the index corresponding to the target data in the high-heat data set as a first index, and taking the index corresponding to the target data in the low-heat set as a second index.
In the present application, a target number of indexes may be first created for target data based on a third preset time period, where each index corresponds to target data generated in a different time period. And after generating the high heat data set based on the matching strategy and the target data, taking an index corresponding to the target data in the high heat data set as a first index, and taking an index corresponding to the target data in the low heat set as a second index.
First, the third preset time period is not specifically limited, and may be, for example, 30 days or 50 days. In addition, the third preset time period may be the same as both the first preset time period and the second preset time period, and the third preset time period may also be different from both the first preset time period and the second preset time period.
For example, the third preset time period is 30 days, and the target data in the search server is the data of the last year. The present application may first create 12 indexes for the target data in the search server based on a third preset time period (i.e., 30 days). It will be appreciated that each index corresponds to target data that was generated at the same month. For example, index A corresponds to target data with a generation time in month 1, index B corresponds to target data with a generation time in month 2, and so on until index L corresponds to target data with a generation time in month 12. Further, the application can take the data generated in 1 month to 6 months (i.e. the first preset time period) as the high-heat data based on the matching strategy. And takes the data generated during months 7-12 (i.e., the second preset time period) as low heat data. It can be understood that, in the present application, an index corresponding to data generated in months 1 to 6 may be used as a first index (i.e., including index a, index B, index C, index D, index E, index F), and an index corresponding to data generated in months 7 to 12 may be used as a second index (i.e., including index G, index H, index I, index J, index K, index L).
In a possible embodiment of the present application, in the present application S102 (generating a high-heat data set based on a preset matching policy and target data), the present application further proposes a method for searching data, as shown in fig. 2, the method includes:
s201, target data is obtained.
S202, acquiring the service identification of each data in the target data, wherein the service identification is used for representing the service type of the target data.
S203, acquiring first target data corresponding to the target service identifier.
S204, selecting data which is generated in a first preset time period and has the query frequency exceeding a preset threshold value from the first target data as data in the high-heat-degree data set.
In the application, data which is generated in a first preset time period and has query frequency exceeding a preset threshold value in the first target data can be selected as data in the high-heat data set based on a preset selection standard. Further, the service identifier corresponding to each target data may be obtained first.
It should be noted that the service identifier is an identifier for characterizing a service type of the target data. In addition, the present application does not specifically limit the service types, and may be, for example, a service for storing data, a service for processing a service, and the like. According to the method and the device, the target service identifier in the plurality of service identifiers can be selected as the selection standard for generating the high-heat data according to the requirements of the user.
Further, after the target service identifier is determined, the first target data belonging to the target service identifier under the target data can be obtained. And selecting data which belongs to the first preset time period and is generated and the query frequency exceeds a preset threshold value from the first target data as data in the high-heat-degree data set.
Further optionally, in the process of generating the high-heat data set based on the preset matching policy and the target data, the method may further include the following steps:
the method comprises the steps of obtaining object labels of all data in target data, wherein the object labels are used for representing business objects for generating the target data;
acquiring second target data corresponding to the target object label;
and selecting data which is generated in the first preset time period and has the query frequency exceeding a preset threshold from the second target data as data in the high-heat-degree data set.
In the application, data which is generated in a first preset time period and has query frequency exceeding a preset threshold value in the first target data can be selected as data in the high-heat data set based on a preset selection standard. Further, the object tag corresponding to each target data may be obtained first.
It should be noted that the object tag is a tag of a generation object for characterizing the target data. In addition, the generation object is not specifically limited in the present application, for example, the generation object may be a user who generates the target data, or the generation object may also be a device identification number which generates the target data, or the like. According to the method and the device, the target object label in the object labels can be selected as the selection standard for generating the high-heat data according to the requirements of the user.
Further, after the target object tag is determined, second target data corresponding to the target object tag under the target data can be acquired. And selecting data which is generated in the second target data in the first preset time period and has the query frequency exceeding a preset threshold value as data in the high-heat-degree data set.
S205, when a query instruction for the data to be searched is received, searching the data to be searched based on a first index, wherein the first index is an index generated corresponding to high-heat data.
In the application, after the target data stored in the search server is acquired, high-heat-degree data generated in a first preset time period and having an inquiry frequency exceeding a preset threshold value may be selected from the target data based on a preset matching strategy, and when an inquiry instruction for the target data is received, the target data is searched based on a first index generated corresponding to the high-heat-degree data. By applying the technical scheme of the application, when the condition that the user inquires the target data in the search server is detected, the index search can be preferentially carried out in the high-heat data in the server. And further, the problem that the efficiency of searching the target data is low when massive data of the search server is faced in the related technology can be avoided.
In another embodiment of the present application, as shown in fig. 3, the present application further provides an apparatus for searching data. The apparatus includes a receiving module 301 and a searching module 302, wherein:
a receiving module 301 configured to receive at least one data query instruction,
a searching module 302 configured to search target data based on a first index, where the first index is an index generated based on high-heat data, the high-heat data is stored data that satisfies a first matching condition, and the first matching condition is: and generating the query frequency within a first preset time period and exceeding a first preset threshold value.
In the present application, after receiving at least one data query instruction, the target data may be searched based on a first index generated from high-heat data, where the high-heat data is stored data that satisfies a first matching condition generated within a first preset time period and a query frequency exceeds a first preset threshold. By applying the technical scheme of the application, when the condition that the user inquires the target data in the search server is detected, the index search can be preferentially carried out in the high-heat data in the server. And further, the problem that the efficiency of searching the target data is low when massive data of the search server is faced in the related technology can be avoided.
In another embodiment of the present application, the search module 302 includes:
a searching module 302 configured to search, when it is detected that searching the target data based on the first index fails, target data based on a second index, where the second index is an index generated based on low-heat data, the low-heat data is stored data that satisfies a second matching condition, and the second matching condition is: and generating within a second preset time period, wherein the query frequency does not exceed a second preset threshold.
In another embodiment of the present application, the first preset threshold is greater than or equal to a second preset threshold.
In another embodiment of the present application, the searching module 303 includes:
a lookup module 303 configured to group the high heat data and/or the low heat data based on a time period of data generation to obtain at least one high heat data group and/or at least one low heat data group,
a lookup module 303 configured to create an index for each of the high-heat data packets to obtain the first index and/or an index for each of the low-heat data packets to obtain the second index.
In another embodiment of the present application, the searching module 303 includes:
the searching module 303 is configured to configure the high-heat data to correspond to a service identifier in a specific range, where the service identifier is used to characterize a service type corresponding to the stored data.
In another embodiment of the present application, the searching module 303 includes:
the searching module 303 is configured to configure the high-heat data to correspond to a service identifier in a specific range, where the service identifier is used to characterize a service type corresponding to the stored data.
Fig. 4 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, electronic device 400 may include one or more of the following components: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 402 is configured to store at least one instruction for execution by the processor 401 to implement the interactive special effect calibration method provided by the method embodiments of the present application.
In some embodiments, the electronic device 400 may further optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, touch screen display 405, camera 406, audio circuitry 407, positioning components 408, and power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, providing the front panel of the electronic device 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the electronic device 400 or in a folded design; in still other embodiments, the display screen 405 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations of the electronic device 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The positioning component 408 is used to locate a current geographic location of the electronic device 400 to implement navigation or LBS (location based Service). The positioning component 408 may be a positioning component based on the GPS (global positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
The power supply 409 is used to supply power to the various components in the electronic device 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When power source 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the electronic apparatus 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the electronic device 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the user on the electronic device 400. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 413 may be disposed on a side bezel of the electronic device 400 and/or on a lower layer of the touch display screen 405. When the pressure sensor 413 is arranged on the side frame of the electronic device 400, a holding signal of the user to the electronic device 400 can be detected, and the processor 401 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 401 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, searching data, changing settings, and the like. The fingerprint sensor 414 may be disposed on the front, back, or side of the electronic device 400. When a physical button or vendor Logo is provided on the electronic device 400, the fingerprint sensor 414 may be integrated with the physical button or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
Proximity sensor 416, also known as a distance sensor, is typically disposed on the front panel of electronic device 400. The proximity sensor 416 is used to capture the distance between the user and the front of the electronic device 400. In one embodiment, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the dark screen state when the proximity sensor 416 detects that the distance between the user and the front surface of the electronic device 400 gradually decreases; when the proximity sensor 416 detects that the distance between the user and the front of the electronic device 400 is gradually increased, the processor 401 controls the touch display screen 405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 4 does not constitute a limitation of the electronic device 400, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium, such as the memory 404, comprising instructions executable by the processor 420 of the electronic device 400 to perform the method of finding data described above, the method comprising: receiving at least one data query instruction; searching target data based on a first index, wherein the first index is generated based on high-heat data, the high-heat data is stored data meeting a first matching condition, and the first matching condition is as follows: and generating the query frequency within a first preset time period and exceeding a first preset threshold value. Optionally, the instructions may also be executable by the processor 420 of the electronic device 400 to perform other steps involved in the exemplary embodiments described above. Optionally, the instructions may also be executable by the processor 420 of the electronic device 400 to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product including one or more instructions executable by the processor 420 of the electronic device 400 to perform the above method of finding data, the method comprising: receiving at least one data query instruction; searching target data based on a first index, wherein the first index is generated based on high-heat data, the high-heat data is stored data meeting a first matching condition, and the first matching condition is as follows: and generating the query frequency within a first preset time period and exceeding a first preset threshold value. Optionally, the instructions may also be executable by the processor 420 of the electronic device 400 to perform other steps involved in the exemplary embodiments described above. Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method of searching data, comprising:
receiving at least one data query instruction;
searching target data based on a first index, wherein the first index is generated based on high-heat data, the high-heat data is stored data meeting a first matching condition, and the first matching condition is as follows: and generating the query frequency within a first preset time period and exceeding a first preset threshold value.
2. The method of claim 1, wherein the method further comprises:
when it is detected that searching the target data based on the first index fails, searching the target data based on a second index, where the second index is an index generated based on low-heat data, the low-heat data is stored data that meets a second matching condition, and the second matching condition is: and generating within a second preset time period, wherein the query frequency does not exceed a second preset threshold.
3. The method of claim 2, wherein the first predetermined threshold is greater than or equal to a second predetermined threshold.
4. The method of claim 2, wherein the method further comprises:
grouping the high heat data and/or the low heat data based on a time period of data generation to obtain at least one high heat data packet and/or at least one low heat data packet,
and respectively creating an index for each high-heat data packet to obtain the first index, and/or respectively creating an index for each low-heat data packet to obtain the second index.
5. The method of claim 1, wherein the high-heat data corresponds to a service identifier in a specific range, and the service identifier is used for characterizing a service type corresponding to the stored data.
6. The method of claim 1, wherein the high-heat data corresponds to object tags within a particular range, the object tags being used to characterize business objects that generate the stored data.
7. An apparatus for searching data, comprising:
a receiving module configured to receive at least one data query instruction,
a searching module configured to search target data based on a first index, where the first index is an index generated based on high-heat data, the high-heat data is stored data that satisfies a first matching condition, and the first matching condition is: and generating the query frequency within a first preset time period and exceeding a first preset threshold value.
8. The apparatus of claim 7, wherein the acquisition module further comprises:
the searching module is configured to search target data based on a second index when it is detected that the target data search based on the first index fails, where the second index is an index generated based on low-heat data, the low-heat data is stored data that meets a second matching condition, and the second matching condition is: and generating within a second preset time period, wherein the query frequency does not exceed a second preset threshold.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for display with the memory to execute the executable instructions to perform the operations of the method of finding data of any of claims 1-7.
10. A computer-readable storage medium storing computer-readable instructions that, when executed, perform the operations of the method of finding data of any of claims 1-7.
CN201911199666.3A 2019-11-29 2019-11-29 Method, device, electronic equipment and medium for searching data Pending CN111104402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911199666.3A CN111104402A (en) 2019-11-29 2019-11-29 Method, device, electronic equipment and medium for searching data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911199666.3A CN111104402A (en) 2019-11-29 2019-11-29 Method, device, electronic equipment and medium for searching data

Publications (1)

Publication Number Publication Date
CN111104402A true CN111104402A (en) 2020-05-05

Family

ID=70421271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911199666.3A Pending CN111104402A (en) 2019-11-29 2019-11-29 Method, device, electronic equipment and medium for searching data

Country Status (1)

Country Link
CN (1) CN111104402A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858657A (en) * 2020-07-21 2020-10-30 威讯柏睿数据科技(北京)有限公司 Method and equipment for accelerating data parallel query based on high-frequency data processing
CN112269853A (en) * 2020-11-16 2021-01-26 Oppo广东移动通信有限公司 Search processing method, search processing device and storage medium
CN112527843A (en) * 2020-12-18 2021-03-19 国家工业信息安全发展研究中心 Data query method, device, terminal equipment and storage medium
CN113094340A (en) * 2021-04-28 2021-07-09 杭州海康威视数字技术股份有限公司 Data query method, device and equipment based on Hudi and storage medium
CN113239054A (en) * 2021-05-11 2021-08-10 北京百度网讯科技有限公司 Information generation method, related device and computer program product
CN114334067A (en) * 2022-03-10 2022-04-12 上海柯林布瑞信息技术有限公司 Label processing method and device for clinical data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150254303A1 (en) * 2014-03-10 2015-09-10 Here Global B.V Methods, Apparatuses and Computer Program Products for Performing Index Search Optimization
CN108875046A (en) * 2018-06-28 2018-11-23 郑州云海信息技术有限公司 A kind of storage system access method, device and electronic equipment
CN110162528A (en) * 2019-05-24 2019-08-23 安徽芃睿科技有限公司 Magnanimity big data search method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150254303A1 (en) * 2014-03-10 2015-09-10 Here Global B.V Methods, Apparatuses and Computer Program Products for Performing Index Search Optimization
CN108875046A (en) * 2018-06-28 2018-11-23 郑州云海信息技术有限公司 A kind of storage system access method, device and electronic equipment
CN110162528A (en) * 2019-05-24 2019-08-23 安徽芃睿科技有限公司 Magnanimity big data search method and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858657A (en) * 2020-07-21 2020-10-30 威讯柏睿数据科技(北京)有限公司 Method and equipment for accelerating data parallel query based on high-frequency data processing
CN111858657B (en) * 2020-07-21 2022-02-22 威讯柏睿数据科技(北京)有限公司 Method and equipment for accelerating data parallel query based on high-frequency data processing
CN112269853A (en) * 2020-11-16 2021-01-26 Oppo广东移动通信有限公司 Search processing method, search processing device and storage medium
WO2022100221A1 (en) * 2020-11-16 2022-05-19 Oppo广东移动通信有限公司 Retrieval processing method and apparatus, and storage medium
CN112527843A (en) * 2020-12-18 2021-03-19 国家工业信息安全发展研究中心 Data query method, device, terminal equipment and storage medium
CN112527843B (en) * 2020-12-18 2023-04-14 国家工业信息安全发展研究中心 Data query method, device, terminal equipment and storage medium
CN113094340A (en) * 2021-04-28 2021-07-09 杭州海康威视数字技术股份有限公司 Data query method, device and equipment based on Hudi and storage medium
CN113239054A (en) * 2021-05-11 2021-08-10 北京百度网讯科技有限公司 Information generation method, related device and computer program product
CN113239054B (en) * 2021-05-11 2024-05-07 北京百度网讯科技有限公司 Information generation method and related device
CN114334067A (en) * 2022-03-10 2022-04-12 上海柯林布瑞信息技术有限公司 Label processing method and device for clinical data

Similar Documents

Publication Publication Date Title
CN111104402A (en) Method, device, electronic equipment and medium for searching data
CN110944374B (en) Communication mode selection method and device, electronic equipment and medium
CN109902089B (en) Query method and device using heterogeneous index, electronic equipment and medium
CN110765525A (en) Method, device, electronic equipment and medium for generating scene picture
CN111385525B (en) Video monitoring method, device, terminal and system
CN110597801B (en) Database system and establishing method and device thereof
CN110471614B (en) Method for storing data, method and device for detecting terminal
CN112925922A (en) Method, device, electronic equipment and medium for obtaining address
CN113051485B (en) Group searching method, device, terminal and storage medium
CN112905328B (en) Task processing method, device and computer readable storage medium
CN111125095B (en) Method, device, electronic equipment and medium for adding data prefix
CN113535039B (en) Method and device for updating page, electronic equipment and computer readable storage medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN109918566B (en) Query method, query device, electronic equipment and medium
CN111159551B (en) User-generated content display method and device and computer equipment
CN110928867B (en) Data fusion method and device
CN111984738A (en) Data association method, device, equipment and storage medium
CN111258673A (en) Fast application display method and terminal equipment
CN112135256A (en) Method, device and equipment for determining movement track and readable storage medium
CN113590669B (en) Method and device for generating cost report forms and computer storage medium
CN109871411B (en) Method, device, electronic equipment and medium for synchronizing data
CN110929199B (en) Content display method, content display device, computer apparatus, storage medium, and program product
CN111898048B (en) Data adjustment method and device for display information, electronic equipment and storage medium
CN112925903B (en) Text classification method, device, electronic equipment and medium
CN111007969B (en) Method, device, electronic equipment and medium for searching application

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