WO2020097997A1 - 一种搜索结果展示方法和装置 - Google Patents

一种搜索结果展示方法和装置 Download PDF

Info

Publication number
WO2020097997A1
WO2020097997A1 PCT/CN2018/118381 CN2018118381W WO2020097997A1 WO 2020097997 A1 WO2020097997 A1 WO 2020097997A1 CN 2018118381 W CN2018118381 W CN 2018118381W WO 2020097997 A1 WO2020097997 A1 WO 2020097997A1
Authority
WO
WIPO (PCT)
Prior art keywords
keywords
information
chapter
keyword
search result
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.)
Ceased
Application number
PCT/CN2018/118381
Other languages
English (en)
French (fr)
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.)
Shandong University
Original Assignee
Shandong University
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 Shandong University filed Critical Shandong University
Publication of WO2020097997A1 publication Critical patent/WO2020097997A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Definitions

  • the present disclosure relates to the technical field of human-computer interaction, and in particular to a method and device for displaying search results.
  • Text search is a common operation in the daily document reading and editing process, which may involve multiple document types, such as articles, emails, codes, etc.
  • the user searches by providing keywords, and then the reader or document editing software will jump to the location that contains the keyword in the document and highlight the keyword. If there are multiple places to change keywords in the document, users can use the shortcut keys to orderly jump between the positions where each keyword appears. In order to achieve the purpose of traversing the content of the article and looking for the target content.
  • (2) Result list The search results are displayed in the form of a list, where each search result contains a small amount of document content context where the keyword is located. It is convenient for the user to judge whether the article position where the item is located contains the target content by browsing the context information. This form can be found in Microsoft Word, Adobe Acrobat and other software.
  • the context interception strategy can ensure that users can have keywords in the field of view under different window sizes.
  • this method allows users to see a small amount of context information and filter out most irrelevant search results by browsing the list, the method still has the following deficiencies: 1) The overall structure of the article is not reflected in the search results, so the user cannot pass the article The structure information realizes the large-scale screening of the search results, and the result list must be browsed in sequence, with more interactions; 2) The interception of the content of each entry in the search result list will also affect the efficiency of the method.
  • Software such as Microsoft Word and Adobe Acrobat simply intercept a fixed-length context; 3) Each entry in the list highlights only one keyword position. When a search keyword appears multiple times in the same context, the context Will appear repeatedly in consecutive entries to highlight different keyword positions, causing redundancy.
  • Page a list of thumbnails of pages displayed in the search window. Each item in the list is a page containing keywords.
  • the keywords will be highlighted in the thumbnail and the text at the same time, but because the zoom ratio of the thumbnail is large, the highlight information is very inconspicuous in the thumbnail.
  • the user mainly filters and pages through some visual information that the thumbnail can provide. Find, such as the position of the picture on the page, the layout of the text content, etc. This method can be found in Microsoft Word, Preview (Mac version), etc., where Preview (Mac version) supplements this form, adding the number of keywords included in the page to each entry, and the first two to three on the page Contextual information where the keywords are located. For users who are familiar with the content of the article, this method has certain advantages.
  • the image information (picture location, layout style, etc.) in the thumbnail will provide users with some memory anchors, which is convenient for users to quickly locate.
  • the thumbnail method seems to have little effect or even no useful effect on search.
  • the present disclosure provides a search result display method and device, which generates a structure list containing article structure information, and the user can implement a large-scale screening of search results through the article structure information to improve interaction efficiency.
  • a method for displaying search results includes the following steps:
  • the position information of the entry information it is inserted into the tree structure, and a structure list is generated and displayed to the user.
  • steps of traversing the full-text search keywords, recording the chapter titles where the keywords appear, and generating the corresponding tree structure include:
  • a tree structure of the keywords is generated, and the chapter titles containing the keywords in each chapter content are the internal nodes of the tree structure.
  • the step of cutting out the information of all entries containing keywords includes:
  • keywords appear in multiple places in the entry information, mark and highlight all the keywords that appear in the entry information.
  • the remaining entry information after excluding the duplicate entry information is added to the corresponding chapter titles in the tree structure according to the chapter content to which they belong to form a structure list with chapter structure information.
  • it also includes: typesetting the structure list according to the size of the search result window.
  • the step of typesetting the structure list according to the size of the search result window includes:
  • a terminal device includes an input-output device, a processor, and a computer-readable storage medium.
  • the input-output device is used to receive keywords input by a user.
  • the processor is used to implement various instructions.
  • the computer-readable storage medium is used to store multiple Instructions for performing the search result display method as described above.
  • the present disclosure organizes the search results in an orderly display in the search results window, reducing the number of scrolling interactions with the text; adding the structural information of the article to the search results to allow the user to have a rough guess about the content of the article or be familiar with the article In the case of content, you can quickly locate the corresponding chapter, reducing the number of interactions with search results in other chapters;
  • the present disclosure eliminates redundant information such as chapters that do not appear in search results and duplicate entry information, shortens the content length of the search result window, reduces interactions such as clicking and scrolling in the window, and improves the efficiency of interaction;
  • the article structure in the search results displayed in this disclosure allows the user to have an overall grasp of the distribution of the search content in the article, which is beneficial to the user's grasp of the overall structure of the article, reduces the user's access to redundant information, and improves information access effectiveness.
  • FIG. 1 is a flowchart of a search result display method according to one or more embodiments
  • FIG. 2 is an example diagram of a tree structure according to one or more embodiments
  • FIG. 3 is a flowchart of a method for extracting the entire sentence content where keywords are located and highlighting all keywords in the sentence according to one or more embodiments;
  • FIG. 4 is an exemplary diagram of entry information according to one or more embodiments.
  • 5 is an example diagram of a structure list according to one or more embodiments.
  • FIG. 6 is a sample diagram showing search results according to one or more embodiments.
  • One or more embodiments provide a search result display method to improve document search efficiency.
  • the method includes the following steps:
  • step S101 The specific implementation of the step S101 is as follows:
  • the tree structure is composed of each chapter title of the document, and the chapter titles that do not contain keywords in the tree structure are removed from the tree structure according to the recorded chapter titles where keywords appear, so as to simplify the tree structure and get rid of The tree structure of redundant information is shown in Figure 2.
  • the chapter title that does not contain the search keyword in the tree structure is eliminated to simplify the tree structure, and the tree structure with redundant information removed is obtained, so that the user can quickly locate the corresponding chapter , Reducing the number of interactions with search keywords in other chapters, excluding chapters where no search keywords appear, shortening the content length of search results, and improving the efficiency of interaction.
  • FIG. 2 shows a tree structure for the existing headlines, including all chapter headings in the document; (b) a tree structure that removes redundant information, which only contains the search keywords in the chapter content Chapter title.
  • step 102 The specific implementation of the step 102 is as follows:
  • S102-1 traverse the entire content of the document from the beginning of the paragraph to the end of the paragraph according to each position where the keyword appears, looking for the end of the sentence, such as a period, question mark, exclamation mark, etc .; extract the content of the sentence where the keyword is located, And save all the whole sentence content containing keywords, and use the extracted whole sentence content as the entry information of this keyword.
  • S102-2 traverse each entry information again to find whether keywords appear in more than one place in the entry information. If keywords appear in more than one place in the entry information, mark all the keywords that appear in the entry information and highlight All keywords in the entry information.
  • the process of extracting the entire sentence content where the keyword is located and highlighting all the keywords in the sentence is shown in FIG. 3, traversing the entire content containing the keyword, looking for the end tag of the entire sentence, and extracting Entire sentence content and save it, use the entire sentence content as an item of information, and then highlight all keywords in the entire sentence content.
  • Each entry in the existing search result list only highlights one keyword position at a time, and there are duplicate entries.
  • all search keywords appearing in one entry information are all highlighted, and the Item information is displayed only once, and duplicate item information is eliminated.
  • (a) is an existing search result list.
  • search keywords that is, the item information appears three times repeatedly, forming redundancy
  • (b) is The search result list with redundant information removed, that is, highlighting all the search keywords in the intercepted item information, improves the interaction efficiency.
  • step S104 Insert the entry information as a leaf node into the tree structure generated in step S101 to form a structure list.
  • step S104 The specific implementation manner of the step S104 is as follows:
  • the entry information obtained in step 103 is added to the corresponding chapter title in the tree structure according to the content of the chapter, as a leaf node. At this time, a structure list with chapter structure information is formed, as shown in FIG. 5, and displayed to the user.
  • the structure list includes chapter titles and chapter structure information composed of a plurality of item information. This structure list allows users to quickly locate the corresponding chapters when they have a rough guess about the document content or is familiar with the document content, reducing the number of interactions with search results in other chapters.
  • step 105 the structure list is typeset according to the size of the search result window.
  • step S105 The specific implementation of the step S105 is as follows:
  • Step 106 Display the typeset structure list to the client.
  • FIG. 6 The search result of searching for the "rose" keyword in the document using the search result display method proposed in this embodiment is shown in FIG. 6.
  • the right side is the body part
  • the left side is the search result window.
  • the bold and background text content is the chapter title.
  • the triangle arrow before the chapter title indicates that the chapter content can be folded, and the entry information is separated by a horizontal line
  • the search keywords in the entry information are emphasized by bolding.
  • One or more embodiments also provide a computer-readable storage medium in which multiple instructions are stored, characterized in that the instructions are suitable for being loaded by the processor of the terminal device and execute the search result display method as described above .
  • One or more embodiments further provide a terminal device, including an input and output device, a processor, and a computer-readable storage medium, the input and output device is used to receive keywords input by a user, and the processor is used to implement various instructions;
  • the computer-readable storage medium is used to store a plurality of instructions for executing the search result display method as described above.
  • the article structure in the displayed search results allows the user to have an overall grasp of the distribution of the search content in the article, which is beneficial to the user's grasp of the overall structure of the article, reduces the user's access to redundant information, and improves the efficiency of information acquisition.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种搜索结果展示方法和装置,该方法通过获取用户输入的关键词,遍历全文搜索关键词,记录关键词出现的章节标题,并生成相应的树形结构;根据每处关键词位置,依次从文档中截取出包含关键词的所有条目信息,并剔除重复的条目信息;按照条目信息的位置信息插入到树形结构中,生成结构列表,展示给用户。该方法生成包含文章结构信息结构列表,用户可通过文章结构信息实现对搜索结果的大范围的筛选,提升交互效率。

