CN110390051B - Search implementation method and device, electronic equipment and storage medium - Google Patents

Search implementation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110390051B
CN110390051B CN201910656343.6A CN201910656343A CN110390051B CN 110390051 B CN110390051 B CN 110390051B CN 201910656343 A CN201910656343 A CN 201910656343A CN 110390051 B CN110390051 B CN 110390051B
Authority
CN
China
Prior art keywords
search
plug
configuration data
target
current interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910656343.6A
Other languages
Chinese (zh)
Other versions
CN110390051A (en
Inventor
单荣鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910656343.6A priority Critical patent/CN110390051B/en
Publication of CN110390051A publication Critical patent/CN110390051A/en
Application granted granted Critical
Publication of CN110390051B publication Critical patent/CN110390051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a search implementation method, a search implementation device, an electronic device and a storage medium, wherein the method comprises the following steps: receiving a target search term; acquiring search configuration data corresponding to the search attribute of the current interface; controlling a general search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result; and controlling the universal search plug-in to display the search result on a current interface according to the search configuration data. According to the technical scheme of the embodiment of the disclosure, the personalized search configuration data of each search interface and the general search logic of the general search plug-in are independently set, so that the purposes of reducing the code complexity of the search plug-in, improving the universality of the search plug-in and facilitating the personalized search function expansion of each search interface are achieved.

Description

Search implementation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular relates to a search implementation method and device, an electronic device and a storage medium.
Background
Currently, the operating logic of searching for a plug-in an application client (e.g. a karaoke application client) is as follows: before a user inputs a search word, displaying the historical search item related to the current search page according to the historical search item display logic of the current search page for the user to select, thereby saving the time for the user to manually input the search word. When the user selects a target search entry or manually inputs a search word, the search plug-in performs a search operation based on the search logic of the current search page and displays the search result according to the result display logic of the current search page.
The historical search item display logic and the result display logic of each search page are integrated in the search plug-in, and when different search pages have different historical search item display logics or different result display logics, the integrated operation logics of the search plug-in are very much, so that the search plug-in is relatively bloated, the integrated logic codes are relatively complex, and the difficulty in function expansion of the search plug-in is further increased.
Disclosure of Invention
The embodiment of the disclosure provides a search implementation method, a search implementation device, an electronic device and a storage medium, so as to reduce the code complexity of a search plug-in, improve the universality of the search plug-in and facilitate the expansion of a personalized search function.
In a first aspect, an embodiment of the present disclosure provides a search implementation method, where the method includes:
receiving a target search term;
acquiring search configuration data corresponding to the search attribute of the current interface;
controlling a general search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result;
and controlling the universal search plug-in to display the search result on a current interface according to the search configuration data.
In a second aspect, an embodiment of the present disclosure further provides a search implementation apparatus, where the apparatus includes:
the receiving module is used for receiving the target search word;
the acquisition module is used for acquiring search configuration data corresponding to the search attribute of the current interface;
the search module is used for controlling a universal search plug-in according to the search configuration data, initiating search based on the target search word and acquiring a feedback search result;
and the search result display module is used for controlling the universal search plug-in to display the search result on the current interface according to the search configuration data.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a search implementation method as any one of the embodiments of the present disclosure.
In a fourth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the search implementation method according to any one of the disclosed embodiments.
The technical scheme of the embodiment of the disclosure comprises the following steps: receiving a target search term; acquiring search configuration data corresponding to the search attribute of the current interface; controlling a general search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result; controlling the universal search plug-in to display the search result on a current interface according to the search configuration data; specifically, the personalized search configuration data of each search interface and the general search logic of the general search plug-in are independently set, so that the purposes of reducing the code complexity of the search plug-in, improving the universality of the search plug-in and facilitating the personalized search function expansion of each search interface are achieved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of a search implementation method provided in a first embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a search implementation method provided in the second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a search implementation apparatus according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
Example one
Fig. 1 is a schematic flowchart of a search implementation method according to a first embodiment of the present disclosure. The search implementation method provided by the embodiment is suitable for a scene of information search in an application program client. Such as a scenario where a song search or singer search is conducted in a karaoke application client, where each search interface has unique search attributes, such as only supporting a search for songs in the song search interface and only supporting a search for singers in the singer search interface. Because the search attributes or search contents of different interfaces are different, the search logics of different search interfaces are usually different, for example, the display modes of the search results are different, the construction rules of the search query used are different, the search engines performing the search are different, and the like, but different search interfaces have partially identical operation logics, for example, all need to send a search request to the search engine, receive a feedback search result, and display the search result and the like. Based on the scene characteristics, the search implementation method of the embodiment is provided. The search implementation method may be performed by a search implementation apparatus, which may be implemented in the form of software and/or hardware and is generally integrated in a terminal, such as a smart phone or a server. Referring to fig. 1, the search implementation method provided in this embodiment includes the following steps:
step 110, receiving the target search term.
The target search term refers to a summary or a keyword of information that the user desires to obtain, for example, the user wants to know background information (e.g., birth date, time of track, work of title, marital status, etc.) of a certain singer, and the corresponding target search term may specifically be the name of the singer. If the user wants to order a song, the target search term may be the name of the song.
Specifically, the target search term input by the user may be received through a search input field provided by the current interface, and the target search term in a voice form input by the user may also be received through a voice receiving module.
And step 120, acquiring search configuration data corresponding to the search attribute of the current interface.
The search attribute specifically refers to a search function supported by the current interface, or may be understood as an information type that can be searched through the current interface. Illustratively, the search attributes of the current interface include: at least one of a singer search, a song search, an album search, and a lyric search. Specifically, only the search of the singer can be realized on the singer search interface; only the search of songs can be realized on a song search interface; and only the lyrics can be searched on a lyrics searching interface.
The search configuration data is parameter data indicating the universal search plug-in to realize the current interface personalized search logic. Wherein the operational logic integrated in the universal search plug-in includes display logic to search the input field, logic to send a search request to a search engine, logic to receive search results, and logic to present the search results. The search configuration data comprises, for example, data instructing the general search plug-in to display a search input field in a personalized manner, and/or data instructing the general search plug-in to present search results in a personalized manner, and/or data instructing the general search plug-in to send a search request to a specific search engine based on a specific rule. The search configuration data may further include logic data of a search formula conforming to a set format, which is used for filtering, analyzing, recombining, and the like the received target search word based on a certain rule before the universal search plug-in sends a search request to a search engine; correspondingly, the universal search plug-in is used for sending the search formula to a target search engine indicated by the search configuration data of the current interface so as to achieve the purpose of sending a search request to the target search engine. The general search plug-in integrates general operation logics (such as logic for displaying a search input field, logic for receiving a search result and logic for displaying the search result) of each interface, and personalized search logics (such as logic for displaying the search result in any mode) of each interface exist in the form of search configuration data, so that the purpose of reducing the code complexity of the search plug-in is achieved, meanwhile, the universality of the search plug-in is improved, and the expansion of personalized search functions of each interface is facilitated. For example, when the search result display mode of the current interface needs to be changed (for example, the display modes of the search results on the display layout or the sequencing display of the interface, etc.) only the search configuration data of the current interface needs to be changed.
Further, acquiring search configuration data corresponding to the search attribute of the current interface includes:
and reading the search configuration data corresponding to the search attribute of the current interface from the set storage position.
The set storage position is specified by a developer of the application program, and when the current interface is developed, the developer stores the search configuration data corresponding to the search attribute of the current interface in the set storage position.
And step 130, controlling a universal search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result.
Specifically, controlling a general search plug-in according to the search configuration data, and initiating a search based on the target search term includes:
and filtering the vocabulary indicated by the search configuration data contained in the target search word through the universal search plug-in, thereby realizing the filtering of the target search word. For example, the logic function integrated in the general search plug-in for filtering the target search term is filter (), but the specific words to be filtered are provided by the search configuration data. For example, in the singer search page, the vocabulary to be filtered out includes XX, the generic search plug-in executes the filter (XX) filtering logic; in the song search page, if the vocabulary to be filtered out includes YY, the generic search plug-in executes the filter (YY) filtering logic. The general operation logic in each search interface is integrated in the general search plug-in, the personalized operation logic realized by each search interface is stored in the form of search configuration data, when the search is carried out based on the current search interface, the general search plug-in is controlled according to the search configuration data of the current search interface, the search is initiated based on the current target search word, and the feedback search result is obtained. Furthermore, the search configuration data may further include logic for performing wrongly written character correction on the target search word, and because search attributes of different search interfaces are different, word types to be corrected are also different. For example, in the song search interface, only the words of the song name need to be corrected, and in the singer search interface, only the words used by the singer name need to be corrected, so that the error correction logic of different search attribute interfaces may be different, and therefore, the error correction logic is stored in the search configuration data. When searching is carried out based on the current interface, the universal searching plug-in calls error correction logic in the current interface searching configuration data to carry out error correction processing on the current target searching word.
Further, the search configuration data may further include logic data for constructing a search formula based on the target search term. For example, in the song search interface, when the target search word is "one thousand years worth", the corresponding search expression is "one thousand years worth of lyrics"; when the target search word is the name of singer "XX", the corresponding search formula is "singer XX". The system automatically improves the target search word input by the user, and the improvement rules of different interface attributes are different, so that the integrated general operation logic in the general search plug-in is the logic for splicing the target search word and certain information, and the certain information is provided by the search configuration data according to different interface attributes.
It is understood that the search engine or search database may be different for different search content, such as a song search matching in a song database to obtain a target song, a singer search matching in a singer database to obtain a target singer, etc. I.e., search requests initiated by interfaces based on different search attributes are sent to different search engines through the generic search plug-in. For example, the search request sending logic integrated in the universal search plug-in is implemented by a function send (), and the search engine to which the search request is specifically sent is provided by corresponding search configuration data, for example, the search engine corresponding to song search is a song search engine G, and at this time, the universal search plug-in executes the sending logic of send (G).
Illustratively, controlling a universal search plug-in according to the search configuration data, initiating a search based on the target search term, and obtaining a feedback search result includes:
controlling a general search plug-in to process the target search word according to a preset rule according to the search configuration data to obtain a search formula which accords with a set format;
and sending the search formula to a search engine indicated by the search configuration data through the universal search plug-in so as to obtain a search result through the search engine.
And 140, controlling the universal search plug-in to display the search result on a current interface according to the search configuration data.
Illustratively, controlling the universal search plug-in to display the search result on a current interface according to the search configuration data includes:
and displaying the search result on the current interface according to the display rule indicated by the search configuration data through the universal search plug-in.
Specifically, the search results with different search attributes can be displayed in different manners, for example, the song search results are displayed in a sorted manner according to the listing time of the songs, that is, the latest newly listed songs are displayed in front of the song list; and (4) carrying out sequencing display on the search results of the singers according to the heat degree of the singers, namely, displaying the singers with the highest heat degree in front. And the display positions of the search results with different search attributes can be different, the sizes of the display frames can be different, and the personalized display modes can be controlled by the search configuration data. For example, search result presentation logic integrated in the universal search plug-in is implemented by a function show (address, size), the first parameter represents a presentation position, the second parameter represents a size of a presentation frame, and if a presentation position including a search result in corresponding search configuration data is in the middle of a page and the size is 4 × 4, the search result presentation logic executed by the universal search plug-in is show (central, 4 × 4).
According to the technical scheme of the embodiment of the disclosure, the personalized search configuration data of each search interface and the general search logic of the general search plug-in are independently set, so that the purposes of reducing the code complexity of the search plug-in and improving the universality of the search plug-in are achieved, and the personalized search function of each search interface is conveniently expanded.
Example two
Fig. 2 is a schematic flow chart of a search implementation method provided in the second embodiment of the present disclosure. On the basis of the embodiment, the personalized display step of the search input field in the search interface is added. As shown in fig. 2, the method includes:
and 210, displaying the search input field in the current interface through the universal search plug-in.
Wherein the search input field is used for receiving a target search term. In general, the search input fields displayed in the interfaces with different search attributes are basically the same, so that the display logic of the search input fields can be integrated into the universal search plug-in, and the display of the search input fields is performed through the universal search plug-in.
Of course, the universal search plug-in can also be controlled by the search configuration data to perform personalized display of the search input field. For example, the presentation logic of the search input field integrated in the generic search plug-in is implemented by a function listshow (address, size), where the first parameter represents a presentation position of the search input field, the second parameter represents a size of the search input field, and if the presentation position of the search input field indicated by the corresponding search configuration data is a default position and the size is 2 × 4, the presentation logic of the search input field executed by the generic search plug-in is listshow (, 2 × 4). The size, position and display effect of the search input fields of the search interfaces with different attributes can be different, and the personalized logics can be realized by controlling the universal search plug-in through the search configuration data.
Optionally, when the current interface is rendered, the search configuration data of the current interface is acquired, and the universal search plug-in is loaded at the same time
Step 220, obtaining the historical search terms and/or the hot spot search terms of the current interface through the universal search plug-in, and controlling the universal search plug-in to display the historical search terms and/or the hot spot search terms on the current interface according to the search configuration data of the current interface so as to be selected by the user.
Step 230, receiving a target search term input by the user through the search input field, or a target search term selected by the user from the displayed historical search terms and/or the hot search terms.
And step 240, controlling a general search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result.
And step 250, controlling the universal search plug-in to display the search result on a current interface according to the search configuration data.
According to the technical scheme of the embodiment, the universal search plug-in is controlled through the search configuration data, personalized display of search input fields, personalized search and personalized display of search results in different search interfaces are achieved, the personalized search configuration data of each search interface and the universal search logic of the universal search plug-in are independently set, the purposes of reducing the code complexity of the search plug-in and improving the universality of the search plug-in are achieved, and meanwhile the expansion of the personalized search function of each search interface is facilitated.
EXAMPLE III
Fig. 3 is a search implementation apparatus provided in a third embodiment of the present disclosure, where the apparatus includes: a receiving module 310, an obtaining module 320, a searching module 330 and a searching result displaying module 340;
the receiving module 310 is configured to receive a target search term; an obtaining module 320, configured to obtain search configuration data corresponding to a search attribute of a current interface; the search module 330 is configured to control a general search plug-in according to the search configuration data, initiate a search based on the target search term, and obtain a feedback search result; and the search result display module 340 is configured to control the universal search plug-in to display the search result on the current interface according to the search configuration data.
On the basis of the above technical solution, the apparatus further includes: the search input column display module is used for displaying the search input column through the universal search plug-in the current interface;
correspondingly, the receiving module 310 is specifically configured to:
and receiving a target search word input by a user through the search input field.
On the basis of the above technical solutions, the apparatus further includes:
the historical search word display module is used for acquiring the historical search words and/or the hot spot search words of the current interface through the universal search plug-in before receiving the target search words, and controlling the universal search plug-in to display the historical search words and/or the hot spot search words on the current interface according to the search configuration data so as to be selected by a user;
correspondingly, the receiving module 310 is specifically configured to:
and determining the historical search words or the hot search words selected by the user as the target search words.
On the basis of the above technical solutions, the obtaining module 320 is specifically configured to:
and reading the search configuration data corresponding to the search attribute of the current interface from the set storage position.
On the basis of the above technical solutions, the search module 330 includes:
the processing unit is used for controlling a universal search plug-in to process the target search word according to a preset rule according to the search configuration data to obtain a search formula which accords with a set format;
and the sending unit is used for sending the search formula to a search engine indicated by the search configuration data through the universal search plug-in so as to obtain a search result through the search engine.
On the basis of the above technical solutions, the search result display module 340 is specifically configured to:
and displaying the search result on the current interface according to the display rule indicated by the search configuration data through the universal search plug-in.
On the basis of the above technical solutions, the search attribute of the current interface includes: at least one of a singer search, a song search, an album search, and a lyric search.
According to the technical scheme of the embodiment of the disclosure, the personalized search configuration data of each search interface and the general search logic of the general search plug-in are independently set, so that the purposes of reducing the code complexity of the search plug-in and improving the universality of the search plug-in are achieved, and the personalized search function of each search interface is conveniently expanded.
The search implementation device provided by the embodiment of the disclosure can execute the search implementation method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
Example four
Referring now to fig. 4, a schematic diagram of an electronic device (e.g., the terminal device or the server of fig. 4) 400 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 406 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 406 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 409, or from the storage means 406, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
The terminal provided by the embodiment of the present disclosure and the search implementation method provided by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment of the present disclosure may be referred to the embodiment, and the embodiment of the present disclosure have the same beneficial effects.
EXAMPLE five
The embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the search implementation method provided by the above-described embodiment.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
receiving a target search term;
acquiring search configuration data corresponding to the search attribute of the current interface;
controlling a general search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result;
and controlling the universal search plug-in to display the search result on a current interface according to the search configuration data.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a cell does not in some cases constitute a limitation on the cell itself, for example, an editable content display cell may also be described as an "editing cell".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided a search implementation method, the method comprising:
receiving a target search term;
acquiring search configuration data corresponding to the search attribute of the current interface;
controlling a general search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result;
and controlling the universal search plug-in to display the search result on a current interface according to the search configuration data.
According to one or more embodiments of the present disclosure, [ example two ] there is provided a search implementation method, further comprising:
optionally, in the current interface, the search input field is displayed through the universal search plug-in;
correspondingly, the receiving the target search term includes:
and receiving a target search word input by a user through the search input field.
According to one or more embodiments of the present disclosure, [ example three ] there is provided a search implementation method, further comprising:
optionally, before receiving the target search term, the method further includes:
acquiring historical search words and/or hot spot search words of a current interface through the universal search plug-in, and controlling the universal search plug-in to display the historical search words and/or the hot spot search words on the current interface according to the search configuration data so as to be selected by a user;
correspondingly, the receiving the target search term includes:
and determining the historical search words or the hot search words selected by the user as the target search words.
According to one or more embodiments of the present disclosure, [ example four ] there is provided a search implementation method, further comprising:
optionally, the obtaining of the search configuration data corresponding to the search attribute of the current interface includes:
and reading the search configuration data corresponding to the search attribute of the current interface from the set storage position.
According to one or more embodiments of the present disclosure, [ example five ] there is provided a search implementation method, further comprising:
optionally, controlling a general search plug-in according to the search configuration data, initiating a search based on the target search term, and obtaining a feedback search result, including:
controlling a general search plug-in to process the target search word according to a preset rule according to the search configuration data to obtain a search formula which accords with a set format;
and sending the search formula to a search engine indicated by the search configuration data through the universal search plug-in so as to obtain a search result through the search engine.
According to one or more embodiments of the present disclosure, [ example six ] there is provided a search implementation method, further comprising:
optionally, controlling the universal search plug-in to display the search result on a current interface according to the search configuration data includes:
and displaying the search result on the current interface according to the display rule indicated by the search configuration data through the universal search plug-in.
According to one or more embodiments of the present disclosure, [ example seven ] there is provided a search implementation method, further comprising:
optionally, the search attribute of the current interface includes: at least one of a singer search, a song search, an album search, and a lyric search.
According to one or more embodiments of the present disclosure, [ example eight ] there is provided a search implementing apparatus, the apparatus comprising:
the receiving module is used for receiving the target search word;
the acquisition module is used for acquiring search configuration data corresponding to the search attribute of the current interface;
the search module is used for controlling a universal search plug-in according to the search configuration data, initiating search based on the target search word and acquiring a feedback search result;
and the search result display module is used for controlling the universal search plug-in to display the search result on the current interface according to the search configuration data.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended specification is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely exemplary forms of implementing the description.

Claims (9)

1. A search implementation method, comprising:
receiving a target search term;
acquiring search configuration data corresponding to the search attribute of the current interface;
controlling a general search plug-in according to the search configuration data, initiating search based on the target search word, and acquiring a feedback search result;
controlling the universal search plug-in to display the search result on a current interface according to the search configuration data;
the controlling a general search plug-in according to the search configuration data, initiating a search based on the target search term, and obtaining a feedback search result includes:
controlling a general search plug-in to process the target search word according to a preset rule according to the search configuration data to obtain a search formula which accords with a set format;
and sending the search formula to a search engine indicated by the search configuration data through the universal search plug-in so as to obtain a search result through the search engine.
2. The method of claim 1, further comprising:
displaying a search input field through the universal search plug-in a current interface;
correspondingly, the receiving the target search term includes:
and receiving a target search word input by a user through the search input field.
3. The method of claim 1, wherein prior to receiving the target search term, further comprising:
acquiring historical search words and/or hot spot search words of a current interface through the universal search plug-in, and controlling the universal search plug-in to display the historical search words and/or the hot spot search words on the current interface according to the search configuration data so as to be selected by a user;
correspondingly, the receiving the target search term includes:
and determining the historical search words or the hot search words selected by the user as the target search words.
4. The method of claim 1, wherein obtaining search configuration data corresponding to a search attribute of a current interface comprises:
and reading the search configuration data corresponding to the search attribute of the current interface from the set storage position.
5. The method according to any one of claims 1-4, wherein controlling the generic search plug-in to present the search result on a current interface according to the search configuration data comprises:
and displaying the search result on the current interface according to the display rule indicated by the search configuration data through the universal search plug-in.
6. The method of any of claims 1-4, wherein the search attributes of the current interface include: at least one of a singer search, a song search, an album search, and a lyric search.
7. A search engine, comprising:
the receiving module is used for receiving the target search word;
the acquisition module is used for acquiring search configuration data corresponding to the search attribute of the current interface;
the search module is used for controlling a universal search plug-in according to the search configuration data, initiating search based on the target search word and acquiring a feedback search result;
the search result display module is used for controlling the universal search plug-in to display the search result on a current interface according to the search configuration data;
wherein the search module comprises:
the processing unit is used for controlling a universal search plug-in to process the target search word according to a preset rule according to the search configuration data to obtain a search formula which accords with a set format;
and the sending unit is used for sending the search formula to a search engine indicated by the search configuration data through the universal search plug-in so as to obtain a search result through the search engine.
8. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the search implementation method of any one of claims 1-6.
9. A storage medium containing computer-executable instructions for performing the search implementation method of any one of claims 1-6 when executed by a computer processor.
CN201910656343.6A 2019-07-19 2019-07-19 Search implementation method and device, electronic equipment and storage medium Active CN110390051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910656343.6A CN110390051B (en) 2019-07-19 2019-07-19 Search implementation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910656343.6A CN110390051B (en) 2019-07-19 2019-07-19 Search implementation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110390051A CN110390051A (en) 2019-10-29
CN110390051B true CN110390051B (en) 2021-12-28

Family

ID=68286962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910656343.6A Active CN110390051B (en) 2019-07-19 2019-07-19 Search implementation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110390051B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310078B (en) * 2020-02-10 2023-06-23 北京字节跳动网络技术有限公司 Method and device for determining search result display strategy
CN112163102B (en) * 2020-09-29 2023-03-17 北京字跳网络技术有限公司 Search content matching method and device, electronic equipment and storage medium
CN113158046B (en) * 2021-04-20 2024-04-26 深圳市富途网络科技有限公司 Method, device, electronic equipment and storage medium for searching information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685220A (en) * 2012-04-28 2012-09-19 苏州阔地网络科技有限公司 Method and system for data interaction based on WEB page
CN106708885A (en) * 2015-11-17 2017-05-24 百度在线网络技术(北京)有限公司 Method and device for achieving searching
CN106776705A (en) * 2016-11-16 2017-05-31 东北大学 A kind of interactive browser plug-in system towards search procedure

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100070482A1 (en) * 2008-09-12 2010-03-18 Murali-Krishna Punaganti Venkata Method, system, and apparatus for content search on a device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685220A (en) * 2012-04-28 2012-09-19 苏州阔地网络科技有限公司 Method and system for data interaction based on WEB page
CN106708885A (en) * 2015-11-17 2017-05-24 百度在线网络技术(北京)有限公司 Method and device for achieving searching
CN106776705A (en) * 2016-11-16 2017-05-31 东北大学 A kind of interactive browser plug-in system towards search procedure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
可配置web robot 的研究与实现;高熙祥;《春华秋实五十年》;20061031;全文 *

Also Published As

Publication number Publication date
CN110390051A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN110390051B (en) Search implementation method and device, electronic equipment and storage medium
CN109976620B (en) Method, device, equipment and storage medium for determining list item display attribute information
US11762931B2 (en) Feedback method and apparatus based on online document comment, and non-transitory computer-readable storage medium
CN109491742B (en) Page table rendering method and device
CN111368519B (en) Method, device, equipment and storage medium for editing online form
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
US11856152B2 (en) Video special effect configuration file generation method and apparatus, and video rendering method and apparatus
WO2022184077A1 (en) Document editing method and apparatus, and terminal and non-transitory storage medium
CN110825481A (en) Method and device for displaying page information corresponding to page tag and electronic equipment
US20240104298A1 (en) Method and apparatus for tabular data processing, terminal, and storage medium
CN110852720A (en) Document processing method, device, equipment and storage medium
CN114363686A (en) Method, apparatus, device, medium, and program product for distributing multimedia content
CN109977279B (en) Method and device for searching online documents in suite
CN109614089B (en) Automatic generation method, device, equipment and storage medium of data access code
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN115269920A (en) Interaction method, interaction device, electronic equipment and storage medium
CN115470754A (en) Data analysis method and device, computer readable medium and electronic equipment
CN110568976B (en) Method, device, equipment and storage medium for controlling application display
CN111143355B (en) Data processing method and device
CN113138677A (en) Method and device for determining candidate words of input method, electronic equipment and storage medium
CN112131181A (en) Storage path display method and device and electronic equipment
CN112100205A (en) Data processing method, device, equipment and computer readable medium
CN111242746A (en) House resource information display method, device, terminal and storage medium
CN111399730A (en) Image processing method, image processing device, electronic equipment 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
GR01 Patent grant
GR01 Patent grant