CN101963977A - A search method and mobile terminal without urban search - Google Patents

A search method and mobile terminal without urban search Download PDF

Info

Publication number
CN101963977A
CN101963977A CN 201010287449 CN201010287449A CN101963977A CN 101963977 A CN101963977 A CN 101963977A CN 201010287449 CN201010287449 CN 201010287449 CN 201010287449 A CN201010287449 A CN 201010287449A CN 101963977 A CN101963977 A CN 101963977A
Authority
CN
China
Prior art keywords
database
search
field
critical field
module
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
CN 201010287449
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.)
BEIJING TENGRUIWANLI TECHNOLOGY Co Ltd
Original Assignee
BEIJING TENGRUIWANLI TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING TENGRUIWANLI TECHNOLOGY Co Ltd filed Critical BEIJING TENGRUIWANLI TECHNOLOGY Co Ltd
Priority to CN 201010287449 priority Critical patent/CN101963977A/en
Publication of CN101963977A publication Critical patent/CN101963977A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This invention claims a search method and a mobile terminal without urban search, wherein the method comprises the following steps: after receiving a search word input by a user, finding a key field matched with the search word in a first database according to the search word; finding a non-key field belonging to the same record as the key field in a second database according to the found key field; combining the content of the found key field with the content of the non-key field into a search result; and displaying the search result to the user. By employing the method of the invention, firstly the key field is found in the first database, and then the non-key field is found in the second database to form the search result through separating and storing the key field able to be indexed and the non-key field unable to be indexed when urban search can not be performed. Thus, this method greatly reduces the search processing capacity, quickens the search speed and improves the search efficiency.

Description