Description

一种搜索结果展示方法和装置 技术领域
本公开涉及人机交互技术领域,具体涉及一种搜索结果展示方法和装置。
背景技术
文本搜索是在日常的文档阅读以及编辑过程中的一种常用操作,其中可能涉及到多种文档类型,比如文章,邮件,代码等。在文本搜索的过程中,用户通过提供关键词进行搜索,之后阅读器或者文档编辑软件会跳转到文档中包含该关键词的位置并高亮该关键词。如果文档中有多处出现改关键词,用户可以通过快捷键在各个关键词出现的位置之间进行有序的跳转。以此达到遍历文章内容并寻找目标内容的目的。
在常见的文档类型中,一次搜索常常会返回多处搜索结果。显然,仅仅通过快捷键在文档内容中进行跳转是十分低效的。因此在我们日常使用的文档阅读或者编辑软件中,通常会提供一个独立的搜索结果展示窗口用以归纳展示所有的搜索结果。常见的搜索结果展示形式分为以下4种:
(1)高亮:在文档中高亮关键词出现的位置,同时在滚动条上标记关键词出现的位置。该形式多出现在代码编辑软件中,比如Visual Studio,VSCode,Sublime等。
(2)结果列表:搜索结果以列表的形式进行展示,其中每一条搜索结果包含该处关键词所在少量文档内容上下文。以便于用户通过浏览该上下文信息判断该条目所在的文章位置是否包含目标内容。该形式可见于Microsoft Word,Adobe Acrobat等软件中。
但是在不同的软件中,虽然形式相同,但是在上下文截取的策略上却略有不同,其中Microsoft Word选择关键词前后共90个左右字符长度的上下文,并尽可能保持关键词出现在中间位置;如果遇到段首或者段尾则优先保证上下文长度;如整段长度不足90则保留整段作为该条目的上下文。而每个条目的内容所占行数根据窗口大小改变而改变;Adobe Acrobat同样会截取定长的上下文长度,但是它会保持关键词出现在该条目中的第一个或者第二个词的位置,因为Acrobat固定的每个条目内容以一行进行展示,与窗口大小无关,所以该上下文截取策略可以保证用户在不同的窗口大小的情况下,关键词都可以出现在视野范围内。虽然该方法可以使得用户看到少量上下文信息,通过浏览列表可以过滤掉多数不相关的搜索结果,但是该方法仍存在以下不足:1)文章整体结构在搜索结果中没有体现,因此用户无法通过文章结构信息实现对搜索结果的大范围的筛选,必须按顺序浏览结果列表,交互次数较多;2)搜索结果列表中每个条目中的内容的截取也将对该方法的效率造成影响,现有软件如Microsoft Word,Adobe Acrobat中都是简单的截取固定长度的上下文;3)列表中的每一个条目只高亮一处关键词位置,当一段相同的上下文多次出现搜索关键词的时候,该上下文会重复出现在连续的条目中以高亮不同的关键词位置,造成冗余。
(3)标题:文章完整的目录结构会在搜索窗口中展示给用户,包含关键词的章节会被高亮。通过点击章节标题,正文内容会跳转至相应章节的开头位置,正文中关键词同样会被高亮,之后通过滚动条滚动正文寻找目标内容。该方法可见于Microsoft Word。该方法能够让用户过滤掉大量的无关章节内容并快速到达相关章节,一定程度上提高了搜索的效率和准确度,但是用户无法直观的看到正文中的上下文信息,跳转功能也只是跳转到相应的章节的开头位置,需要 通过大量的滚动正文寻找目标内容。因此在文章较长且搜索任务较为复杂的情况下,用户的交互效率仍旧相对低下。
(4)页面:即在搜索窗口中展示页面的缩略图列表,列表中每一项为包含关键词的页面。关键词会同时在缩略图以及正文中高亮,但是因为缩略图缩放比例较大,高亮信息在缩略图中显得非常不明显,用户主要通过缩略图所能够提供的一些视觉信息对页面进行筛选和查找,比如页面中图片的位置,文字内容的排版等等。该方式可见于Microsoft Word,Preview(Mac版)等,其中Preview(Mac版)对该形式有所补充,在每个条目中增加了该页面所包含的关键词数量,以及页面中前两到三个关键词所在的上下文信息。对于对文章内容熟悉的用户而言,该方式存在一定的优势,缩略图中的图像信息(图片位置,排版样式等)会为用户提供一些记忆锚点,方便用户快速定位。但是对文章内容相对生疏的用户以及搜索任务相对复杂的情况下,缩略图的方法就显得收效甚微甚至对搜索起不到有益作用。
综上所述,目前对于以高亮、结果列表、标题或页面形式展示搜索结果存在的问题,尚缺乏有效的解决方案。
发明内容
为了克服上述现有技术的不足,本公开提供了一种搜索结果展示方法和装置,生成包含文章结构信息结构列表,用户可通过文章结构信息实现对搜索结果的大范围的筛选,提升交互效率。
本公开所采用的技术方案是:
一种搜索结果展示方法,该方法包括以下步骤:
获取用户输入的关键词,遍历全文搜索关键词,记录关键词出现的章节标 题,并生成相应的树形结构;
根据每处关键词位置,依次从文档中截取出包含关键词的所有条目信息,并剔除重复的条目信息;
按照条目信息的位置信息插入到树形结构中,生成结构列表,展示给用户。
进一步的,所述遍历全文搜索关键词,记录关键词出现的章节标题,并生成相应的树形结构的步骤包括:
根据用户输入的关键词,遍历全文的每个章节内容,搜索所有关键词出现的位置;
根据所有关键词出现的位置,记录章节内容中包含关键词的章节标题,剔除不包含关键词的章节标题;
利用章节内容中包含关键词的章节标题,生成该关键词的树形结构,每个章节内容中含有关键词的章节标题为该树形结构的内部节点。
进一步的,所述截取出包含关键词的所有条目信息的步骤包括:
根据每处关键词位置,分别从段首至段尾方向遍历文档的每段内容,寻找整句结束标记;
提取关键词所在的所有整句内容,并将提取到的每个整句内容均作为该关键词的条目信息;
再次遍历关键词的每个条目信息,寻找在条目信息中是否多处出现关键词;
如果条目信息中多处出现关键词,则在条目信息中标记并高亮显示所出现的所有关键词。
进一步的,所述剔除重复的条目信息的方法为:
将得到的所有条目信息进行一一比较,剔除重复的条目信息。
进一步的,将剔除重复条目信息后剩余的条目信息按照其所属章节内容分别加入到树形结构中相应的章节标题下,形成带有章节结构信息的结构列表。
进一步的,还包括:根据搜索结果窗口的大小对结构列表进行排版。
所述根据搜索结果窗口的大小对结构列表进行排版的步骤包括:
根据文档中各章节的顺序,依次排列设置结构列表的章节标题;
根据搜索结果窗口的大小设置每条条目信息的宽度,并在相邻的条目信息之间设置横线分隔开。
一种计算机可读存储介质,其中存储有多条指令,所述指令适于由终端设备的处理器加载并执行如上所述的搜索结果展示方法。
一种终端设备,包括输入输出设备、处理器和计算机可读存储介质,所述输入输出设备,用于接收用户输入的关键词,处理器用于实现各指令;计算机可读存储介质用于存储多条指令,所述指令用于执行如上所述的搜索结果展示方法。
本公开的有益效果是:
(1)本公开将搜索结果有序的整理在搜索结果窗口展示,减少了对正文的滚动交互次数;在搜索结果中加入文章的结构信息,让用户在对文章内容有大致的猜想或者熟悉文章内容的情况下可以快速定位到相应章节,减少了对其他章节中的搜索结果的交互次数;
(2)本公开对未出现搜索结果的章节以及重复条目信息等冗余信息进行剔除,缩短了搜索结果窗口的内容长度,减少了在该窗口中的点击及滚动等交互,提高了交互效率;
(3)本公开展示的搜索结果中文章结构让用户对搜索内容在文章中的分布 有整体把握,有利于用户对文章整体结构的把握,减少了用户对冗余信息的获取,提高了信息获取效率。
附图说明
构成本公开的一部分的说明书附图用来提供对本公开的进一步理解,本公开的示意性实施例及其说明用于解释本申请,并不构成对本公开的不当限定。
图1是根据一种或多种实施方式的搜索结果展示方法流程图;
图2是根据一种或多种实施方式的树形结构的示例图;
图3是根据一种或多种实施方式的提取关键词所在的整句内容并高亮句中所有关键词的方法流程图;
图4是根据一种或多种实施方式的条目信息的示例图;
图5是根据一种或多种实施方式的结构列表的示例图;
图6是根据一个或多个实施例的搜索结果展示样例图。
具体实施方式
下面结合附图与实施例对本公开作进一步说明。
应该指出,以下详细说明都是例示性的,旨在对本公开提供进一步的说明。除非另有指明,本公开使用的所有技术和科学术语具有与本公开所属技术领域的普通技术人员通常理解的相同含义。
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。
一种或多种实施例提供一种搜索结果展示方法,提升文档搜索效率,该方法包括以下步骤:
S101,获取用户输入的关键词,遍历整个文本,寻找所有关键词出现的位置,并记录出现关键词的章节,生成包含这些章节的树形结构,每个章节内容中含有关键词的章节标题为该树形结构的树节点。
所述步骤S101的具体实现方式如下:
S101-1,根据用户输入的关键词,遍历文档的每个章节内容,搜索所有关键词出现的位置。
S101-2,根据所有关键词出现的位置,记录章节内容中出现关键词的章节标题。
S101-3,由文档的每个章节标题组成树形结构,根据所记录的出现关键词的章节标题,从树形结构中剔除中不包含关键词的章节标题,以精简树形结构,得到去除冗余信息的树形结构,如图2所示。
在本实施例中,通过搜索各个章节的内容,剔除树形结构中不包含搜索关键词的章节标题以精简树形结构,得到去除冗余信息的树形结构,让用户可以快速定位到相应章节,减少了对其他章节中的搜索关键词的交互次数,对于未出现搜索关键词的章节进行剔除,缩短了搜索结果的内容长度,提升了交互效率。
如图2所示,(a)为现有的标题展示树形结构,包含文档中所有的章节标题;(b)去除冗余信息的树形结构,其只包含章节内容中含有搜索关键词的章节标题。
S102:根据关键词出现的每个位置依次截取包含关键词的完整条目信息。
所述步骤102的具体实现方式如下:
S102-1,根据出现关键词的每个位置分别从段首至段尾方向遍历文档的整段内容,寻找整句结束标记,如句号,问号,叹号等;提取关键词所在的整句内容,并保存所有包含关键词的整句内容,将提取到的每个整句内容作为这个关键词的条目信息。
S102-2,再次遍历每个条目信息,寻找在该条目信息中是否多处出现关键词,如果条目信息中多处出现关键词,则在条目信息中标记所出现的所有关键词,并高亮条目信息中所有关键词。
本实施例中,提取关键词所在的整句内容并高亮句中所有关键词的过程如图3所示,遍历包含关键词的整段内容,寻找整句结束标记,提取关键词所在的一个整句内容,并保存,将该整句内容作为一条目信息,然后高亮该整句内容中的所有关键词。
现有的搜索结果列表中每个条目一次只高亮一处关键词位置,并且存在重复条目,而在本实施例中,将一个条目信息中出现的所有搜索关键词全部进行高亮显示,且该条目信息只展示一次,剔除重复的条目信息。
S103:剔除重复的条目信息。
将保存的所有条目信息进行一一比较,剔除重复的条目信息。如图4所示,(a)中为现有的搜索结果列表,在上下文中,有3条出现搜索关键词的条目信息,即条目信息重复出现3次,形成冗余;(b)中为去除冗余信息的搜索结果列表,即高亮所截取的条目信息中所有的搜索关键词,提高了交互效率。
S104,将条目信息作为叶节点插入到步骤S101生成的树形结构中,形成结构列表。
所述步骤S104的具体实现方式如下:
将步骤103得到的条目信息按照所属章节内容分别加入到树形结构中相应的章节标题下,作为叶节点,此时形成带有章节结构信息的结构列表,如图5所示,展示给用户。
在本实施例中,所述结构列表包括章节标题和由多个条目信息构成的章节结构信息。通过该结构列表,让用户在对文档内容有大致的猜想或者熟悉文档内容的情况下可以快速定位到相应章节,减少了对其他章节中的搜索结果的交互次数。
所述步骤105,根据搜索结果窗口的大小对结构列表进行排版。
所述步骤S105的具体实现方式如下:
根据文档中各章节的顺序,依次排列设置结构列表的章节标题;
根据搜索结果窗口的大小设置每条条目信息的宽度,并在相邻的条目信息之间设置横线分隔开。
步骤106,将排版后的结构列表展示给客户。
利用本实施例提出的搜索结果展示方法在文档中搜索“rose”关键词的搜索结果如图6所示。图6中,右侧为正文部分,左侧为搜索结果窗口,加粗且有背景的文字内容为章节标题,章节标题之前有三角箭头表示章节内容可以进行折叠,条目信息之间通过横线隔开,条目信息中的搜索关键词通过加粗进行强调。
一种或多种实施例还提供一种计算机可读存储介质,其中存储有多条指令,其特征是,所述指令适于由终端设备的处理器加载并执行如上所述的搜索结果展示方法。
一种或多种实施例还提供一种终端设备,包括输入输出设备、处理器和计算机可读存储介质,所述输入输出设备,用于接收用户输入的关键词,处理器用于实现各指令;计算机可读存储介质用于存储多条指令,所述指令用于执行如上所述的搜索结果展示方法。
从以上的描述中,可以看出,上述的一种或多种实施例实现了如下技术效果:
(1)将搜索结果有序的整理在搜索结果窗口展示,减少了对正文的滚动交互次数;在搜索结果中加入文章的结构信息,让用户在对文章内容有大致的猜想或者熟悉文章内容的情况下可以快速定位到相应章节,减少了对其他章节中的搜索结果的交互次数;
(2)对未出现搜索结果的章节以及重复条目信息等冗余信息进行剔除,缩短了搜索结果窗口的内容长度,减少了在该窗口中的点击及滚动等交互,提高了交互效率;
(3)展示的搜索结果中文章结构让用户对搜索内容在文章中的分布有整体把握,有利于用户对文章整体结构的把握,减少了用户对冗余信息的获取,提高了信息获取效率。
上述虽然结合附图对本公开的具体实施方式进行了描述,但并非对本公开保护范围的限制,所属领域技术人员应该明白,在本公开的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本公开的保护范围以内。

