CN112732973A - 一种快速检索的方法及其终端 - Google Patents

一种快速检索的方法及其终端 Download PDF

Info

Publication number
CN112732973A
CN112732973A CN202011628290.6A CN202011628290A CN112732973A CN 112732973 A CN112732973 A CN 112732973A CN 202011628290 A CN202011628290 A CN 202011628290A CN 112732973 A CN112732973 A CN 112732973A
Authority
CN
China
Prior art keywords
retrieval
comprehensive
result
retrieval result
accurate
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
CN202011628290.6A
Other languages
English (en)
Inventor
邹映君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN202011628290.6A priority Critical patent/CN112732973A/zh
Publication of CN112732973A publication Critical patent/CN112732973A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/685Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using automatically derived transcript of audio data, e.g. lyrics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/61Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种快速检索的方法,包括如下步骤:S1、建立检索字段索引;S2、接收检索条件,利用所述索引精准检索数据并显示精准检索结果;S3、执行全面检索,返回全面检索结果;S4、根据所述全面检索结果更新所述精准检索结果。本发明采用预加载结合全面检索的方法,改善了现有技术中由于硬件性能不足带来的检索反应慢的问题,极大地提高了检索效率。

Description

一种快速检索的方法及其终端
技术领域
本发明涉及安卓系统歌曲检索技术领域,特别涉及一种快速检索的方法及其终端。
背景技术
目前的检索方法一般侧重于检索到全面的信息,因此常规的检索方法一般是进行全面检索。全面检索又包括精准检索和模糊检索。精准检索就是检索完全符合检索条件的结果,例如:通过歌名首拼或全拼来检索歌曲,精准检索就是检索首拼或全拼完全等于输入检索条件的歌曲。模糊检索就是检索与检索条件相近的结果,例如:在通过歌名首拼或全拼来检索歌曲时,检索歌名首拼或全拼相近的歌曲。具体的,如用户要检索一首歌名为“突然的自我”的歌曲,用户输入歌名首拼“trdzw”,根据全面检索方法,先进行检索结果完全符合歌名首拼为“trdzw”的精准检索,由于检索结果完全符合歌名首拼为“trdzw”的歌曲一般在10首以内,因此可以快速获得检索结果。在获得精准检索的结果后,再进一步进行模糊检索。由于模糊匹配的原因,无法充分利用数据库索引,检索时间非常依赖于硬件的性能。模糊检索到相似的检索结果后与精准检索的结果整合一起,再返回并进行显示,从而完成整个全面检索。
由于数据库数量庞大、查询条件繁多、排序规则复杂等原因,模糊检索需要耗费时间较长,目前常规的全面检索从接收到用户的检索条件到检索结果展示的耗时大约2s,特别是对于一些配置低的机型,可能达到5s甚至更长,非常影响用户的体验。
发明内容
为解决上述问题,本发明提供了一种快速检索的方法及其终端,以降低歌曲检索对硬件性能的依赖,提高检索的效率。
本发明采用以下技术方案:
一种快速检索的方法,包括如下步骤:
S1、建立检索字段索引;
S2、接收检索条件,利用所述索引精准检索数据并显示精准检索结果;
S3、执行全面检索,返回全面检索结果;
S4、根据所述全面检索结果更新所述精准检索结果。
进一步地,所述字段包括下列中的一种以上:歌名首拼、歌名全拼、播放量、歌星名全拼或歌星首拼。
进一步地,S1、基于数据库,建立检索字段索引。
进一步地,S2、接收检索条件,利用所述索引精准检索数据返回预加载的精准检索结果,并进行显示。
进一步地,所述步骤S2和步骤S3均采用线程调度异步执行。
进一步地,步骤S3中所述执行全面检索包括:执行精准检索和模糊检索。
进一步地,所述步骤S4中的更新所述精准检索结果包括:所述全面检索结果替换所述精准检索结果并进行更新显示;或将所述全面检索结果与精准检索结果进行比对,删除重复数据,将剩余数据拼接到所述精准检索结果的后面并进行显示。
进一步地,所述步骤S2记录下所述预加载返回时的时间戳,所述步骤S3记录下所述全面检索结果返回时的时间戳。
进一步地,在执行所述步骤S4之前,还执行如下操作:根据步骤S2和S3记录的时间戳判断所述预加载和全面检索结果返回时间的先后,若预加载慢于全面检索,则直接跳过预加载,不执行步骤S4的更新操作,直接显示全面检索结果。
一种快速检索的终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述所述快速检索的方法中的各个步骤。
采用上述技术方案后,本发明与背景技术相比,具有如下优点:
1、改善了现有技术的由于硬件性能不足带来的检索反应慢的问题,传统的全面检索时间需要5s甚至更长,使用本发明的预加载后只需要60ms即可返回结果,显示数据和全面检索方案一样,同时极大地提高了检索效率;
2、预加载检索能快速无缝接入到现有的检索系统中,而且对现有的代码影响非常小。
附图说明
图1为本发明实施例一的方法流程示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
实施例一
如图1所示,一种快速检索的方法,包括如下步骤:
S1、建立检索字段索引;所述字段包括下列中的一种以上:歌名首拼、歌名全拼、播放量、歌星名全拼或歌星首拼。
S2、接收检索条件,利用所述索引精准检索数据并显示精准检索结果;所述步骤S2采用线程调度异步执行。
在本实施例中,用户输入检索调节为“TRDZW”,开始检索条件为首拼完全等于“TRDZW”的歌曲,按照播放量降序排列返回结果,默认查找最多50条结果,此时是精准检索并且已经建好歌名首拼索引,因此检索结果可以极速返回并刷新界面展示给用户,该步骤受硬件性能影响小,一般只需要60ms左右,属于理想的加在时间范围。
S3、执行全面检索,返回全面检索结果;所述步骤S3采用线程调度异步执行。所述执行全面检索包括:执行精准检索和模糊检索。
在预加载的基础上,继续进行全面检索,此时传统的全面检索搜索首拼完全等于或者类似于“TRDZW”的歌曲,根据播放量降序排列分页返回结果,由于模糊匹配的原因无法充分利用数据库索引,该步骤的检索非常依赖于硬件性能,正常情况需要2s,如果机能不足,甚至可能达到5s或更长的时间。
S4、根据所述全面检索结果更新所述精准检索结果;所述步骤S4中的更新所述精准检索结果包括:所述全面检索结果替换所述精准检索结果并进行更新显示;或将所述全面检索结果与精准检索结果进行比对,删除重复数据,将剩余数据拼接到所述精准检索结果的后面并进行显示。
在本实施例中,如果预加载查询到实际结果数据大于一页,拼接和替换在后台自动执行,前台数据并未改变,容器控件绘制和原来一样,感官上并未刷新,则用户感知不到全面检索的存在,此情况是无缝拼接;
如果预加载查询到数据不足一页,则用户可以感知全面检索的存在,表现为先看到预加载的几首歌曲然后数据突然增多并铺满一页,例如:查找歌名“突然的自我”,假设此时数据库内只有一条“突然的自我”数据,此时预加载查到此准确数据并快速显示,然后全面检索会模糊搜索到其他歌名类似的数据,此时用户看到的数据从一条变成多条。除非用户搜的歌曲在数据库中完全没有,否则预加载都能发挥它的效果,因此预加载机制能满足大部分检索需求,提升用户体验。
实施例二
一种快速检索的方法,包括如下步骤:
S1、基于数据库,建立检索字段索引;所述字段包括下列中的一种以上:歌名首拼、歌名全拼、播放量、歌星名全拼或歌星首拼。
S2、接收检索条件,利用所述索引精准检索数据返回预加载的精准检索结果,并进行显示;同时记录下所述预加载返回时的时间戳,所述步骤S2采用线程调度异步执行。
S3、执行全面检索,返回全面检索结果;所述步骤S3采用线程调度异步执行,同时记录下所述全面检索结果返回时的时间戳,所述执行全面检索包括:执行精准检索和模糊检索。
根据步骤S2和S3记录的时间戳判断所述预加载和全面检索结果返回时间的先后,若预加载慢于全面检索,则直接跳过预加载,不执行步骤S4的更新操作,直接显示全面检索结果。
若预加载比全面检索快,则执行步骤S4,根据所述全面检索结果更新所述精准检索结果。所述步骤S4中的更新所述精准检索结果包括:所述全面检索结果替换所述精准检索结果并进行更新显示;或将所述全面检索结果与精准检索结果进行比对,删除重复数据,将剩余数据拼接到所述精准检索结果的后面并进行显示
本实施例的预加载机制是通过优化软件检索策略的方式,充分利用数据库索引技术,降低检索效率对于硬件性能的依赖,将检索拆分成两步,第一步利用索引精准检索数据并极速显示,第二步执行全面检索并后台拼接替或换数据,达到显示数据和全面检索方案一样但大幅度提升检索效率的目的。
此外,本实施例还增加了极端情况的处理,即若预加载慢于全面检索,则直接跳过预加载结果,不执行步骤S4的更新操作。
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。

