CN117609634A - Content retrieval method, system, electronic device and storage medium - Google Patents

Content retrieval method, system, electronic device and storage medium Download PDF

Info

Publication number
CN117609634A
CN117609634A CN202311629894.6A CN202311629894A CN117609634A CN 117609634 A CN117609634 A CN 117609634A CN 202311629894 A CN202311629894 A CN 202311629894A CN 117609634 A CN117609634 A CN 117609634A
Authority
CN
China
Prior art keywords
target
content
search
retrieval
information
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
CN202311629894.6A
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.)
BOE Technology Group Co Ltd
Beijing Zhongxiangying Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Beijing Zhongxiangying 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 BOE Technology Group Co Ltd, Beijing Zhongxiangying Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202311629894.6A priority Critical patent/CN117609634A/en
Publication of CN117609634A publication Critical patent/CN117609634A/en
Pending legal-status Critical Current

Links

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/9536Search customisation based on social or collaborative filtering
    • 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/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure provides a content retrieval method, system, electronic device and storage medium, including: receiving target retrieval content and a target retrieval mode sent by a first terminal, wherein the first terminal is a terminal which establishes connection with a server; acquiring association information corresponding to the target retrieval mode according to the target retrieval mode; searching the target search content according to the target search mode and the associated information to obtain a search result; and sending the search result to the first terminal and/or the second terminal, wherein the second terminal is another terminal which establishes connection with the server. The method and the device realize targeted retrieval of the target retrieval content and improve the retrieval efficiency. And meanwhile, the user can search according to the corresponding search mode selected by the user according to the needs of the user, so that the requirements of the user are met. When the search result is displayed on the second terminal, namely the search result and the original file are displayed on different terminals, the search result and the original file are checked at the same time, and the user is prevented from switching back and forth.

Description