Claims (9)

  1. 一种搜索结果展示方法,其特征是,该方法包括以下步骤:
    获取用户输入的关键词,遍历全文搜索关键词,记录关键词出现的章节标题,并生成相应的树形结构;
    根据每处关键词位置,依次从文档中截取出包含关键词的所有条目信息,并剔除重复的条目信息;
    按照条目信息的位置信息插入到树形结构中,生成结构列表,展示给用户。
  2. 根据权利要求1所述的搜索结果展示方法,其特征是,所述遍历全文搜索关键词,记录关键词出现的章节标题,并生成相应的树形结构的步骤包括:
    根据用户输入的关键词,遍历全文的每个章节内容,搜索所有关键词出现的位置;
    根据所有关键词出现的位置,记录章节内容中包含关键词的章节标题,剔除不包含关键词的章节标题;
    利用章节内容中包含关键词的章节标题,生成该关键词的树形结构,每个章节内容中含有关键词的章节标题为该树形结构的内部节点。
  3. 根据权利要求1所述的搜索结果展示方法,其特征是,所述截取出包含关键词的所有条目信息的步骤包括:
    根据每处关键词位置,分别从段首至段尾方向遍历文档的每段内容,寻找整句结束标记;
    提取关键词所在的所有整句内容,并将提取到的每个整句内容均作为该关键词的条目信息;
    再次遍历关键词的每个条目信息,寻找在条目信息中是否多处出现关键词;
    如果条目信息中多处出现关键词,则在条目信息中标记并高亮显示所出现 的所有关键词。
  4. 根据权利要求1所述的搜索结果展示方法,其特征是,所述剔除重复的条目信息的方法为:
    将得到的所有条目信息进行一一比较,剔除重复的条目信息。
  5. 根据权利要求1所述的搜索结果展示方法,其特征是,将剔除重复条目信息后剩余的条目信息按照其所属章节内容分别加入到树形结构中相应的章节标题下,形成带有章节结构信息的结构列表。
  6. 根据权利要求1所述的搜索结果展示方法,其特征是,还包括:根据搜索结果窗口的大小对结构列表进行排版。
  7. 根据权利要求1所述的搜索结果展示方法,其特征是,所述根据搜索结果窗口的大小对结构列表进行排版的步骤包括:
    根据文档中各章节的顺序,依次排列设置结构列表的章节标题;
    根据搜索结果窗口的大小设置每条条目信息的宽度,并在相邻的条目信息之间设置横线分隔开。
  8. 一种计算机可读存储介质,其中存储有多条指令,其特征是,所述指令适于由终端设备的处理器加载并执行根据权利要求1至7中任一项所述的搜索结果展示方法。
  9. 一种终端设备,包括输入输出设备、处理器和计算机可读存储介质,所述输入输出设备,用于接收用户输入的关键词,处理器用于实现各指令;计算机可读存储介质用于存储多条指令,其特征是,所述指令用于执行根据权利要求1至7中任一项所述的搜索结果展示方法。