Claims (10)

1.一种快速检索的方法,其特征在于:包括如下步骤:
S1、建立检索字段索引;
S2、接收检索条件,利用所述索引精准检索数据并显示精准检索结果;
S3、执行全面检索,返回全面检索结果;
S4、根据所述全面检索结果更新所述精准检索结果。
2.如权利要求1所述的一种快速检索的方法,其特征在于:所述字段包括下列中的一种以上:歌名首拼、歌名全拼、播放量、歌星名全拼或歌星首拼。
3.如权利要求1所述的一种快速检索的方法,其特征在于:S1、基于数据库,建立检索字段索引。
4.如权利要求1所述的一种快速检索的方法,其特征在于:S2、接收检索条件,利用所述索引精准检索数据返回预加载的精准检索结果,并进行显示。
5.如权利要求2所述的一种快速检索的方法,其特征在于:所述步骤S2和步骤S3均采用线程调度异步执行。
6.如权利要求5所述的一种快速检索的方法,其特征在于:步骤S3中所述执行全面检索包括:执行精准检索和模糊检索。
7.如权利要求6所述的一种快速检索的方法,其特征在于:所述步骤S4中的更新所述精准检索结果包括:所述全面检索结果替换所述精准检索结果并进行更新显示;或将所述全面检索结果与精准检索结果进行比对,删除重复数据,将剩余数据拼接到所述精准检索结果的后面并进行显示。
8.如权利要求4所述的一种快速检索的方法,其特征在于:所述步骤S2记录下所述预加载返回时的时间戳,所述步骤S3记录下所述全面检索结果返回时的时间戳。
9.如权利要求8所述的一种快速检索的方法,其特征在于:在执行所述步骤S4之前,还执行如下操作:根据步骤S2和S3记录的时间戳判断所述预加载和全面检索结果返回时间的先后,若预加载慢于全面检索,则直接跳过预加载,不执行步骤S4的更新操作,直接显示全面检索结果。
10.一种快速检索的终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于:所述处理器执行所述计算机程序时实现如权利要求1-9中任意一项所述的快速检索的方法中的各个步骤。
CN202011628290.6A 2020-12-31 2020-12-31 一种快速检索的方法及其终端 Pending CN112732973A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011628290.6A CN112732973A (zh) 2020-12-31 2020-12-31 一种快速检索的方法及其终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011628290.6A CN112732973A (zh) 2020-12-31 2020-12-31 一种快速检索的方法及其终端