Content retrieval method, system, electronic device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a content retrieval method, a system, an electronic device, and a storage medium.
Background
With the development of the information retrieval field, the retrieval by using a search engine has become a new way for people to retrieve.
With the continuous development of search tools, when a user searches for a certain content, multiple search tools can be adopted to perform the search, the obtained results are also various, and the user needs to perform continuous screening to obtain the required content. The process is complicated.
In view of this, how to realize efficient and convenient retrieval of content, so that a user can quickly obtain the required content becomes an important solution problem.
Disclosure of Invention
In view of the above, the present disclosure is directed to a content retrieval method, system, electronic device and storage medium for solving or partially solving the above-mentioned problems.
Based on the above object, a first aspect of the present disclosure provides a content retrieval method, applied to a server, the method including:
receiving target retrieval content and a target retrieval mode sent by a first terminal, wherein the first terminal is a terminal which establishes connection with the server, and the target retrieval mode is a retrieval mode adopted when retrieving the target retrieval content;
Acquiring associated information corresponding to the target retrieval mode according to the target retrieval mode;
according to the target retrieval mode and the associated information, retrieving the target retrieval content to obtain a retrieval result;
and sending the search result to the first terminal and/or a second terminal, wherein the second terminal is another terminal which establishes connection with the server.
Based on the above object, a second aspect of the present disclosure provides a content retrieval method applied to a first terminal, the method including:
receiving a content framing instruction for a first file;
acquiring frame selection content corresponding to the content frame selection instruction as target retrieval content;
in response to receiving the mode selection instruction, displaying mode option information including a first option for selecting a first retrieval mode and a second option for selecting a second retrieval mode;
determining a target retrieval mode in response to a selection instruction for a target option in the mode option information;
the target retrieval content and the target retrieval mode are sent to a server, so that the server retrieves the target retrieval content according to the target retrieval mode to obtain a retrieval result;
And receiving and displaying the search result sent by the server.
Based on the above object, a third aspect of the present disclosure provides a content retrieval method applied to a second terminal, the method including:
receiving a search result corresponding to target search content sent by a server, and displaying the search result and search type selection information;
responding to receiving a search type selection instruction corresponding to the search type selection information, and acquiring a target search type contained in the search type selection instruction;
and sending the target retrieval type to a server so that the server can retrieve the target retrieval content according to the target retrieval type.
Based on the same inventive concept, a fourth aspect of the present disclosure provides a content retrieval device, provided in a server, including:
the system comprises a search content receiving module, a search module and a search module, wherein the search content receiving module is configured to receive target search content and a target search mode sent by a first terminal, the first terminal is a terminal which establishes connection with a server, and the target search mode is a search mode adopted when searching the target search content;
the associated information acquisition module is configured to acquire associated information corresponding to the target retrieval mode according to the target retrieval mode;
The search result generation module is configured to search the target search content according to the target search mode and the associated information to obtain a search result;
and the search result sending module is configured to send the search result to the first terminal and/or a second terminal, wherein the second terminal is another terminal which establishes connection with the server.
Based on the same inventive concept, a fifth aspect of the present disclosure proposes a content retrieval device provided to a first terminal, including:
a content box selection instruction receiving module configured to receive a content box selection instruction for a first file;
the frame selection content acquisition module is configured to acquire frame selection content corresponding to the content frame selection instruction as target retrieval content;
a mode option information display module configured to display mode option information including a first option for selecting a first retrieval mode and a second option for selecting a second retrieval mode in response to receiving a mode selection instruction;
a target retrieval mode determination module configured to determine a target retrieval mode in response to a selection instruction for a target option in the mode option information;
The information sending module is configured to send the target retrieval content and the target retrieval mode to a server so that the server can retrieve the target retrieval content according to the target retrieval mode to obtain a retrieval result;
and the search result receiving module is configured to receive and display the search result sent by the server.
Based on the same inventive concept, a sixth aspect of the present disclosure proposes a content retrieval device provided at a second terminal, including:
the search result receiving module is configured to receive a search result corresponding to target search content sent by the server and display the search result and search type selection information;
a search type selection instruction receiving module configured to obtain a target search type contained in a search type selection instruction in response to receiving the search type selection instruction corresponding to the search type selection information;
and the target retrieval type sending module is configured to send the target retrieval type to a server so that the server can retrieve the target retrieval content according to the target retrieval type.
Based on the same inventive concept, a seventh aspect of the present disclosure proposes a content retrieval system including a server that performs the content retrieval method described above, a first terminal that performs the content retrieval method described above, and a second terminal that performs the content retrieval method described above.
Based on the same inventive concept, an eighth aspect of the present disclosure proposes an electronic device comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the content retrieval method as described above when executing the computer program.
Based on the same inventive concept, a ninth aspect of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the content retrieval method as described above.
From the foregoing, it can be seen that the present disclosure provides a content retrieval method, a system, an electronic device, and a storage medium, where a server receives a target retrieval content and a target retrieval mode sent by a first terminal, the target retrieval mode is a retrieval mode selected by a user, and obtains association information corresponding to the target retrieval mode according to the target retrieval mode. By searching the target search content according to the target search mode and combining the associated information, the targeted search of the target search content is realized, and the search efficiency is improved. And meanwhile, the user can search according to the corresponding search mode selected by the user according to the needs of the user, so that the requirements of the user are met. After the search result is obtained, the search result is sent to the first terminal and/or the second terminal, and as the file corresponding to the target search content is displayed on the first terminal, when the search result is displayed on the second terminal, namely the search result and the original file are displayed on different terminals, the search result and the original file are checked at the same time, and the user is prevented from switching back and forth.
Drawings
In order to more clearly illustrate the technical solutions of the present disclosure or related art, the drawings required for the embodiments or related art description will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is a flow chart of a content retrieval method of an embodiment of the present disclosure;
FIG. 2 is a schematic display diagram of a content retrieval method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a content retrieval method according to another embodiment of the present disclosure;
FIG. 4 is a schematic diagram showing a content retrieval method according to another embodiment of the present disclosure;
FIG. 5 is a flow chart of a content retrieval method according to another embodiment of the present disclosure;
FIG. 6 is a block diagram of a content retrieval device according to an embodiment of the present disclosure;
fig. 7 is a block diagram showing a structure of a content retrieval device according to another embodiment of the present disclosure;
FIG. 8 is a block diagram of a content retrieval device according to another embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purposes of promoting an understanding of the principles and advantages of the disclosure, reference will now be made to the embodiments illustrated in the drawings and specific language will be used to describe the same.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present disclosure should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present disclosure pertains. The terms "first," "second," and the like, as used in embodiments of the present disclosure, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
The server is connected with the first terminal and the second terminal respectively, and the server, the first terminal and the second terminal respectively comprise pre-developed interfaces capable of carrying out data communication. The server may be a cloud server, and is configured to retrieve content.
The first terminal is a display device, and the display device can display content and can be used for a user to operate the display content, wherein the operation can be editing, touch control, dragging and the like. The first terminal is a notebook computer, a mobile phone, a tablet computer, a watch, a bracelet, or the like, and in this embodiment, the first terminal is preferably a computer.
The second terminal is a display device, and the display device can display content and can be used for a user to operate the display content, wherein the operation can be editing, touch control, dragging and the like. The second terminal is a screen, a notebook computer, a mobile phone, a tablet computer, a watch, a bracelet or the like.
When the second terminal is a screen drawing, the second terminal can be used as an electronic album to display image information when being independently used.
The first terminal and the second terminal are connected through the server, and when the first terminal and the second terminal are in a starting state at the same time and are connected with the server, the content retrieval method can be realized through the cooperation of the server, the first terminal and the second terminal.
Based on the above description, the present embodiment proposes a content retrieval method, applied to a server, as shown in fig. 1, where the method includes:
step 101, receiving target search content and a target search mode sent by a first terminal, wherein the first terminal is a terminal which establishes connection with a server, and the target search mode is a search mode adopted when searching the target search content.
In specific implementation, a user selects target search content and a target search mode through a first terminal, wherein the target search mode is a search mode adopted when the user searches the target search content according to the needs of the user. The target retrieval mode comprises a first retrieval mode and a second retrieval mode, the first retrieval mode and the second retrieval mode are different at least in retrieval flow and/or retrieval content, and a user can select one of the retrieval modes to retrieve the target retrieval content according to own requirements. The server establishes connection with the first terminal, and receives target search content and target search content sent by the first terminal so as to obtain corresponding association information according to a target search mode.
Step 102, according to the target retrieval mode, obtaining the associated information corresponding to the target retrieval mode.
In the specific implementation, the associated information corresponding to different retrieval modes is different, and the corresponding associated information is acquired through the received target retrieval mode, so that the acquisition of the associated information is more accurate, and the accuracy of the retrieval is improved when the subsequent retrieval is carried out according to the associated information.
And step 103, searching the target search content according to the target search mode and the associated information to obtain a search result.
In the specific implementation, the target retrieval content is retrieved through the received target retrieval mode selected by the user and the associated information corresponding to the target retrieval mode, so that the targeted retrieval of the target retrieval content is realized, and the retrieval efficiency is improved under the condition of meeting the user requirement.
Each search result may include information such as a title, a abstract, an author, or a website, and the user may select each search result on the first terminal and/or the second terminal through a selection operation, and further view detailed information corresponding to the search result, where the selection operation may be a click operation, for example.
Meanwhile, after obtaining the search results, the server acquires the display content of each search result when the search results are displayed, traverses the display content, and marks the target search content contained in the display content. Wherein the marking process comprises at least one of: bold, highlight, underline, italic or change font color, etc.
Illustratively, the target search content is speech, the display content is headlines and summaries, and the marking process is highlighted. After the voice is searched, three search results are obtained. And respectively acquiring a title and a abstract corresponding to each search result, traversing the title and the abstract, and carrying out highlighting treatment on the target search contents contained in the title and the abstract to distinguish the target search contents from other contents when all the target search contents contained in the title and the abstract are searched. When the search result is displayed, the target search content contained in the search result can be very prominently displayed in the search result for the user to browse, and meanwhile, the relevance between the search result and the target search content can be reflected.
Step 104, the search result is sent to the first terminal and/or a second terminal, wherein the second terminal is another terminal which establishes connection with the server.
In implementation, the obtained search result is sent to the first terminal and/or the second terminal, so that the search result is displayed on the first terminal and/or the second terminal for the user to check.
Specifically, as an alternative embodiment, the obtained search result may be sent to the first terminal, and when the user has only one terminal device, targeted search for the target search content may be achieved as well.
The first terminal is a notebook computer, and the user selects the target search content as an automobile on the notebook computer and selects a target search mode to send the target search content and the target search mode to the server. After the server obtains the corresponding association information according to the target retrieval content, the server utilizes the target retrieval mode to retrieve the association information, so as to obtain a retrieval result, and the retrieval result is sent to the notebook computer. The user can check the search result on the notebook computer, and the targeted search of the target search content is realized.
As another alternative embodiment, the obtained search result can be sent to the second terminal, when the user has more than two terminal devices, the original file where the target search content is located is displayed on the first terminal, and the search result is displayed on the second terminal, so that the search result and the original file can be checked at the same time, the user is prevented from switching back and forth between the search result and the original file, and the method is more convenient.
The first terminal is a notebook computer, the second terminal is a screen, and the user selects the target search content as an apple on the notebook computer, selects a target search mode and sends the target search content and the target search mode to the server. And after the server acquires the corresponding association information according to the target retrieval content, the server utilizes the target retrieval mode to retrieve the association information, so as to obtain a retrieval result, and the retrieval result is sent to the screen for display. The method and the device realize that the search result is displayed on the screen while the original file is displayed on the notebook computer, so that the user can conveniently check the search result.
As a further alternative embodiment, the retrieved result may be sent to both the first terminal and the second terminal. When a plurality of pieces of content information are included in the search result, the user can view different contents in the search result simultaneously on both terminals. Clearly, the user may also view the same content in the search result on two devices as needed, which is not limited in detail.
Illustratively, the search result includes three pieces of content information A, B, C, and the search result is sent to the first terminal and the second terminal respectively, so that the user can view the content information a on the first terminal and view the content information B on the second terminal at the same time. The content information C may also be viewed on the first terminal and simultaneously on the second terminal.
Through the scheme, the server receives the target retrieval content and the target retrieval mode sent by the first terminal, wherein the target retrieval mode is a retrieval mode selected by a user, and the associated information corresponding to the target retrieval mode is acquired according to the target retrieval mode. By searching the target search content according to the target search mode and combining the associated information, the targeted search of the target search content is realized, and the search efficiency is improved. And meanwhile, the user can search according to the corresponding search mode selected by the user according to the needs of the user, so that the requirements of the user are met. After the search result is obtained, the search result is sent to the first terminal and/or the second terminal, and as the file corresponding to the target search content is displayed on the first terminal, when the search result is displayed on the second terminal, namely the search result and the original file are displayed on different terminals, the search result and the original file are checked at the same time, and the user is prevented from switching back and forth.
In some embodiments, the target retrieval mode includes a first retrieval mode, and step 102 specifically includes:
and step 1021, in response to determining that the target retrieval mode is the first retrieval mode, sending a history acquisition request to the first terminal, so that the first terminal reads and sends history information from local according to the history acquisition request.
In the specific implementation, the server judges the received target retrieval mode, and when the target retrieval mode is the first retrieval mode, a history acquisition request is sent to the first terminal. And when the first terminal receives the history acquisition request, reading local history information and sending the history information to a server.
Step 1022, receiving the history information sent by the first terminal, and taking the history information as the associated information corresponding to the first search mode.
In the implementation process, the server receives history information sent by the first terminal, wherein the history information is associated information corresponding to the first retrieval mode.
In this embodiment, since the search flow and the search content corresponding to the first search mode are more simplified, the first search mode may be regarded as a simple search mode, and the associated information corresponding to the simple search mode is set as the history information in the first terminal. The history information is search record information when a user uses a first terminal to search before the current search, wherein each piece of search record information comprises search time, search content, search tools used for search, user information and the like, and the user information is information of a login user corresponding to the first terminal system and is used for distinguishing different users using the same search tool.
When the user selects the target retrieval content and the target retrieval mode, the first terminal can acquire the target user information logged in the current system besides the target retrieval content and the target retrieval mode, and send the target retrieval content, the target retrieval mode and the target user information to the server. When the server sends the history acquisition request, the history acquisition request can be a request for acquiring the history information corresponding to the target user information, so that the received history information is the history information corresponding to the target user information, and the accuracy of the search result is further improved.
In some cases, the retrieval time limit may also be performed in the history acquisition request sent by the server in the present application. For example, only the history of the distance from the current time is obtained within a preset time, such as three months. The history record in the time which is closer to the current time can reflect the latest preference habit of the user, and the accuracy of the search result is further improved by only requesting to acquire the history record in the time which is closer to the current time.
In some embodiments, the target retrieval mode includes a first retrieval mode, and step 103 specifically includes:
Step 1031, obtaining a target content type of the target search content.
Step 1032, determining a target retrieval tool corresponding to the target content type according to the target content type and the history information.
And 1033, searching the target search content by using the target search tool to obtain a search result.
In particular, different search tools corresponding to different content types are provided. And obtaining the target content type of the target retrieval content, and determining a target retrieval tool corresponding to the target content type according to the history record information.
According to the scheme, the target retrieval content is retrieved by utilizing the target retrieval tool corresponding to the target content type of the target retrieval content, and the retrieval tool commonly used by the user is used for retrieval, so that the retrieval tool and the retrieval result are more in accordance with the habit of the user.
In some embodiments, the target content type includes a technology type and a non-technology type, and step 1032 specifically includes:
step 10321, in response to determining that the target content type is the technology type, determines, according to the history information, that a first search tool corresponding to the technology type is the target search tool.
Step 10322, in response to determining that the target content type is the non-technology type, determines, according to the history information, that a second search tool corresponding to the non-technology type is the target search tool.
In particular implementations, the target content types include technical types and non-technical types. The server divides the content according to a preset range, wherein the preset range can be whether the interpretation can be queried by using a professional website, if so, the content type belongs to the technical type, and if not, the content type belongs to the non-technical type.
For example, if the content is a screen, and the interpretation cannot be queried by using the professional website, the type corresponding to the screen is a non-technical type. For another example, if the content is a neural network, and the interpretation can be queried by using a professional website, the type corresponding to the neural network is a technology type.
It will be appreciated that the above-mentioned preset ranges are given as examples only, and may be set according to actual practice, and are not particularly limited.
When the target content type is the technical type, determining that a first retrieval tool corresponding to the technical type is the target retrieval tool according to the acquired history information. And when the target content type is a non-technical type, determining a second retrieval tool corresponding to the non-technical type as a target retrieval tool according to the acquired history information.
In some embodiments, the step 10321 specifically includes:
and step 103211, determining a plurality of candidate retrieval tools corresponding to the technical type according to the history information.
And step 103212, determining the candidate search tool with the highest use frequency among a plurality of candidate search tools corresponding to the technical type as the first search tool according to the history information.
In specific implementation, each piece of history information in the received history information includes search content, and the search content in the history information is classified according to a preset range, into history information with search content being a technical type and history information with search content being a non-technical type, where the preset range may refer to step 10322 specifically.
And acquiring the history information with the search content of the technical type, wherein each piece of history information in the history information comprises search tools, and acquiring all the search tools contained in the history information with the search content of the technical type as candidate search tools. Counting the occurrence times of each search tool to be selected, and selecting the search tool to be selected with the highest use frequency as a first search tool corresponding to the technical type.
Illustratively, the history information of the technical type of the search content is obtained, and all search tools contained in the history information are obtained as candidate search tools, including a CSDN, a China awareness network, a SCI, a Wipe network, a Wan-square academy of science, or an American chemical society. And counting the occurrence times of the candidate search tools, and determining that the candidate search tool with the highest use frequency is a CSDN, wherein the CSDN is used as the first search tool corresponding to the technical type.
In some embodiments, the step 10322 specifically includes:
step 103221, selecting a plurality of search tools corresponding to the non-technical type according to the history information.
And step 103222, determining the candidate search tool with the highest use frequency in the plurality of candidate search tools corresponding to the non-technical type as the second search tool according to the history information.
In specific implementation, each piece of history information in the received history information includes search content, and the search content in the history information is classified according to a preset range, into history information with search content being a technical type and history information with search content being a non-technical type, where the preset range may refer to step 10322 specifically.
And acquiring historical record information with the search content of a non-technical type, wherein each piece of historical record information in the historical record information comprises search tools, and acquiring all the search tools contained in the historical record information with the search content of the non-technical type as candidate search tools. Counting the occurrence times of each search tool to be selected, and selecting the search tool to be selected with the highest use frequency as a second search tool corresponding to the non-technical type.
Illustratively, historical record information of which the search content is of a non-technical type is obtained, and all search tools contained in the historical record information are obtained as search tools to be selected, wherein the search tools comprise hundred degrees, must, search fox, google or fire fox. And counting the occurrence times of the search tools to be selected, determining that the search tool to be selected with the highest use frequency is hundred degrees, and taking the hundred degrees as a second search tool corresponding to the non-technical type.
Through the scheme, the search history of the user is analyzed, so that the search tool commonly used when the user corresponds to the content of the search technology type and the search tool commonly used when the user searches the content of the non-technology type are determined. After the content type of the target search content is determined, selecting a target search tool corresponding to the content type, wherein the target search tool is a common search tool corresponding to the content type of the user, and is more fit with the habit of the user.
In some embodiments, the target retrieval mode includes a second retrieval mode, and step 102 specifically includes:
step 102A, in response to determining that the target search mode is the second search mode, sending a history acquisition request and a search content supplementation request to the first terminal, so that the first terminal reads and sends history information from local according to the history acquisition request and generates supplementation content information according to the search content supplementation request.
In particular, when the server determines that the received target retrieval mode is the second retrieval mode, a history acquisition request and a retrieval content supplement request are transmitted to the first terminal. When the first terminal receives a history acquisition request and a search content supplementing request, the first terminal reads history information locally and generates supplementing content information, and the history information and the supplementing content information are sent to a server.
And 102B, receiving the history information and the supplementary content information sent by the first terminal, and taking the history information and the supplementary content information as the associated information corresponding to the second retrieval mode.
In the implementation, the server receives the history information and the supplementary content information sent by the first terminal, and determines that the associated information corresponding to the second search mode is the history information and the supplementary content information.
In this embodiment, since the second search mode is added with the supplementary content information relative to the first search mode, which is equivalent to adding the search condition, so that the obtained search result is more targeted, the second search mode may be regarded as an accurate search mode, and the associated information corresponding to the accurate search mode is the history information and the supplementary content information. The history information is search record information when a user uses a first terminal to search before the current search, wherein each piece of search record information comprises search time, search content, search tools used for search, user information and the like, and the user information is information of a login user corresponding to the first terminal system and is used for distinguishing different users using the same search tool.
In some embodiments, the supplemental content information includes target file content in a first file in the first terminal; the target retrieval content is selected from the first file; step 103 specifically includes:
step 103A, obtaining a target content type of the target search content.
And step 103B, determining a target retrieval tool corresponding to the target content type according to the target content type and the history information.
And 103C, searching the target search content and the target file content by using the target search tool to obtain a search result.
In particular implementations, the target content types include technical types and non-technical types. The server divides the content according to a preset range, wherein the preset range can be whether the interpretation can be queried by using a professional website, if so, the content type belongs to the technical type, and if not, the content type belongs to the non-technical type.
And obtaining the target content type of the target retrieval content, and determining a corresponding target retrieval tool according to the target content type. The method comprises the following steps: when the target content type is the technical type, determining that a first retrieval tool corresponding to the technical type is the target retrieval tool according to the acquired history information. And when the target content type is a non-technical type, determining a second retrieval tool corresponding to the non-technical type as a target retrieval tool according to the acquired history information. The determining process of the first search tool and the second search tool is described in step 10321 and step 10322 and the subordinate steps thereof.
The target search content is selected by a user from a first file in the first terminal, and the file type of the first file may be word, pdf, excel or ppt. And when the supplementary content information is the target file content in the first file of the first terminal, the target file content is indicated to be also used as the content to be retrieved. And searching the target search content and the target file content by using a target search tool corresponding to the target content type of the target search content.
The target retrieval content is a screen, the target file content is voice, the screen is determined to be of a non-technical type, the target retrieval tool corresponding to the non-technical type is determined to be hundred degrees according to the history information, and the screen and the voice are retrieved by using the hundred degrees.
By the scheme, when the received supplementary content information is the target file content in the first file in the first terminal, namely, other content which is searched simultaneously with the target search content is added, the search range is further reduced, and the search accuracy is improved. Meanwhile, when the target retrieval tool is selected, the corresponding target retrieval tool is still determined according to the target content type of the target retrieval content selected by the user, and the target retrieval tool is more attached to the retrieval tool commonly used by the user.
In some embodiments, the supplemental content information includes a target file type determined from a first file in the first terminal and other files in the first terminal that are concurrently open with the first file; step 103 specifically includes:
step A, determining a target retrieval tool corresponding to the target file type according to the target file type and the history information; and searching the target search content by using a target search tool corresponding to the target file type to obtain a search result.
When the first terminal has other files which are simultaneously opened with the first file selected by the target retrieval content, the supplementary content information received by the server, which is sent by the first terminal, comprises the target file type determined according to the first file in the first terminal and the other files which are simultaneously opened with the first file in the first terminal, in addition to the target file content in the first file in the first terminal.
Determining a target retrieval tool corresponding to the type of the target file according to the history record information, wherein the specific process is as follows:
each piece of history information in the received history information comprises a file type, a search time, a search tool used for searching, user information and the like, wherein the user information refers to information of a login user corresponding to the first terminal system and is used for distinguishing different users using the same search tool.
When the user selects the target retrieval content and the target retrieval mode, the first terminal can acquire the target user information logged in the current system besides the target retrieval content and the target retrieval mode, and send the target retrieval content, the target retrieval mode and the target user information to the server. When the server sends the history acquisition request, the history acquisition request can be a request for acquiring the history information corresponding to the target user information, so that the received history information is the history information corresponding to the target user information, and the accuracy of the search result is further improved.
In another case, the retrieval time limit may be also performed in the history acquisition request sent by the server in the present application. For example, only the history of the distance from the current time is obtained within a preset time, such as three months. The history record in the time which is closer to the current time can reflect the latest preference habit of the user, and the accuracy of the search result is further improved by only requesting to acquire the history record in the time which is closer to the current time.
The method includes the steps of receiving history information, wherein each piece of history information in the received history information comprises file types, classifying the file types in the history information according to a preset range, and classifying the file types into history information with a file type of a patent type, history information with a file type of a paper type and history information with a file type of other file types, wherein the other file types are other types except the patent type and the paper type.
And acquiring the history information with the file type of the patent type, wherein each piece of history information in the history information comprises retrieval tools, and acquiring all retrieval tools contained in the history information with the file type of the patent type as retrieval tools to be selected. Counting the occurrence times of each type of search tool to be selected, and selecting the search tool to be selected with the highest use frequency as a target search tool corresponding to the patent type.
For example, the history information of the file type of patent type is obtained, and all the search tools contained in the history information are obtained as candidate search tools, including intelligent buds, patent stars, incopat, hundred degrees and Chinese knowledge networks. And counting the occurrence times of the search tools to be selected, and determining that the search tool to be selected with the highest use frequency is the Chinese knowledge network, wherein the Chinese knowledge network is used as the target search tool corresponding to the patent type.
And acquiring the historical record information with the file type of the paper type, wherein each piece of historical record information in the historical record information comprises retrieval tools, and acquiring all retrieval tools contained in the historical record information with the file type of the paper type as the retrieval tools to be selected. Counting the occurrence times of each candidate search tool, and selecting the candidate search tool with the highest use frequency as a target search tool corresponding to the paper type.
Illustratively, the history information of the file type as the target type is acquired, and all the retrieval tools contained therein are acquired as the retrieval tools to be selected, including a Chinese knowledge network, SCI, wipe network or a universal academic library. And counting the occurrence times of the to-be-selected search tools, and determining that the to-be-selected search tool with the highest use frequency is the Wipu network, wherein the Wipu network is used as the target search tool corresponding to the paper type.
The method comprises the steps of obtaining historical record information with file types of other types, wherein each piece of historical record information in the historical record information comprises retrieval tools, and obtaining all retrieval tools contained in the historical record information with the file types of other types as candidate retrieval tools. Counting the occurrence times of each type of search tool to be selected, and selecting the search tool to be selected with the highest use frequency as a target search tool corresponding to other types.
Illustratively, the file type is obtained as other types of history information, and all search tools contained in the file type are obtained as candidate search tools, including hundred degrees, must-be and Chinese knowledge network. And counting the occurrence times of the search tools to be selected, determining that the search tool to be selected with the highest use frequency is hundred degrees, and taking the hundred degrees as the target search tools corresponding to other types.
And searching the target search content according to a target search tool corresponding to the target file type to obtain a search result.
The target search content is an apple, the target file type is other file types, and the target search tool corresponding to the other file types is determined to be hundred degrees according to the history record information, so that the apple is searched by utilizing the hundred degrees.
In some embodiments, the supplemental content information includes a target file content in a first file in the first terminal, and a target file type determined from the first file in the first terminal and other files in the first terminal that are opened concurrently with the first file; step 103 specifically includes:
step 103a, determining a target retrieval tool corresponding to the target file type according to the target file type and the history information.
And 103b, searching the target search content and the target file content by using a target search tool corresponding to the target file type to obtain a search result.
In the implementation, the target file content in the first file in the first terminal is used as other content which is searched simultaneously with the target search content. And C, according to the target retrieval tool corresponding to the target file type, the specific process is described in the step A. And searching the target search content and the target file content to obtain a search result.
The target search content is a screen, the target file content is voice, the target file type is a patent type, and the target search tool corresponding to the patent type is a Chinese knowledge network according to the history information, so that the screen and voice are searched by the Chinese knowledge network.
Through the scheme, other files which are simultaneously opened with the first file of the selected target retrieval content can be identified to have a certain degree of association between the other files which are simultaneously opened and the first file, and the user can simultaneously open the files. Therefore, when the supplementary content information is acquired, the type of the target file obtained by analyzing the first file and other files opened simultaneously is acquired, and the retrieval tool corresponding to the type of the target file is determined to be the target retrieval tool according to the history information. When the target retrieval tool is used for retrieving the target retrieval content and the target file content, the accuracy of the retrieval content is improved.
In some embodiments, step 103a specifically includes:
step 103a1, performing analysis processing on the target file type, and determining a first initial target retrieval tool and first description information corresponding to the target file type, wherein the first description information is interpretation information of the first initial target retrieval tool.
Step 103a2, determining a second initial target retrieval tool and second description information corresponding to the target file type according to the target file type and the history information, wherein the second description information is interpretation information of the second initial target retrieval tool.
When the method is implemented, the server analyzes the target file type when receiving the target file type, and obtains a first initial target retrieval tool determined by the target file type and first description information of the first initial target retrieval tool, wherein the first description information is explanation information of the first initial target retrieval tool, and the explanation information comprises introduction or action of the first initial target retrieval tool.
Meanwhile, the server determines a second initial target retrieval tool and second description information corresponding to the target file type according to the history information, wherein the second description information is interpretation information of the second initial target retrieval tool, and the interpretation information comprises the second initial target retrieval tool which is determined according to the history information.
The object file type is a patent type, the first initial object search tool is a smart bud, the second initial object search tool is a Chinese knowledge network, the first description information is a professional search tool, and the second description information is a common search tool in the Chinese knowledge network.
Step 103a3, sending target search tool selection prompt information to the first terminal and/or the second terminal, so that the first terminal and/or the second terminal can display the target search tool selection prompt information, and receive feedback information corresponding to the target search tool selection prompt information, where the target search tool selection information includes the first initial target search tool, the first description information, the second initial target search tool and the second description information.
Step 103a4, receiving feedback information sent by the first terminal and/or the second terminal, and determining a search tool corresponding to the feedback information as a target search tool.
In implementation, the target search tool selection prompt information is sent to the first terminal and/or the second terminal, and the target search tool selection prompt information is displayed on the first terminal and/or the second terminal so that a user can select a target search tool. Meanwhile, the target retrieval tool selection prompt information comprises a first initial target retrieval tool and a second initial target retrieval tool, and also comprises corresponding first description information and second description information, so that references are provided for users to select the target retrieval tools. And receiving feedback information sent by the first terminal and/or the second terminal, wherein the feedback information comprises a target retrieval tool selected by a user according to the target retrieval tool selection prompt information.
The object file type is a patent type, the first initial object search tool is a smart bud, the second initial object search tool is a Chinese knowledge network, the first description information is a professional search tool, and the second description information is a common search tool in the Chinese knowledge network. And if the first initial target retrieval tool is different from the second initial target retrieval tool, sending target retrieval tool selection prompt information to the first terminal and/or the second terminal, wherein the target retrieval tool selection information comprises the first initial target retrieval tool, the first description information, the second initial target retrieval tool and the second description information.
As another example, the object file type is a patent type, the first initial object retrieval tool is a smart bud, the second initial object retrieval tool is a smart bud, the first initial object retrieval tool is identical to the second initial object retrieval tool, and the smart bud is directly used as the object retrieval tool without sending object retrieval tool selection information to the user.
In some embodiments, determining the target retrieval mode to be the second retrieval mode, after step 104, further comprises:
and step 10a, when searching is performed in the second searching mode, after a searching result is sent to the first terminal and/or the second terminal, receiving adjustment content information sent by the first terminal and/or the second terminal, wherein the adjustment content information comprises target file content in a first file in the first terminal and/or target file types determined according to the first file in the first terminal and other files which are opened simultaneously with the first file in the first terminal.
As an optional embodiment, when the adjustment content information is the target file content and the target search content in the first file in the first terminal, a content type corresponding to the target search content is obtained, and a target search tool corresponding to the content type is determined based on the history information. And searching the target search content by using the target search tool.
Illustratively, the conditions at the time of retrieval corresponding to the displayed retrieval result include a target retrieval content screen, a target file content voice, a target file content video, and a target file type of patent file. And the server receives the content adjustment information which is the target file content voice and the target file content video, determines that the content type corresponding to the screen is a non-technical type, determines that the target retrieval tool corresponding to the non-technical type is hundred degrees based on the history record information, and retrieves the screen, the voice and the video by using the hundred degrees.
As another optional embodiment, when the adjustment content information is a target file type determined according to a first file in the first terminal and other files opened simultaneously with the first file in the first terminal, determining a target retrieval tool corresponding to the target file type according to the target file type and the history information; and searching the target search content by using a target search tool corresponding to the target file type to obtain a search result.
Illustratively, the conditions at the time of retrieval corresponding to the displayed retrieval result include a target retrieval content screen, a target file content voice, a target file content video, and a target file type of patent file. And if the content adjustment information received by the server is the patent document and the type of the target document is the patent document, determining that a target retrieval tool corresponding to the patent type is a smart bud based on the history record information, and retrieving the picture screen by using the smart bud.
As a further alternative embodiment, when the adjustment content information includes a target file content in a first file in a first terminal and a target file type determined according to the first file in the first terminal and other files opened simultaneously with the first file in the first terminal, a target retrieval tool corresponding to the target file type is determined according to the target file type and the history information. And searching the target search content and the target file content by using a target search tool corresponding to the target file type to obtain a search result.
Illustratively, the conditions at the time of retrieval corresponding to the displayed retrieval result include a target retrieval content screen, a target file content voice, a target file content video, and a target file type of patent file. And if the content adjustment information received by the server is the content voice of the target file and the type of the target file is the patent file, determining a target retrieval tool corresponding to the type of the patent as a smart bud based on the history record information, and retrieving the screen and the voice by using the smart bud.
In some embodiments, after step 104, further comprising:
And step 10b, the search type selection information is sent to the first terminal and/or the second terminal so that the first terminal and/or the second terminal can receive and display the search type selection information. The first terminal and/or the second terminal can display the search type selection information while displaying the search result, so that the user can select the technology type search or the non-technology type search again to realize the switching of the search types.
For example, as shown in fig. 2, a technical search or a non-technical search may be displayed on the interface for displaying the search result, and the search result currently displayed by the searched content (such as the target search content, the target file content, and the target file type) may be displayed simultaneously as a result obtained by searching the target search content by using a search tool corresponding to the technical type. When the user selects the non-technical search, the server searches the target search content by using a second search tool corresponding to the non-technical type, and the search result is obtained again and sent to the first terminal and/or the second terminal.
In some embodiments, after step 104, further comprising:
step 10A, determining whether the search result is empty.
Step 10B, determining that the search result is null, generating first prompt information, and sending the first prompt information to the first terminal and/or the second terminal.
In the implementation, after obtaining the search result, the server determines whether the search result is empty, that is, whether corresponding content is searched. If the search result is empty, generating first prompt information, and sending the first prompt information to the first terminal and/or the second terminal. The first prompt information is information for prompting the user that the related content is not searched. Meanwhile, the user can be reminded of replacing target retrieval contents, or replacing target retrieval modes or replacing target retrieval tools.
Based on the above description, the present embodiment proposes a content retrieval method applied to a first terminal, as shown in fig. 3, where the method includes:
step 301, a content framing instruction for a first file is received.
And 302, obtaining frame selection content corresponding to the content frame selection instruction as target retrieval content.
In the implementation, the first file is displayed on the first terminal, and when the user browses the first file, the user can perform frame selection on the content in the first file. When a first terminal receives a content frame selection instruction aiming at a first file, frame selection content corresponding to the content frame selection instruction is obtained, and the frame selection content is taken as target retrieval content.
In response to receiving the mode selection instruction, mode option information is displayed, the mode option information including a first option for selecting a first retrieval mode and a second option for selecting a second retrieval mode, step 303.
Step 304, in response to the selection instruction for the target option in the mode option information, determining a target retrieval mode.
In specific implementation, the user may display mode selection information by clicking a mouse, where the clicking operation of the mouse is a mode selection instruction, and the mode selection information includes a first option for selecting a first search mode and a second option for selecting a second search mode. And the user clicks the mouse again to select the target retrieval mode, and the operation of clicking the mouse is a selection instruction aiming at the target option in the mode option information.
Step 305, sending the target search content and the target search mode to a server, so that the server can search the target search content according to the target search mode to obtain a search result.
And 306, receiving and displaying the search result sent by the server.
In the specific implementation, the obtained target retrieval content and the target retrieval mode selected by the user are sent to the server, and the server retrieves the target retrieval content according to the target retrieval mode to obtain a retrieval result and sends the retrieval result to the first terminal. And the first terminal receives and displays the search result sent by the server for the user to check.
In some embodiments, the method further comprises:
and step 30A, receiving a retrieval object supplementing request sent by the server.
Step 30B, identifying page number information corresponding to the target search content in a first file, and first document content contained in the page number information, wherein the target search content is selected from the first file.
And step 30C, selecting the document content contained in the preset page number adjacent to the page number information as second document content.
Step 30D, taking the first document content and the second document content as contents to be detected, performing traversal processing on the contents to be detected, and counting the repetition rate of each word contained in the contents to be detected.
And step 30E, after the repetition rate in the content to be detected is sequenced from high to low, the forward preset number of content is selected as target file content, and the target file content is used as supplementary content information to be sent to a server for the server to search the target search content based on the supplementary content information.
In the implementation process, the first terminal receives a search object supplement request sent by the server, identifies page number information of target search contents in a first file, and acquires all contents in the page number information as first document contents. And selecting the document content contained in the preset page number adjacent to the page number information as second document content. And taking the first document content and the second document content as contents to be detected, and counting the occurrence times of each word in the contents to be detected to obtain the repetition rate corresponding to each word. And sequencing all the words according to the repetition rate from high to low, and selecting the words with the preset quantity as the content of the target file, namely the supplementary content information.
Illustratively, the target search content is a screen, the preset number of pages is one, and the preset number is one. And if the screen selected by the user is located on the fourth page of the first file, acquiring all the content contained in the fourth page as the content of the first document. And acquiring all the contents of the third page and the fifth page which are adjacent to the fourth page as second document contents, counting the occurrence times of all words in the third page, the fourth page and the fifth page, sequencing the repetition rate from high to low, and selecting the word with the highest repetition rate as target document contents.
In some embodiments, the method further comprises:
and step 30a, receiving a search object supplement request sent by the server, and judging whether other files which are opened simultaneously except the first file exist or not.
Step 30b, determining that other files exist, and acquiring the number of the other files.
Step 30c, determining the number of the other files as one, and taking the first file and the other files as target files; or determining that the number of the other files is multiple, selecting the other files with preset numbers as initial target files, and taking the first file and the initial target files as target files.
And step 30d, analyzing and processing the file content of the target file to obtain the target file type corresponding to the target file.
And step 30e, the target file type is sent to a server as supplementary content information, so that the server can search the target search content based on the supplementary content information.
In the implementation, the first terminal receives the search object supplement request sent by the server and judges whether other files which are opened simultaneously with the first file exist. If other files exist, the number of the other files is judged. And when only one other file exists, taking the first file and the other file as target files. When a plurality of other files exist, selecting a preset number of other files as initial target files, and taking the first file and the initial target files as target files.
The method for selecting the initial target file can specifically be to obtain the opening time of each other file, sort the other files from early to late according to the opening time, and select the other files with the preset number and the front sorting as the initial target file.
The method for selecting the initial target file may specifically be that all other files are displayed, where the displayed content may be the file names of the other files, as shown in fig. 4. And receiving feedback information sent by a user, wherein the feedback information comprises target other files selected by the user, and the target other files are used as initial target files.
And analyzing the file content of the target file, if the first page of the target file is acquired, identifying the first page, judging whether the first page accords with the patent type or the paper type, and if the first page does not accord with the patent type or the paper type, determining that the target file type is other file types.
The method includes the steps of judging whether patent related information such as an application number, an applicant, a patent application and the like exists in a home page, and if so, determining that the type of the target file is a patent type.
For another example, whether paper related information such as paper, school information and the like exists in the top page is judged, and if the paper related information exists, the type of the target file is determined to be the paper type.
In some embodiments, the method further comprises:
receiving and displaying search type selection information sent by a server;
receiving a search type selection instruction sent by a user, obtaining a search type corresponding to the search type selection instruction,
in specific implementation, the first terminal receives the search type selection information sent by the server, and displays technical search or non-technical search on an interface for displaying results, wherein the currently displayed search results are obtained by searching the target search content by using a search tool corresponding to the technical type. When the user selects non-technical search, the first terminal receives a search type selection instruction, acquires the corresponding non-technical search and sends the non-technical search to the server. And the server retrieves the target retrieval content by using a second retrieval tool corresponding to the non-technical type, and then retrieves the retrieval result and sends the retrieval result to the first terminal.
Based on the above description, the present embodiment proposes a content retrieval method applied to a second terminal, as shown in fig. 5, where the method includes:
step 501, receiving a search result corresponding to target search content sent by a server, and displaying the search result and search type selection information.
Step 502, in response to receiving a search type selection instruction corresponding to the search type selection information, obtaining a target search type contained in the search type selection instruction.
Step 503, the target search type is sent to a server, so that the server can search the target search content according to the target search type.
In the implementation, the second terminal receives the search type selection information sent by the server, and displays technical search or non-technical search on the interface of the display result, wherein the currently displayed search result is a result obtained by searching the target search content by using a search tool corresponding to the technical type. When the user selects the non-technical search, the second terminal receives a search type selection instruction, acquires the corresponding non-technical search and sends the non-technical search to the server. And the server retrieves the target retrieval content by using a second retrieval tool corresponding to the non-technical type, and then retrieves the retrieval result and sends the retrieval result to the second terminal.
It should be noted that the method of the embodiments of the present disclosure may be performed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the methods of embodiments of the present disclosure, the devices interacting with each other to accomplish the methods.
It should be noted that the foregoing describes some embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, the present disclosure also provides a content retrieval device, corresponding to the method of any embodiment, provided in the server.
Referring to fig. 6, fig. 6 is a content retrieval device of an embodiment, including:
a search content receiving module 601 configured to receive a target search content and a target search mode sent by a first terminal, where the first terminal is a terminal that establishes a connection with a server, and the target search mode is a search mode adopted when searching the target search content;
an associated information obtaining module 602, configured to obtain associated information corresponding to the target retrieval mode according to the target retrieval mode;
a search result generation module 603 configured to search the target search content according to the target search mode and the association information, to obtain a search result;
a search result transmitting module 604 configured to transmit the search result to the first terminal, and/or a second terminal, wherein the second terminal is another terminal that establishes a connection with the server.
In some embodiments, the target retrieval mode includes a first retrieval mode, and the association information obtaining module 602 specifically includes:
a history acquisition request transmitting unit configured to transmit a history acquisition request to the first terminal in response to determining that the target retrieval mode is the first retrieval mode, so that the first terminal reads and transmits history information from a local according to the history acquisition request;
And the history information receiving unit is configured to receive the history information sent by the first terminal, and take the history information as the associated information corresponding to the first retrieval mode.
In some embodiments, the search result generation module 603 specifically includes:
a content type acquisition unit configured to acquire a target content type of the target retrieval content;
a search tool determination unit configured to determine a target search tool corresponding to the target content type according to the target content type and the history information;
and the search result generation unit is configured to search the target search content by using the target search tool to obtain a search result.
In some embodiments, the target content type includes a technology type and a non-technology type, and the search tool determining unit specifically includes:
a first search tool determining subunit configured to determine, in response to determining that the target content type is the technology type, that a first search tool corresponding to the technology type is the target search tool according to the history information;
and the second retrieval tool determination subunit is configured to determine that a second retrieval tool corresponding to the non-technical type is the target retrieval tool according to the history information in response to determining that the target content type is the non-technical type.
In some embodiments, the first retrieval tool determination subunit is specifically configured to determine a plurality of candidate retrieval tools corresponding to the technology type according to the history information; and determining the candidate search tool with the highest use frequency among a plurality of candidate search tools corresponding to the technical type as the first search tool according to the historical record information.
In some embodiments, the second retrieval tool determination subunit is specifically configured to determine a plurality of candidate retrieval tools corresponding to the non-technology type according to the history information; and determining the candidate search tool with the highest use frequency in the plurality of candidate search tools corresponding to the non-technical type as the second search tool according to the historical record information.
In some embodiments, the target retrieval mode includes a second retrieval mode, and the association information obtaining module 602 specifically includes:
a request transmitting unit configured to transmit a history acquisition request and a search content supplementation request to the first terminal in response to determining that the target search mode is a second search mode, to cause the first terminal to locally read and transmit history information according to the history acquisition request and generate supplementation content information according to the search content supplementation request;
And the associated information determining unit is configured to receive the history information and the supplementary content information sent by the first terminal, and takes the history information and the supplementary content information as associated information corresponding to the second retrieval mode.
In some embodiments, the supplemental content information includes target file content in a first file in the first terminal; the target retrieval content is selected from the first file; the search result generation module 603 specifically includes:
a content type acquisition unit configured to acquire a target content type of the target retrieval content;
a search tool determination unit configured to determine a target search tool corresponding to the target content type according to the target content type and the history information;
and the search result generation unit is configured to search the target search content and the target file content by using the target search tool to obtain a search result.
In some embodiments, the supplemental content information includes a target file content in a first file in the first terminal, and a target file type determined from the first file in the first terminal and other files in the first terminal that are opened concurrently with the first file; the search result generation module 603 specifically includes:
A search tool determination unit configured to determine a target search tool corresponding to a target file type according to the target file type and the history information;
and a search result generation unit configured to search the target search content and the target file content by using a target search tool corresponding to the target file type to obtain a search result.
In some embodiments, the search tool determination unit specifically includes:
a first initial target retrieval tool determining subunit configured to analyze the target file type, and determine a first initial target retrieval tool and first description information corresponding to the target file type, where the first description information is interpretation information of the first initial target retrieval tool;
a second initial target retrieval tool determining subunit configured to determine a second initial target retrieval tool and second description information corresponding to a target file type according to the target file type and the history information, wherein the second description information is interpretation information of the second initial target retrieval tool;
a target retrieval tool selection prompt message sending subunit configured to send target retrieval tool selection prompt messages to the first terminal and/or the second terminal, so that the first terminal and/or the second terminal can display the target retrieval tool selection prompt messages, and receive feedback messages corresponding to the target retrieval tool selection prompt messages, wherein the target retrieval tool selection messages comprise the first initial target retrieval tool, the first description message, the second initial target retrieval tool and the second description message;
And the target retrieval tool determining subunit is configured to receive feedback information sent by the first terminal and/or the second terminal and determine that a retrieval tool corresponding to the feedback information is a target retrieval tool.
Based on the same inventive concept, the present disclosure also provides a content retrieval device, corresponding to the method of any embodiment, provided in the first terminal.
Referring to fig. 7, fig. 7 is a content retrieval device of an embodiment, including:
a content box selection instruction receiving module 701 configured to receive a content box selection instruction for a first file;
a frame selection content obtaining module 702, configured to obtain frame selection content corresponding to the content frame selection instruction as target search content;
a mode option information display module 703 configured to display mode option information including a first option for selecting a first retrieval mode and a second option for selecting a second retrieval mode in response to receiving a mode selection instruction;
a target retrieval mode determination module 704 configured to determine a target retrieval mode in response to a selection instruction for a target option in the mode option information;
the information sending module 705 is configured to send the target search content and the target search mode to a server, so that the server can search the target search content according to the target search mode to obtain a search result;
The search result receiving module 706 is configured to receive and display the search result sent by the server.
In some embodiments, the apparatus further includes a supplemental content information generation module, the supplemental content information generation module specifically including:
a search object supplement request receiving unit configured to receive a search object supplement request transmitted by the server;
a first document content determination unit configured to identify page number information corresponding to the target search content in a first file, and first document content contained in the page number information, wherein the target search content is selected from the first file;
a second document content determining unit configured to select, as second document content, document content contained in a preset number of pages adjacent to the page number information;
the repetition rate acquisition unit is configured to take the first document content and the second document content as contents to be detected, perform traversal processing on the contents to be detected, and count the repetition rate of each word contained in the contents to be detected;
and the target file content determining unit is configured to select the forward preset number of contents as target file contents after the repetition rate in the contents to be detected is ranked from high to low, and send the target file contents as supplementary content information to a server for the server to search the target search content based on the supplementary content information.
Based on the same inventive concept, the present disclosure also provides a content retrieval device, corresponding to the method of any embodiment, provided in the first terminal.
Referring to fig. 8, fig. 8 is a content retrieval device of an embodiment, including:
a search result receiving module 801 configured to receive a search result corresponding to the target search content sent by the server, and display the search result and search type selection information;
a search type selection instruction receiving module 802 configured to obtain a target search type contained in a search type selection instruction in response to receiving the search type selection instruction corresponding to the search type selection information;
a target search type sending module 803 configured to send the target search type to a server, so that the server can search the target search content according to the target search type.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of the various modules may be implemented in the same one or more pieces of software and/or hardware when implementing the present disclosure.
The device of the foregoing embodiment is configured to implement the corresponding content retrieval method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the present disclosure also provides an electronic device corresponding to the method of any embodiment, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements the content retrieval method of any embodiment when executing the program.
Fig. 9 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement the corresponding content retrieval method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the content retrieval method according to any of the above embodiments, corresponding to any of the above embodiments.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The storage medium of the above embodiment stores computer instructions for causing the computer to perform the content retrieval method according to any one of the above embodiments, and has the advantages of the corresponding method embodiments, which are not described herein.
It will be appreciated that before using the technical solutions of the various embodiments in the disclosure, the user may be informed of the type of personal information involved, the range of use, the use scenario, etc. in an appropriate manner, and obtain the authorization of the user.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Therefore, the user can select whether to provide personal information to the software or hardware such as the electronic equipment, the application program, the server or the storage medium for executing the operation of the technical scheme according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative, and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the disclosure, including the claims, is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined under the idea of the present disclosure, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in details for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present disclosure. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present disclosure, and this also accounts for the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform on which the embodiments of the present disclosure are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The disclosed embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalents, improvements, and the like, which are within the spirit and principles of the embodiments of the disclosure, are intended to be included within the scope of the disclosure.