PCT/CN2018/118381 2018-11-14 2018-11-30 一种搜索结果展示方法和装置 Ceased WO2020097997A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811353521.X 2018-11-14
CN201811353521.XA CN109522390B (zh) 2018-11-14 2018-11-14 一种搜索结果展示方法和装置

Publications (1)

Publication Number Publication Date
WO2020097997A1 true WO2020097997A1 (zh) 2020-05-22

Family

ID=65777790

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118381 Ceased WO2020097997A1 (zh) 2018-11-14 2018-11-30 一种搜索结果展示方法和装置

Country Status (2)

Country Link
CN (1) CN109522390B (zh)
WO (1) WO2020097997A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196952B (zh) * 2019-05-30 2021-11-12 百度时代网络技术(北京)有限公司 程序代码的搜索处理方法、装置、设备及存储介质
CN112540961B (zh) * 2019-09-20 2024-10-01 珠海金山办公软件有限公司 一种定位文档中音频文件的方法及装置
US12147770B2 (en) * 2019-12-20 2024-11-19 Resonac Corporation Information processing device, reading comprehension support method, and program
CN112328837A (zh) * 2020-10-28 2021-02-05 北京鸿腾智能科技有限公司 数据展示方法、装置、设备及存储介质
CN112685534B (zh) * 2020-12-23 2022-12-30 上海掌门科技有限公司 在创作过程中生成已创作内容的脉络信息的方法与设备
CN113791772B (zh) * 2021-08-27 2024-04-30 成都摹客科技有限公司 一种可视化编辑器及使用方法
CN114417119A (zh) * 2022-01-07 2022-04-29 北京金山云网络技术有限公司 目录搜索方法、装置、电子设备及计算机可读存储介质
CN115795137A (zh) * 2022-12-22 2023-03-14 北京尽微致广信息技术有限公司 在线文档搜索方法、装置、电子设备及存储介质
CN116401255A (zh) * 2023-04-17 2023-07-07 超聚变数字技术有限公司 搜索方法及计算设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6877137B1 (en) * 1998-04-09 2005-04-05 Rose Blush Software Llc System, method and computer program product for mediating notes and note sub-notes linked or otherwise associated with stored or networked web pages
CN101110077A (zh) * 2007-08-24 2008-01-23 新诺亚舟科技(深圳)有限公司 在手持学习终端上实现的联合搜索的方法
CN104391941A (zh) * 2014-11-25 2015-03-04 浪潮电子信息产业股份有限公司 一种快速构建常用文件全文检索工具的方法
CN104615696A (zh) * 2015-01-23 2015-05-13 国家电网公司 一种95598知识库系统及建设方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3907161B2 (ja) * 2001-06-29 2007-04-18 インターナショナル・ビジネス・マシーンズ・コーポレーション キーワード検索方法、キーワード検索端末、コンピュータプログラム
US8688694B2 (en) * 2008-04-20 2014-04-01 Tigerlogic Corporation Systems and methods of identifying chunks from multiple syndicated content providers
CN102737029B (zh) * 2011-04-02 2017-01-18 深圳市世纪光速信息技术有限公司 搜索方法及系统
CN103914486B (zh) * 2013-01-08 2017-02-15 邓寅生 文档的搜索及展现的系统
CN104036003B (zh) * 2014-06-16 2018-12-14 北京奇虎科技有限公司 搜索结果整合方法和装置
CN104156452A (zh) * 2014-08-18 2014-11-19 中国人民解放军国防科学技术大学 一种网页文本摘要生成方法和装置
CN106021404B (zh) * 2016-05-12 2019-09-03 北京北大英华科技有限公司 检索方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6877137B1 (en) * 1998-04-09 2005-04-05 Rose Blush Software Llc System, method and computer program product for mediating notes and note sub-notes linked or otherwise associated with stored or networked web pages
CN101110077A (zh) * 2007-08-24 2008-01-23 新诺亚舟科技(深圳)有限公司 在手持学习终端上实现的联合搜索的方法
CN104391941A (zh) * 2014-11-25 2015-03-04 浪潮电子信息产业股份有限公司 一种快速构建常用文件全文检索工具的方法
CN104615696A (zh) * 2015-01-23 2015-05-13 国家电网公司 一种95598知识库系统及建设方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIU, YIJIE: "Non-official translation: Using the Help Function to View Help Information", COMPREHENSIVE PRACTICAL SKILLS OF OFFICE 2010, 31 May 2012 (2012-05-31), pages 46 - 47 *