No city searching method and portable terminal
Technical field
The present invention relates to a kind of no city searching method and portable terminal, belong to the mobile search technical field.
Background technology
The search of no city be meant need not to distinguish the city and in China searching for point of interest (Point of Interest is called for short: technology POI).This technology was advised index file in advance before carrying out index, comprising many records (document), store the field information of a POI in each bar record, and is as shown in table 1, comprises information such as Chinese, phonetic, address and phone.
Table 1 record for example
Figure BSA00000277973600021
When the user need not have city when search,, search the record that is complementary in the index file that portable terminal is preserved according to this term in corresponding search server, and return Search Results to portable terminal input term.
There are the following problems at least in the prior art: in the existing index file, at all field informations of the record of a POI as a file storage in the disk of search service, when portable terminal is carried out retrieval for the user, need carry out matched and searched to all field informations in the record; And, when not having the city search, need again all field informations in the different recording of different cities are carried out matched and searched, therefore need to consume a large amount of calculation resources.And the processing power of existing portable terminal is very limited, and therefore processing speed is very slow when not having the city search, and search efficiency is very low.
Summary of the invention
The invention provides a kind of no city searching method and portable terminal, in order to improve search speed.
One aspect of the present invention provides a kind of no city searching method, comprising:
After receiving the term of user's input, in first database, search the critical field that is complementary with this term according to this term;
According to the described critical field that finds, in second database, search the non-key field that belongs to same record with this critical field;
The content of the described critical field that finds and the content of described non-key field are merged into Search Results;
Described Search Results is shown to described user.
The present invention provides a kind of portable terminal on the other hand, comprising:
First searches module, is used for searching the critical field that is complementary with this term according to this term in first database behind the term that receives user's input;
Second searches module, is used for searching the described critical field that module searches arrives according to first, searches the non-key field that belongs to same record with this critical field in second database;
Merge module, be used for first search module searches to the content and second of described critical field search module searches to the content of described non-key field merge into Search Results;
Display module, the described Search Results that is used for merging the module generation is shown to described user.
The major key field of the present invention by can be indexed separates storage with non-major key field that can not be indexed, can't the city during search when carrying out, earlier in first database, search major key field, in second database, search non-major key field again, thereby therefore the formation Search Results, has significantly reduced the treatment capacity of search, accelerate search speed, improved search efficiency.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of no city searching method embodiment one of the present invention;
Fig. 2 is the data structure synoptic diagram of the word frequency rate mentioned in the method shown in Figure 1;
Fig. 3 is the structural representation of portable terminal embodiment of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the process flow diagram of no city searching method embodiment one of the present invention, and as shown in the figure, this method comprises the steps:
Step 101, receive the term of user input after, in first database, search the critical field that is complementary with this term according to this term.
Wherein, critical field is meant in the indexed file can unique field of determining a record, as: major key field, address field and Chinese field etc.The term of user input in case with index file in certain critical field in content when being complementary, then can determine a corresponding record.
In the present embodiment, all critical field and related contents thereof all are kept in first database.Particularly, this first database for example can (be called for short: memcache), portable terminal can be searched the critical field that is complementary with this term according to described term in described memcache for the memory object cache database.Wherein, memcache is a high performance distributed memory object caching system, comes the result of stored data base retrieval etc. by huge Hash (hash) table of safeguarding a unification in internal memory.Because its buffer memory adopts distributed frame, therefore can allow different mobile terminal to visit this caching system simultaneously, not only having solved shared drive can only be the drawback of unit, has also solved the pressure of database retrieval simultaneously, has improved the speed of obtaining data of visiting greatly.
Step 102 according to the described critical field that finds, is searched the non-key field that belongs to same record with this critical field in second database.
Wherein, non-key field is meant in the indexed file can not unique field of determining a record, as: postcode field (zipcode), administrative division code field (areacode) and road name field (pathname) etc.Behind the term and the content match in the non-key field in the index file of user input, many records can occur, and can not determine a record, so these fields are by being not used in index, and only be used to the user that side information is provided.
Particularly, portable terminal can read the Major key that writes down under the described critical field that finds earlier; And then in described second database, search non-key field with identical Major key according to described Major key.Wherein, described Major key is meant the content of major key field.In first database and second database, all store major key field, belong to same record to identify which field.
In the present embodiment, all non-key field and related contents thereof all are kept in second database.Particularly, this second database for example Ke Yi Wei Bai Keli database (be called for short: Berkeley db).Wherein, Berkeley DB is a kind of high performance embedding database programming storehouse, key/value that it can preserve any type is right, and can preserve a plurality of data for a key, it can support thousands of concurrent threads operating database simultaneously, therefore is widely used in multiple systems such as real time operating system.
Step 103 is merged into Search Results with the content of the described critical field that finds and the content of described non-key field.
Wherein, when the content part of the term of user input and described critical field mated, the Search Results that obtains then might be many records, for example, when term was " international trade ", Search Results was many records such as " international trade bus stop ", " international trade bridge ", " international trade apartment "; When the content of the term of user input and described critical field was mated fully, the Search Results that obtains then was a record, and for example, when term was " international trade bridge ", Search Results then was " international trade bridge " this record.
Step 104 is shown to described user with described Search Results.
Particularly, when Search Results is many whens record, can be according to the word frequency rate of the content of the described critical field that finds, from described Search Results being sorted by high order on earth; Described Search Results after the ordering is shown to described user.
Wherein, the word frequency rate is meant the number of times that occurs in word (Term) indexed file, and its data structure as shown in Figure 2.For example, the word frequency rate of " international trade bus stop " is that 5 times, the word frequency rate of " international trade bridge " are that 3 times, the word frequency rate in " international trade apartment " are 4 times, and the Search Results that then terminal is shown to the user is followed successively by: " international trade bus stop ", " international trade apartment " reach " international trade bridge ".
In addition, in order to guarantee safety of data, described first database is as the first main storehouse, also upgrades synchronously with first theassistant base as this first DB Backup; Described second database is as the second main storehouse, also upgrades synchronously with second theassistant base as this second DB Backup.Particularly, when upgrading synchronously, can adopt by synchronizing software (rsync) and upgrade synchronously when needs are synchronous, for example: when an index file had been upgraded in main storehouse, theassistant base also will correspondingly upgrade.
The major key field of the described method of present embodiment by can be indexed separates storage with non-major key field that can not be indexed, can't the city during search when carrying out, earlier in first database, search major key field, in second database, search non-major key field again, thereby therefore the formation Search Results, has significantly reduced the treatment capacity of search, accelerate search speed, improved search efficiency.
Fig. 3 is the structural representation of portable terminal embodiment of the present invention, and as shown in the figure, this portable terminal 10 comprises: first searches module 11, second searches module 12, merges module 13 and display module 14, and its principle of work is as follows:
Receive the term of user's input when portable terminal 10 after, search module 11 by first and in first database, search the critical field that is complementary with this term according to this term.Wherein, critical field is meant in the indexed file can unique field of determining a record, the term of user's input in case with index file in certain critical field in content when being complementary, then can determine a corresponding record.In the present embodiment, all critical field and related contents thereof all are kept in first database.Particularly, this first database for example can (be called for short: memcache), the explanation of relevant memcache sees also the related content of preceding method embodiment, repeats no more herein for the memory object cache database.
After this, search module 12 by second and search the described critical field that module 11 finds, in second database, search the non-key field that belongs to same record with this critical field according to first.Wherein, non-key field is meant in the indexed file can not unique field of determining a record, behind the term and the content match in the non-key field in the index file of user's input, many records can appear, and can not determine a record, therefore these fields are by being not used in index, and only are used to the user that side information is provided.
Particularly, portable terminal can read the Major key that writes down under the described critical field that finds earlier; And then in described second database, search non-key field with identical Major key according to described Major key.Wherein, described Major key is meant the content of major key field.In first database and second database, all store major key field, belong to same record to identify which field.In the present embodiment, all non-key field and related contents thereof all are kept in second database.Particularly, this second database for example Ke Yi Wei Bai Keli database (be called for short: Berkeley db), the explanation of relevant Berkeley db sees also the related content of preceding method embodiment, repeats no more herein.
Next, merge into Search Results by merging the content that module 13 searches the described non-key field that module 12 finds with first content and second of searching the described critical field that module 11 finds.Particularly, when the content part of the term of user input and described critical field mated, the Search Results that obtains then might be many records; When the content of the term of user input and described critical field was mated fully, the Search Results that obtains then was a record.The concrete related content that sees also preceding method embodiment for example repeats no more herein.
At last, will merge the described Search Results that module 13 generates by display module 14 and be shown to described user.Particularly, when Search Results is many records, can also establish order module 15 first roots according to the first word frequency rate of searching the content of the described critical field that module 11 finds by other, sort from be combined the described Search Results that module generates by high order on earth, and then be shown to described user by the described Search Results of described display module 14 after with order module 15 orderings.
The major key field of the described portable terminal of present embodiment by can be indexed separates storage with non-major key field that can not be indexed, can't the city during search when carrying out, earlier in first database, search major key field, in second database, search non-major key field again, thereby therefore the formation Search Results, has significantly reduced the treatment capacity of search, accelerate search speed, improved search efficiency.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (11)

