CN103744857A - Method for searching instant messaging chatting records for keywords - Google Patents
Method for searching instant messaging chatting records for keywords Download PDFInfo
- Publication number
- CN103744857A CN103744857A CN201310663449.1A CN201310663449A CN103744857A CN 103744857 A CN103744857 A CN 103744857A CN 201310663449 A CN201310663449 A CN 201310663449A CN 103744857 A CN103744857 A CN 103744857A
- Authority
- CN
- China
- Prior art keywords
- key
- chat record
- key word
- positional information
- instant messaging
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method for searching instant messaging chatting records for keywords. The method comprises the steps that first, the keywords to be searched for are input, the range of the chatting records to be inquired is set, and inquiring is started; then, the information of each position of the keywords in the chatting records is inquired from the set range of the chatting records, and the information of each position of the keywords is stored in a keyword position list according to the inquired sequence; at last, the position information is taken out from the keyword position list to be positioned, and the chatting records before and after the position information are displayed in a chat window. By the adoption of the method, the information containing the keywords can be inquired rapidly according to the positions of the keywords in the chatting records.
Description
Technical field
The present invention relates to a kind of in the chat record of instant messaging the method for search key.
Background technology
Current; in many instant messaging chat tools, still not having can be according to keyword query chat record; when user need to inquire about some chat records of oneself, need in whole chat records, inquire about, very slow; can be according in the instant messaging of keyword search chat record at some; the record of all inquiries all can be shown, there is no context, in the situation that user cannot be definite; or need to look for one by one inefficiency.
Summary of the invention
The technical problem to be solved in the present invention, be to provide a kind of in the chat record of instant messaging the method for search key, can be in chat record fast finding to the information of user oneself needs.
The present invention specifically comprises the steps:
Comprise the steps:
The key word that step 10, input will be searched for also arranges the scope that will inquire about chat record, starts inquiry;
Further, described step 30 is further specially:
If step 31 user clicks a button, from key position list, take out last positional information and position, if user clicks next button, from key position list, take out first positional information and position;
If step 32 user clicks last button or next button again, judge whether chat record changes or whether key word changes, if chat record is unchanged and key word is also unchanged, upper one or the next positional information of from key position list, taking out current location information position, if chat record changes or key word changes, again travel through chat record, find the everywhere positional information of key word in chat record, trasaction key list of locations, performs step 31 afterwards.
Further, described key position list is one-dimension array.
Further, described in, orientate the highlighted location of key word as.
Further, the positional value that the positional information of described key word is key word.
Tool of the present invention has the following advantages: a kind of in the chat record of instant messaging the method for search key can in chat record, inquire fast according to key word the information that contains key word, and can carry out rapidly the switching of upper and next key word.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Embodiment
As shown in Figure 1, a kind of in the chat record of instant messaging the method for search key, comprise following steps:
The key word that step 10, input will be searched for also arranges the scope that will inquire about chat record, starts inquiry;
Described step 30 is further specially:
If step 31 user clicks a button, from key position list, take out last positional information and position, if user clicks next button, from key position list, take out first positional information and position;
If step 32 user clicks last button or next button again, judge whether chat record changes or whether key word changes, if chat record is unchanged and key word is also unchanged, upper one or the next positional information of from key position list, taking out current location information position, if chat record changes or key word changes, again travel through chat record, find the everywhere positional information of key word in chat record, trasaction key list of locations, performs step 31 afterwards.
Specific embodiment is as follows:
The key word that step 1, input will be searched for also arranges the scope that will inquire about chat record, starts inquiry;
Step 2, in history message, find out the position of all key words, leave in a key position list, the indexOf method of utilizing the character string of java to provide, historical chat record is traveled through and searched, often find the position of a key word, just this positional information being put into key position list, is therefore the positional information of depositing in order the key word that will search in key position list.
Step 3, click after a button or next button, from key position list, obtain last positional information or first positional information of key word, the select method of utilizing JTextComponent assembly to provide, arranges starting position (position of last key word) and the end position (length of key word) of highlighted position.While again clicking a button, (chat record increases to judge whether key word changes or whether the content of historical chat record changes, or reduce), if do not changed, (again do not travel through chat record, can raise the efficiency like this, reduce resource overhead), the position that obtains a key word from key position list, then location, arranges highlighted.If while finding first key position, then while clicking a button, navigate to the position of last key word, make it to circulate.If key word or chat record change, again travel through chat record, find the position of each key word in chat record, trasaction key list of locations information, from key position list, obtain the positional information of last key word or the positional information of first key word, the select method of utilizing JTextComponent assembly to provide, arranges starting position (position of last key word) and the end position (length of key word) of highlighted position.
Tool of the present invention has the following advantages: a kind of in the chat record of instant messaging the method for search key can in chat record, inquire fast according to key word the information that contains key word, and can carry out rapidly the switching of upper and next key word.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in equivalent modification and the variation done according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.
Claims (5)
1. a method for search key in the chat record of instant messaging, is characterized in that: comprise the steps:
The key word that step 10, input will be searched for also arranges the scope that will inquire about chat record, starts inquiry;
Step 20, from the scope of chat record arranging the everywhere positional information of key word of the inquiry in chat record, and the everywhere positional information of key word is deposited in entry keyword list of locations by the sequencing inquiring;
Step 30, from key position list extracting position information, position, in chat window, show the chat record before and after described positional information.
According to claim 1 a kind of in the chat record of instant messaging the method for search key, it is characterized in that: described step 30 is further specially:
If step 31 user clicks a button, from key position list, take out last positional information and position, if user clicks next button, from key position list, take out first positional information and position;
If step 32 user clicks last button or next button again, judge whether chat record changes or whether key word changes, if chat record is unchanged and key word is also unchanged, upper one or the next positional information of from key position list, taking out current location information position, if chat record changes or key word changes, again travel through chat record, find the everywhere positional information of key word in chat record, trasaction key list of locations, performs step 31 afterwards.
According to claim 1 and 2 a kind of in the chat record of instant messaging the method for search key, it is characterized in that: described key position list is one-dimension array.
According to claim 1 and 2 a kind of in the chat record of instant messaging the method for search key, it is characterized in that: described in orientate the highlighted location of key word as.
According to claim 1 and 2 a kind of in the chat record of instant messaging the method for search key, it is characterized in that: the positional value that the positional information of described key word is key word.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310663449.1A CN103744857A (en) | 2013-12-10 | 2013-12-10 | Method for searching instant messaging chatting records for keywords |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310663449.1A CN103744857A (en) | 2013-12-10 | 2013-12-10 | Method for searching instant messaging chatting records for keywords |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103744857A true CN103744857A (en) | 2014-04-23 |
Family
ID=50501875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310663449.1A Pending CN103744857A (en) | 2013-12-10 | 2013-12-10 | Method for searching instant messaging chatting records for keywords |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103744857A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104516629A (en) * | 2014-12-01 | 2015-04-15 | 上海合合信息科技发展有限公司 | Historical message display method and device |
WO2015180306A1 (en) * | 2014-05-27 | 2015-12-03 | 中兴通讯股份有限公司 | Method and device for querying instant message, and computer storage medium |
CN105183725A (en) * | 2015-09-30 | 2015-12-23 | 北京奇虎科技有限公司 | Method for translating word on web page and electronic device |
CN105208212A (en) * | 2015-09-30 | 2015-12-30 | 努比亚技术有限公司 | Chatting record display device and method |
CN105243057A (en) * | 2015-09-30 | 2016-01-13 | 北京奇虎科技有限公司 | Method for translating web page contents and electronic device. |
CN105354187A (en) * | 2015-09-30 | 2016-02-24 | 北京奇虎科技有限公司 | Method for translating webpage contents and electronic device |
CN105376148A (en) * | 2015-12-25 | 2016-03-02 | 北京奇虎科技有限公司 | Chat message arrangement method and device |
CN106484921A (en) * | 2016-12-06 | 2017-03-08 | 庄爱芹 | A kind of method for browsing search key in record in webpage |
CN107134278A (en) * | 2017-04-24 | 2017-09-05 | 深圳市元征科技股份有限公司 | The voice lookup method and its device of contact person |
CN108494573A (en) * | 2018-03-29 | 2018-09-04 | 丁超 | Group chat method, apparatus and information terminal |
CN110795534A (en) * | 2019-10-28 | 2020-02-14 | 维沃移动通信有限公司 | Information searching method and mobile terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101072205A (en) * | 2007-06-21 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Chat information searching method and system |
US20080172357A1 (en) * | 2007-01-17 | 2008-07-17 | Google Inc. | Location in search queries |
CN102541901A (en) * | 2010-12-26 | 2012-07-04 | 上海量明科技发展有限公司 | Method and system for identifying and outputting information during document reading |
CN102779173A (en) * | 2012-06-25 | 2012-11-14 | 北京奇虎科技有限公司 | Webpage text highlight display method and webpage text highlight display system |
-
2013
- 2013-12-10 CN CN201310663449.1A patent/CN103744857A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080172357A1 (en) * | 2007-01-17 | 2008-07-17 | Google Inc. | Location in search queries |
CN101072205A (en) * | 2007-06-21 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Chat information searching method and system |
CN102541901A (en) * | 2010-12-26 | 2012-07-04 | 上海量明科技发展有限公司 | Method and system for identifying and outputting information during document reading |
CN102779173A (en) * | 2012-06-25 | 2012-11-14 | 北京奇虎科技有限公司 | Webpage text highlight display method and webpage text highlight display system |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015180306A1 (en) * | 2014-05-27 | 2015-12-03 | 中兴通讯股份有限公司 | Method and device for querying instant message, and computer storage medium |
CN104516629B (en) * | 2014-12-01 | 2018-11-02 | 上海合合信息科技发展有限公司 | History message display methods and device |
CN104516629A (en) * | 2014-12-01 | 2015-04-15 | 上海合合信息科技发展有限公司 | Historical message display method and device |
CN105183725A (en) * | 2015-09-30 | 2015-12-23 | 北京奇虎科技有限公司 | Method for translating word on web page and electronic device |
CN105208212A (en) * | 2015-09-30 | 2015-12-30 | 努比亚技术有限公司 | Chatting record display device and method |
CN105243057A (en) * | 2015-09-30 | 2016-01-13 | 北京奇虎科技有限公司 | Method for translating web page contents and electronic device. |
CN105354187A (en) * | 2015-09-30 | 2016-02-24 | 北京奇虎科技有限公司 | Method for translating webpage contents and electronic device |
CN105208212B (en) * | 2015-09-30 | 2019-04-16 | 努比亚技术有限公司 | Chat record display device and method |
CN105376148A (en) * | 2015-12-25 | 2016-03-02 | 北京奇虎科技有限公司 | Chat message arrangement method and device |
CN105376148B (en) * | 2015-12-25 | 2019-05-14 | 北京奇虎科技有限公司 | Chat message method for sorting and device |
CN106484921A (en) * | 2016-12-06 | 2017-03-08 | 庄爱芹 | A kind of method for browsing search key in record in webpage |
CN107134278A (en) * | 2017-04-24 | 2017-09-05 | 深圳市元征科技股份有限公司 | The voice lookup method and its device of contact person |
CN108494573A (en) * | 2018-03-29 | 2018-09-04 | 丁超 | Group chat method, apparatus and information terminal |
CN110795534A (en) * | 2019-10-28 | 2020-02-14 | 维沃移动通信有限公司 | Information searching method and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103744857A (en) | Method for searching instant messaging chatting records for keywords | |
US8965913B2 (en) | Dynamic menus for multi-prefix interactive mobile searches | |
US10845950B2 (en) | Web browser extension | |
CN104361042A (en) | Information retrieval method and device | |
US9411492B1 (en) | Adding information to a contact record | |
CN103020054B (en) | Fuzzy query method and system | |
CN103077176A (en) | Method of carrying out quick search in browser according to type of key words | |
CN101794307A (en) | Vehicle navigation POI (Point of Interest) search engine based on internetwork word segmentation idea | |
CN105117476A (en) | Search method based on network platform | |
CN103428349B (en) | A kind of message display method and system | |
WO2015010509A1 (en) | One-dimensional liner space-based method for implementing trie tree dictionary search | |
CN103440249A (en) | System and method for rapidly searching unstructured data | |
CN104598604A (en) | Browsing method of website navigation applied in various browsers | |
CN104699838A (en) | Web search pushing method and combined method of multi-web search | |
CN103428341B (en) | Method and device for searching for mobile phone contacts | |
CN102214217A (en) | Intelligent method for searching stock application information by mobile phone | |
CN103744883A (en) | Method and system for rapidly selecting information fragments | |
US20080104036A1 (en) | Mobile phone capable of building a quick launch item according a search result and related method | |
CN105979072B (en) | Arrangement display methods, device and the mobile terminal of a kind of information or mail | |
EP2506540A1 (en) | Enhanced contact information | |
US8185516B2 (en) | Method for filtering file clusters | |
CN106372116A (en) | Information popularization system | |
CN108549679B (en) | File extension fast matching method and device for URL analysis system | |
CN103646071A (en) | Dynamic data search method | |
CN111782766B (en) | Method and system for retrieving all resources in Kubernetes cluster through keywords |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140423 |
|
WD01 | Invention patent application deemed withdrawn after publication |