Also Published As

Publication number Publication date
CN109522390B (zh) 2020-11-13
CN109522390A (zh) 2019-03-26

Similar Documents

Publication Publication Date Title
CN109522390B (zh) 一种搜索结果展示方法和装置
KR100489913B1 (ko) 문서표시시스템및전자사전
JP3178475B2 (ja) データ処理装置
US9075873B2 (en) Generation of context-informative co-citation graphs
US20090292686A1 (en) Disambiguating tags in folksonomy tagging systems
US20150106335A1 (en) Hierarchical data archiving
CN108255972A (zh) 一种全文检索方法及系统
US9971828B2 (en) Document tagging and retrieval using per-subject dictionaries including subject-determining-power scores for entries
US6694302B2 (en) System, method and article of manufacture for personal catalog and knowledge management
JP2004178123A (ja) 情報処理装置、該情報処理装置を実現するためのプログラム
JP6586177B2 (ja) 累積検索処理方法および装置、端末並びに記憶媒体
CN100444591C (zh) 获取网页关键字的方法及其应用系统
US20090132521A1 (en) Efficient Storage and Retrieval of Posting Lists
CN105653617B (zh) 多媒体文件管理器快速显示文件的方法及系统
CN111966940A (zh) 一种基于用户请求序列的目标数据定位方法和装置
US7949656B2 (en) Information augmentation method
JP6287192B2 (ja) 情報処理装置、情報処理方法、プログラム
CN116090473A (zh) 写作智能辅助方法、装置及系统
Tarawneh et al. a hybrid approach for indexing and searching the holy Quran
TWI238333B (en) Website information capturing system and method
CN115344771A (zh) 实现动态高亮的方法、系统及存储介质
JP2009187211A (ja) 情報検索システム、情報検索方法およびプログラム
JPH09311805A (ja) 文書処理方法及び装置
Enhong et al. Semi-structured data extraction and schema knowledge mining
JPH09212523A (ja) 全文検索方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18940393

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18940393

Country of ref document: EP

Kind code of ref document: A1