1. no city searching method is characterized in that comprising:
After receiving the term of user's input, in first database, search the critical field that is complementary with this term according to this term;
According to the described critical field that finds, in second database, search the non-key field that belongs to same record with this critical field;
The content of the described critical field that finds and the content of described non-key field are merged into Search Results;
Described Search Results is shown to described user.
2. method according to claim 1 is characterized in that the described critical field that described basis finds, and searches the non-key field that belongs to same record with this critical field and comprise in second database:
Read the Major key that writes down under the described critical field that finds;
According to described Major key, in described second database, search non-key field with identical Major key.
3. method according to claim 1 is characterized in that describedly searching the critical field that is complementary with this term according to this term in first database and comprising: search the critical field that is complementary with this term according to this term in the memory object cache database.
4. method according to claim 1 is characterized in that the described non-key field that belongs to same record with this critical field of searching comprises: search the non-key field that belongs to same record with this critical field in the Bai Keli database in second database.
5. method according to claim 1 is characterized in that described Search Results is shown to described user to be comprised:
According to the word frequency rate of the content of the described critical field that finds, from described Search Results being sorted by high order on earth;
Described Search Results after the ordering is shown to described user.
6. method according to claim 1 is characterized in that described method also comprises: described first database with upgrade synchronously as first theassistant base of this first DB Backup.
7. method according to claim 1 is characterized in that described method also comprises: described second database with upgrade synchronously as second theassistant base of this second DB Backup.
8. portable terminal is characterized in that comprising:
First searches module, is used for searching the critical field that is complementary with this term according to this term in first database behind the term that receives user's input;
Second searches module, is used for searching the described critical field that module searches arrives according to first, searches the non-key field that belongs to same record with this critical field in second database;
Merge module, be used for first search module searches to the content and second of described critical field search module searches to the content of described non-key field merge into Search Results;
Display module, the described Search Results that is used for merging the module generation is shown to described user.
9. portable terminal according to claim 8 is characterized in that described first database is the memory object cache database.
10. portable terminal according to claim 8 is characterized in that described second database is the Bai Keli database.
11. portable terminal according to claim 8 is characterized in that also comprising:
Order module is used for the word frequency rate of searching the content of the described critical field that module searches arrives according to first, sorts from be combined the described Search Results that module generates by high order on earth;
Described display module also is used for the described Search Results after the order module ordering is shown to described user.
CN 201010287449 2010-09-19 2010-09-19 A search method and mobile terminal without urban search Pending CN101963977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010287449 CN101963977A (en) 2010-09-19 2010-09-19 A search method and mobile terminal without urban search

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010287449 CN101963977A (en) 2010-09-19 2010-09-19 A search method and mobile terminal without urban search