Claims (14)

1. A content retrieval method, applied to a server, comprising:
receiving target retrieval content and a target retrieval mode sent by a first terminal, wherein the first terminal is a terminal which establishes connection with the server, and the target retrieval mode is a retrieval mode adopted when retrieving the target retrieval content;
acquiring associated information corresponding to the target retrieval mode according to the target retrieval mode;
according to the target retrieval mode and the associated information, retrieving the target retrieval content to obtain a retrieval result;
And sending the search result to the first terminal and/or a second terminal, wherein the second terminal is another terminal which establishes connection with the server.
2. The method of claim 1, wherein the target retrieval pattern comprises a first retrieval pattern,
the obtaining, according to the target retrieval mode, association information corresponding to the target retrieval mode includes:
in response to determining that the target retrieval mode is the first retrieval mode, sending a history acquisition request to the first terminal, so that the first terminal reads and sends history information from local according to the history acquisition request;
and receiving the history information sent by the first terminal, and taking the history information as the associated information corresponding to the first retrieval mode.
3. The method according to claim 2, wherein the retrieving the target retrieval content according to the target retrieval mode in combination with the association information to obtain a retrieval result includes:
acquiring a target content type of the target retrieval content;
determining a target retrieval tool corresponding to the target content type according to the target content type and the history information;
And searching the target search content by using the target search tool to obtain a search result.
4. The method of claim 3, wherein the target content type comprises a technology type and a non-technology type,
the determining, according to the target content type and the history information, a target search tool corresponding to the target content type includes:
in response to determining that the target content type is the technical type, determining that a first retrieval tool corresponding to the technical type is the target retrieval tool according to the historical record information;
and in response to determining that the target content type is the non-technical type, determining that a second retrieval tool corresponding to the non-technical type is the target retrieval tool according to the historical record information.
5. The method of claim 4, wherein determining, from the history information, that the first search tool corresponding to the technology type is the target search tool comprises: determining a plurality of to-be-selected retrieval tools corresponding to the technical type according to the history information; determining a to-be-selected retrieval tool with highest use frequency among a plurality of to-be-selected retrieval tools corresponding to the technical type as the first retrieval tool according to the history information;
The determining that the second search tool corresponding to the non-technical type is the target search tool according to the history information includes: a plurality of search tools to be selected corresponding to the non-technical type according to the history information; and determining the candidate search tool with the highest use frequency in the plurality of candidate search tools corresponding to the non-technical type as the second search tool according to the historical record information.
6. The method according to claim 1, wherein the target retrieval pattern includes a second retrieval pattern, and the acquiring association information corresponding to the target retrieval pattern according to the target retrieval pattern includes:
in response to determining that the target retrieval mode is a second retrieval mode, sending a history acquisition request and a retrieval content supplementation request to the first terminal, so that the first terminal reads and sends history information from local according to the history acquisition request and generates supplementation content information according to the retrieval content supplementation request;
and receiving the history information and the supplementary content information sent by the first terminal, and taking the history information and the supplementary content information as the associated information corresponding to the second retrieval mode.
7. The method of claim 6, wherein the supplementary content information includes target file content in a first file in the first terminal; the target retrieval content is selected from the first file; and searching the target search content according to the target search mode and combining the associated information to obtain a search result, wherein the search method comprises the following steps:
acquiring a target content type of the target retrieval content;
determining a target retrieval tool corresponding to the target content type according to the target content type and the history information;
and searching the target search content and the target file content by using the target search tool to obtain a search result.
8. The method of claim 6, wherein the supplemental content information includes target file content in a first file in the first terminal, and a target file type determined from the first file in the first terminal and other files in the first terminal that are opened simultaneously with the first file; and searching the target search content according to the target search mode and combining the associated information to obtain a search result, wherein the search method comprises the following steps:
Determining a target retrieval tool corresponding to the target file type according to the target file type and the history information;
and searching the target search content and the target file content by using a target search tool corresponding to the target file type to obtain a search result.
9. The method of claim 8, wherein determining a target retrieval tool corresponding to the target file type based on the target file type and the history information comprises:
analyzing and processing the target file type, and determining a first initial target retrieval tool and first description information corresponding to the target file type, wherein the first description information is interpretation information of the first initial target retrieval tool;
determining a second initial target retrieval tool and second description information corresponding to the target file type according to the target file type and the history record information, wherein the second description information is interpretation information of the second initial target retrieval tool;
sending target retrieval tool selection prompt information to the first terminal and/or the second terminal so that the first terminal and/or the second terminal can display the target retrieval tool selection prompt information, and receiving feedback information corresponding to the target retrieval tool selection prompt information, wherein the target retrieval tool selection information comprises the first initial target retrieval tool, the first description information, the second initial target retrieval tool and the second description information;
And receiving feedback information sent by the first terminal and/or the second terminal, and determining a search tool corresponding to the feedback information as a target search tool.
10. A retrieval method, applied to a first terminal, comprising:
receiving a content framing instruction for a first file;
acquiring frame selection content corresponding to the content frame selection instruction as target retrieval content;
in response to receiving the mode selection instruction, displaying mode option information including a first option for selecting a first retrieval mode and a second option for selecting a second retrieval mode;
determining a target retrieval mode in response to a selection instruction for a target option in the mode option information;
the target retrieval content and the target retrieval mode are sent to a server, so that the server retrieves the target retrieval content according to the target retrieval mode to obtain a retrieval result;
and receiving and displaying the search result sent by the server.
11. The method as recited in claim 10, further comprising:
receiving a retrieval object supplementing request sent by a server;
identifying page number information corresponding to the target search content in a first file and first document content contained in the page number information, wherein the target search content is selected from the first file;
Selecting document contents contained in a preset page number adjacent to the page number information as second document contents;
taking the first document content and the second document content as contents to be detected, performing traversal processing on the contents to be detected, and counting the repetition rate of each word contained in the contents to be detected;
and selecting the forward preset number of contents as target file contents after the repetition rate in the contents to be detected is ranked from high to low, and sending the target file contents as supplementary content information to a server for the server to search the target search contents based on the supplementary content information.
12. A content retrieval method, applied to a second terminal, comprising:
receiving a search result corresponding to target search content sent by a server, and displaying the search result and search type selection information;
responding to receiving a search type selection instruction corresponding to the search type selection information, and acquiring a target search type contained in the search type selection instruction;
and sending the target retrieval type to a server so that the server can retrieve the target retrieval content according to the target retrieval type.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 9, or the method of any one of claims 10 to 11, or the method of claim 12 when the program is executed.
14. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 9, or the method of any one of claims 10 to 11, or the method of claim 12.
CN202311629894.6A 2023-11-30 2023-11-30 Content retrieval method, system, electronic device and storage medium Pending CN117609634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311629894.6A CN117609634A (en) 2023-11-30 2023-11-30 Content retrieval method, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311629894.6A CN117609634A (en) 2023-11-30 2023-11-30 Content retrieval method, system, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117609634A true CN117609634A (en) 2024-02-27