Publications (1)

Publication Number Publication Date
CN112732973A true CN112732973A (zh) 2021-04-30

Family

ID=75609799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011628290.6A Pending CN112732973A (zh) 2020-12-31 2020-12-31 一种快速检索的方法及其终端

Country Status (1)

Country Link
CN (1) CN112732973A (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364238A (zh) * 2008-09-17 2009-02-11 清华大学 分层递阶的歌曲旋律检索方法
CN101770483A (zh) * 2008-12-29 2010-07-07 华为技术有限公司 自适应检索方法、装置及系统
CN101930472A (zh) * 2010-09-09 2010-12-29 南京中兴特种软件有限责任公司 一种支持分布式数据库基于并行查询的方法
CN102647520A (zh) * 2012-03-31 2012-08-22 武汉诚迈科技有限公司 一种在移动终端上进行快速歌曲查找及下载的方法
CN103092846A (zh) * 2011-10-27 2013-05-08 镇江雅迅软件有限责任公司 基于拼音首字母的商品检索方法的实现
CN108509547A (zh) * 2018-03-20 2018-09-07 中国长城科技集团股份有限公司 一种信息管理方法、信息管理系统及电子设备
US20200278971A1 (en) * 2019-02-28 2020-09-03 Fanuc Corporation Document retrieval apparatus and document retrieval method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364238A (zh) * 2008-09-17 2009-02-11 清华大学 分层递阶的歌曲旋律检索方法
CN101770483A (zh) * 2008-12-29 2010-07-07 华为技术有限公司 自适应检索方法、装置及系统
CN101930472A (zh) * 2010-09-09 2010-12-29 南京中兴特种软件有限责任公司 一种支持分布式数据库基于并行查询的方法
CN103092846A (zh) * 2011-10-27 2013-05-08 镇江雅迅软件有限责任公司 基于拼音首字母的商品检索方法的实现
CN102647520A (zh) * 2012-03-31 2012-08-22 武汉诚迈科技有限公司 一种在移动终端上进行快速歌曲查找及下载的方法
CN108509547A (zh) * 2018-03-20 2018-09-07 中国长城科技集团股份有限公司 一种信息管理方法、信息管理系统及电子设备
US20200278971A1 (en) * 2019-02-28 2020-09-03 Fanuc Corporation Document retrieval apparatus and document retrieval method

Similar Documents

Publication Publication Date Title
US8250053B2 (en) Intelligent enhancement of a search result snippet
US9298721B2 (en) Prioritized search results based on monitored data
US20120317105A1 (en) Method and Apparatus for Updating Index and Sequencing Search Results Based on Updated Index in Terminal
US8126888B2 (en) Methods for enhancing digital search results based on task-oriented user activity
US8706748B2 (en) Methods for enhancing digital search query techniques based on task-oriented user activity
US8301603B2 (en) Information document search system, method and program for partitioned indexes on a time series in association with a backup document storage
US8161036B2 (en) Index optimization for ranking using a linear model
US20040205044A1 (en) Method for storing inverted index, method for on-line updating the same and inverted index mechanism
US8452788B2 (en) Information retrieval system, registration apparatus for indexes for information retrieval, information retrieval method and program
EP2199935A2 (en) Method and system for dynamically partitioning very large database indices on write-once tables
US20090157729A1 (en) Methods for generating search engine index enhanced with task-related metadata
US8090715B2 (en) Method and system for dynamically generating a search result
US20150248428A1 (en) Lexicon based systems and methods for intelligent media search
CN105279213A (zh) 一种日志数据库检索装置及检索方法
US20230147941A1 (en) Method, apparatus and device used to search for content
US20220129428A1 (en) Database key compression
EP3869511A1 (en) Method and system for annotating scope of claims of gene sequence, method and system for searching gene sequence, and method and system for annotating information of gene sequence
JPWO2014050002A1 (ja) クエリ類似度評価システム、評価方法、及びプログラム
CN114328983A (zh) 文档碎化方法、数据检索方法、装置及电子设备
CN107229714B (zh) 一种基于分布式数据库的全文搜索引擎
US20070255771A1 (en) Method and system for renewing an index
CN104657513A (zh) 嵌入式系统中档案操作与快速检索方法
CN114428776A (zh) 一种面向时序数据的索引分区管理方法和系统
US20090157621A1 (en) Search device, search method and search program
US20090265383A1 (en) System and method for providing image labeling game using cbir

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