Publications (1)

Publication Number Publication Date
CN101963977A true CN101963977A (en) 2011-02-02

Family

ID=43516850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010287449 Pending CN101963977A (en) 2010-09-19 2010-09-19 A search method and mobile terminal without urban search

Country Status (1)

Country Link
CN (1) CN101963977A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999628A (en) * 2012-12-07 2013-03-27 北京网秦天下科技有限公司 Search method and information search terminal
CN103092860A (en) * 2011-11-02 2013-05-08 中国移动通信集团四川有限公司 Search prompt message generation method and device
CN103136236A (en) * 2011-11-28 2013-06-05 腾讯科技(深圳)有限公司 Method and system of information search
CN106874411A (en) * 2017-01-22 2017-06-20 网易(杭州)网络有限公司 The searching method and search platform of a kind of form
CN107133362A (en) * 2017-06-01 2017-09-05 北京凤凰理理它信息技术有限公司 Commodity Information Search method, system, computer program and electronic equipment
CN110019213A (en) * 2017-12-04 2019-07-16 北京京东尚科信息技术有限公司 Data managing method, device, electronic equipment and storage medium
CN110222015A (en) * 2019-06-19 2019-09-10 北京泰迪熊移动科技有限公司 A kind of reading of file data, querying method, device and readable storage medium storing program for executing
CN111104426A (en) * 2019-11-22 2020-05-05 深圳智链物联科技有限公司 Data query method and system
CN111930747A (en) * 2020-07-31 2020-11-13 广州威尔森信息科技有限公司 Online data purchasing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276368A (en) * 2007-03-28 2008-10-01 株式会社东芝 Information retrieval apparatus and method
CN101382949A (en) * 2008-10-28 2009-03-11 阿里巴巴集团控股有限公司 Management method for database table and apparatus
CN101727502A (en) * 2010-01-25 2010-06-09 中兴通讯股份有限公司 Data query method, data query device and data query system
CN101738196A (en) * 2009-12-10 2010-06-16 东软集团股份有限公司 Method and device of navigation equipment for information retrieval
US7792812B1 (en) * 2006-03-31 2010-09-07 Netlogic Microsystems, Inc. Search engine devices that support high speed parallel decoding of digital search tries

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7792812B1 (en) * 2006-03-31 2010-09-07 Netlogic Microsystems, Inc. Search engine devices that support high speed parallel decoding of digital search tries
CN101276368A (en) * 2007-03-28 2008-10-01 株式会社东芝 Information retrieval apparatus and method
CN101382949A (en) * 2008-10-28 2009-03-11 阿里巴巴集团控股有限公司 Management method for database table and apparatus
CN101738196A (en) * 2009-12-10 2010-06-16 东软集团股份有限公司 Method and device of navigation equipment for information retrieval
CN101727502A (en) * 2010-01-25 2010-06-09 中兴通讯股份有限公司 Data query method, data query device and data query system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092860A (en) * 2011-11-02 2013-05-08 中国移动通信集团四川有限公司 Search prompt message generation method and device
CN103136236A (en) * 2011-11-28 2013-06-05 腾讯科技(深圳)有限公司 Method and system of information search
WO2013078935A1 (en) * 2011-11-28 2013-06-06 腾讯科技(深圳)有限公司 Information searching method and system
CN103136236B (en) * 2011-11-28 2017-05-17 深圳市世纪光速信息技术有限公司 Method and system of information search
CN102999628A (en) * 2012-12-07 2013-03-27 北京网秦天下科技有限公司 Search method and information search terminal
WO2014086123A1 (en) * 2012-12-07 2014-06-12 北京网秦天下科技有限公司 Search method and information search terminal
CN106874411A (en) * 2017-01-22 2017-06-20 网易(杭州)网络有限公司 The searching method and search platform of a kind of form
CN106874411B (en) * 2017-01-22 2019-10-15 网易(杭州)网络有限公司 A kind of searching method and search platform of table
CN107133362A (en) * 2017-06-01 2017-09-05 北京凤凰理理它信息技术有限公司 Commodity Information Search method, system, computer program and electronic equipment
CN110019213A (en) * 2017-12-04 2019-07-16 北京京东尚科信息技术有限公司 Data managing method, device, electronic equipment and storage medium
CN110222015A (en) * 2019-06-19 2019-09-10 北京泰迪熊移动科技有限公司 A kind of reading of file data, querying method, device and readable storage medium storing program for executing
CN111104426A (en) * 2019-11-22 2020-05-05 深圳智链物联科技有限公司 Data query method and system
CN111104426B (en) * 2019-11-22 2024-04-05 深圳智链物联科技有限公司 Data query method and system
CN111104426B8 (en) * 2019-11-22 2024-04-23 北京傲速科技有限公司 Data query method and system
CN111930747A (en) * 2020-07-31 2020-11-13 广州威尔森信息科技有限公司 Online data purchasing method and device