Family

ID=89951279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311629894.6A Pending CN117609634A (en) 2023-11-30 2023-11-30 Content retrieval method, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117609634A (en)

Similar Documents

Publication Publication Date Title
US11169991B2 (en) System and method for extracting and sharing application-related user data
US20190251143A1 (en) Web page rendering method and related device
CN108717437B (en) Search result display method and device and storage medium
US11868710B2 (en) Method and apparatus for displaying a text string copied from a first application in a second application
CN105335423B (en) Method and device for collecting and processing user feedback of webpage
US20120296746A1 (en) Techniques to automatically search selected content
US20210166014A1 (en) Generating document summary
CN115982376B (en) Method and device for training model based on text, multimode data and knowledge
CN111274781A (en) Table display method and device, storage medium and electronic equipment
EP3961426A2 (en) Method and apparatus for recommending document, electronic device and medium
KR102551343B1 (en) Electric apparatus and method for control thereof
CN114153791A (en) File fast retrieval method and device, electronic equipment and storage medium
CN110489032B (en) Dictionary query method for electronic book and electronic equipment
KR20130102854A (en) Search system and operation method thereof
CN117609634A (en) Content retrieval method, system, electronic device and storage medium
KR20200089123A (en) Method of providing shared data based on device attribute and electronic device therefor
CN113360127B (en) Audio playing method and electronic equipment
CN110580486A (en) Data processing method and device, electronic equipment and readable medium
CN114626332A (en) Content display method and device and electronic equipment
CN113779362A (en) Data searching method and device
CN114239501A (en) Contract generation method, apparatus, device and medium
US20190179859A1 (en) Method and apparatus for managing navigation of web content
CN108319640B (en) Method and device for displaying vehicle source according to user preference
US20130080877A1 (en) Sequential website moving system using voice guide message
KR102461825B1 (en) Apparatus for Searching Fraudulent News and Driving Method Thereof, and Computer Readable Recording 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