Similar Documents

Publication Publication Date Title
CN101963977A (en) A search method and mobile terminal without urban search
CN108563923B (en) Distributed storage method and system for genetic variation data
CN110764706B (en) Storage system, data management method, and storage medium
CN102129458B (en) Method and device for storing relational database
CN102156751B (en) Method and device for extracting video fingerprint
CN103150397B (en) A kind of data directory creation method, data retrieval method and system
CN106874348B (en) File storage and index method and device and file reading method
CN103116661B (en) A kind of data processing method of database
CN102541757B (en) Write cache method, cache synchronization method and device
CN104731896B (en) A kind of data processing method and system
CN113821171B (en) Key value storage method based on hash table and LSM tree
CN103870492A (en) Data storing method and device based on key sorting
US10983909B2 (en) Trading off cache space and write amplification for Bε-trees
CN102831222A (en) Differential compression method based on data de-duplication
CN109857898A (en) A kind of method and system of mass digital audio-frequency fingerprint storage and retrieval
CN109240607B (en) File reading method and device
CN103164490A (en) Method and device for achieving high-efficient storage of data with non-fixed lengths
CN104239377A (en) Platform-crossing data retrieval method and device
CN103399823A (en) Method, equipment and system for storing service data
US8880553B2 (en) Redistribute native XML index key shipping
CN103150362A (en) Video search method and system
CN103914483A (en) File storage method and device and file reading method and device
CN103186617A (en) Data storage method and device
CN114138193A (en) Data writing method, device and equipment for solid state disk with partitioned name space
CN103984507A (en) Storage configuration and optimizing strategy for bioinformatics high-performance computing platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110202