CN106611065A - Search method and device - Google Patents

Search method and device Download PDF

Info

Publication number
CN106611065A
CN106611065A CN201710002231.XA CN201710002231A CN106611065A CN 106611065 A CN106611065 A CN 106611065A CN 201710002231 A CN201710002231 A CN 201710002231A CN 106611065 A CN106611065 A CN 106611065A
Authority
CN
China
Prior art keywords
word
search word
target
search
plan
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.)
Granted
Application number
CN201710002231.XA
Other languages
Chinese (zh)
Other versions
CN106611065B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710002231.XA priority Critical patent/CN106611065B/en
Publication of CN106611065A publication Critical patent/CN106611065A/en
Application granted granted Critical
Publication of CN106611065B publication Critical patent/CN106611065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • 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/951Indexing; 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)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a search method and device. One embodiment of the method comprises the steps that responding to a received search command, a word getting window is displayed; responding to detected selection operation which acts on the word getting window and is used for selecting a standby search word, the standby search word indicated by the selection operation and a target string containing the standby search word are determined; the target string and a location identifier of the standby search word in the target string are sent to a connected server so that the server can determine a target search word containing the standby search word in the target string according to the location identifier and initiate search for the target search word to obtain a search result; the search result is received from the server and displayed. According to the embodiment, search efficiency is improved.

Description

Searching method and device
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to searching method and dress Put.
Background technology
User is to switch to browser when there is search need during using application, generally or other support search work( The application of energy completes search;Or interface of input method is transferred, by being input into, editing search word on the surface, or in input method Using the search word needed for clicking in the multiple search words for providing, and actively click on search button initiation search.
Existing searching method is although feasible, but there is a problem of that search efficiency is low.
The content of the invention
The purpose of the application is to propose a kind of improved searching method and device to carry solving background section above The technical problem for arriving.
In a first aspect, the application provides a kind of searching method, the method includes:In response to receiving search instruction, present Take word window;In response to detect act on it is above-mentioned take word window, selection operation for choosing plan search word, it is determined that on State the plan search word indicated by selection operation and the target string comprising above-mentioned plan search word;By above-mentioned target string Send to the server for being connected with station location marker of the above-mentioned plan search word in above-mentioned target string, so that above-mentioned service Device determines the target search word comprising above-mentioned plan search word according to above-mentioned station location marker in above-mentioned target string, and initiates To the search of above-mentioned target search word obtaining Search Results;Mentioned above searching results are received from above-mentioned server and be shown.
In certain embodiments, the plan search word indicated by the above-mentioned selection operation of above-mentioned determination, including:In above-mentioned selection Character area grid division in the preset range of operation place chosen position, so that the character in above-mentioned character area is located at institute In the grid of division;Determine the grid indicated by above-mentioned selection operation, the character that the grid using determined by is included is used as above-mentioned plan Use search word.
In certain embodiments, target string of the above-mentioned determination comprising above-mentioned plan search word, including:Obtain above-mentioned text Character in the domain of block to constitute above-mentioned target string, wherein, acquired character includes above-mentioned plan search word.
In certain embodiments, the character in the above-mentioned character area of above-mentioned acquisition to be to constitute above-mentioned target string, including: The character obtained in above-mentioned character area constitutes the first character string;Extract from above-mentioned first character string above-mentioned plan search word, Predetermined number character before or after above-mentioned plan search word, constitutes above-mentioned target string.
In certain embodiments, the above-mentioned word window that takes is including at least one page;And above-mentioned presentation take word window it Afterwards, said method also includes:In response to receiving page-turning instruction, show it is above-mentioned take the previous page of the page corresponding to word window or Next page.
In certain embodiments, said method also includes:In response to receiving hiding instruction, mentioned above searching results are hidden.
Second aspect, this application provides a kind of searching method, the method includes:Target is received from the client for being connected The station location marker of character string and plan search word in above-mentioned target string, wherein, above-mentioned plan search word and above-mentioned target Character string is above-mentioned client takes word window, selection operation institute for choosing plan search word according to acting on of detecting It is determined that;According to above-mentioned station location marker, the target search word comprising above-mentioned plan search word is determined in above-mentioned target string; Initiate to the search of above-mentioned target search word to obtain Search Results;Mentioned above searching results are sent to above-mentioned client.
In certain embodiments, it is above-mentioned according to above-mentioned station location marker, determine in above-mentioned target string and include above-mentioned plan With the target search word of search word, including:Cutting word is carried out to above-mentioned target string, by comprising indicated by above-mentioned station location marker The word of plan search word is used as target search word.
In certain embodiments, it is above-mentioned according to above-mentioned station location marker, determine in above-mentioned target string and include above-mentioned plan With the target search word of search word, including:Keyword set is extracted from above-mentioned target string;In above-mentioned keyword set It is determined that at least one keyword comprising the plan search word indicated by above-mentioned station location marker;If above-mentioned at least one keyword Number be more than 1, then obtain the volumes of searches corresponding with each keyword in above-mentioned at least one keyword of in advance statistics, And using volumes of searches highest keyword as target search word.
The third aspect, this application provides a kind of searcher, the device includes:Display unit, be configured in response to Search instruction is received, presentation takes word window;Determining unit, is configured to above-mentioned take word window in response to detecting to act on , selection operation for choosing plan search word, determine plan search word indicated by above-mentioned selection operation and comprising above-mentioned The target string of plan search word;First transmitting element, is configured to above-mentioned target string and above-mentioned plan search word Station location marker in above-mentioned target string is sent to the server for being connected, so that above-mentioned server is marked according to above-mentioned position Know and the target search word comprising above-mentioned plan search word is determined in above-mentioned target string, and initiate to above-mentioned target search word Search obtaining Search Results;First receiving unit, is configured to receive mentioned above searching results from above-mentioned server and carry out Show.
In certain embodiments, above-mentioned determining unit includes:Stress and strain model subelement, is configured in above-mentioned selection operation Character area grid division in the preset range of place chosen position, so as to the character in above-mentioned character area is located at be divided Grid in;Plan uses search word determination subelement, is configured to determine the grid indicated by above-mentioned selection operation, by determined by The character that grid is included is used as above-mentioned plan search word.
In certain embodiments, above-mentioned determining unit includes:Target string determination subelement, is configured to obtain above-mentioned Character in character area to constitute above-mentioned target string, wherein, acquired character includes above-mentioned plan search word.
In certain embodiments, above-mentioned target string determination subelement includes:First character string determining module, configuration is used The first character string is constituted in the character in above-mentioned character area is obtained;Target string determining module, is configured to from above-mentioned Predetermined number character before or after above-mentioned plan search word, above-mentioned plan search word is extracted in one character string, above-mentioned mesh is constituted Mark character string.
In certain embodiments, the above-mentioned word window that takes is including at least one page;And said apparatus also include:Page turning list Unit, is configured in response to receiving page-turning instruction, and display is above-mentioned to take the previous page of the page corresponding to word window or lower one page Face.
In certain embodiments, said apparatus also include:Hidden unit, is configured in response to receiving hiding instruction, Hiding mentioned above searching results.
Fourth aspect, this application provides a kind of searcher, the device includes:Second receiving unit, be configured to from The client for being connected receives the station location marker of target string and plan search word in above-mentioned target string, wherein, on State plan search word and above-mentioned target string be above-mentioned client according to acting on of detecting take word window, for choosing Determined by the selection operation of plan search word;Target search word determining unit, is configured to according to above-mentioned station location marker, upper State and determine in target string the target search word comprising above-mentioned plan search word;Search unit, is configured to initiate to above-mentioned The search of target search word is obtaining Search Results;Second transmitting element, is configured to send above-mentioned search to above-mentioned client As a result.
In certain embodiments, above-mentioned target search word determining unit includes:First processes subelement, is configured to upper Stating target string carries out cutting word, using the word comprising the plan search word indicated by above-mentioned station location marker as target search word.
In certain embodiments, above-mentioned target search word determining unit includes:Subelement is extracted, is configured to from above-mentioned mesh Keyword set is extracted in mark character string;Determination subelement, is configured to the determination in above-mentioned keyword set and includes rheme Put at least one keyword of the indicated plan search word of mark;Second processing subelement, if be configured to it is above-mentioned at least The number of one keyword is more than 1, then obtain advance statistics with above-mentioned at least one keyword in each keyword pair The volumes of searches answered, and using volumes of searches highest keyword as target search word.
The searcher shown in searching method and the above-mentioned third aspect shown in above-mentioned first aspect, by searching receiving Present during Suo Zhiling and take word window;Then detect act on take word window, for choose plan search word selection grasp When making, the plan search word indicated by above-mentioned selection operation and the target string comprising above-mentioned plan search word are determined, so as to The station location marker of above-mentioned target string and above-mentioned plan search word in above-mentioned target string is sent to the clothes for being connected Business device, so that above-mentioned server determines comprising above-mentioned plan search word according to above-mentioned station location marker in above-mentioned target string Target search word, and initiate to the search of above-mentioned target search to obtain Search Results;It is last to receive above-mentioned from above-mentioned server Search Results are simultaneously shown.So as to be effectively utilized the determination for taking word window and server to target search word, it is to avoid User input or editor's search word, improve the precision of search, and then improve search efficiency.
The device shown in searching method and above-mentioned fourth aspect shown in above-mentioned second aspect, by from the client for being connected End receives the station location marker of target string and plan search word in above-mentioned target string, to be marked according to above-mentioned position Know, the target search word comprising above-mentioned plan search word is determined in above-mentioned target string, then initiate to search above-mentioned target The search of rope word is searched so as to be effectively utilized to obtain Search Results and Search Results to be returned to into above-mentioned client to target The determination of rope word, improves the precision of search, and then improves search efficiency.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the searching method according to the application;
Fig. 3 a are the effect diagrams of the display interface of the application according to one of the application opening;
Fig. 3 b are that an effect for taking word window is covered on the display interface of the application according to the application is in Fig. 3 a Schematic diagram;
Fig. 3 c are to cover one on the display interface of the application according to the application is in Fig. 3 a to take the another of word window Individual effect diagram;
Fig. 4 is a schematic diagram of application scenarios corresponding with the embodiment shown in Fig. 2;
Fig. 5 is the flow chart of another embodiment of the searching method according to the application.
Fig. 6 is the structural representation of one embodiment of the searcher according to the application;
Fig. 7 is the structural representation of another embodiment of the searcher according to the application;
Fig. 8 is adapted for the structural representation for realizing the terminal device of the embodiment of the present application or the computer system of server Figure.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that, in order to Be easy to description, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Below with reference to the accompanying drawings and in conjunction with the embodiments describing the application in detail.
Fig. 1 shows the exemplary system architecture of the embodiment of the searching method or searcher that can apply the application 100。
As shown in figure 1, system architecture 100 can include terminal device 101,102, network 103 and server 104.Network 103 media to provide communication link between terminal device 101,102 and server 104.Network 103 can include various Connection type, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted by network 103 with using terminal equipment 101,102 with server 104, be disappeared with receiving or sending Breath etc..Various application programs, such as input method application, web browser applications, text can be installed on terminal device 101,102 Word editor's class application, JICQ, social class application, note application etc..
Terminal device 101,102 can be the various electronic equipments with display screen, including but not limited to smart mobile phone, flat Plate computer etc..
Server 104 can be to provide the server of various services, such as content to showing on terminal device 101,102 The search server that data are supported is provided.Search server can be analyzed etc. to the information that receives and process, and will process As a result (such as Search Results) feed back to terminal device.
It should be noted that the searching method that the embodiment of the present application is provided can be performed by terminal device 101,102, Can be performed by server 104, correspondingly, searcher can be arranged in terminal device 101,102 and server 104.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematic.According to realizing need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow process 200 of one embodiment of searching method according to the application is shown.The searcher Method is comprised the following steps:
Step 201, in response to receiving search instruction, presentation takes word window.
In the present embodiment, searching method operation electronic equipment thereon (such as terminal device 101 shown in Fig. 1, 102) can present and take word window when the search instruction that user is sent by input method application is received.Wherein, word window is taken It can be the transparent window being covered on the display interface of an application.As shown in Figure 3 a, 3 b, Fig. 3 a show an opening Application display interface effect diagram, Fig. 3 b show and one are covered on the display interface of the application shown in Fig. 3 a thoroughly The bright effect diagram for taking word window 301.Note that for purposes of illustration, take word window 301 oblique with having in fig 3b The square frame of line representing, but, this takes word window 301 and can also can't see oblique line so as to fully transparent.
In some optional implementations of the present embodiment, when being displayed in the display interface that takes the application under word window During comprising multiple pages, this takes word window and comprising multiple pages, and can also take the content of the page corresponding to word window and show Show at least partly identical in the content of the page corresponding to the display interface for taking the application under word window.As shown in Figure 3 c, Fig. 3 c Show one partially transparent effect diagram for taking word window 302 of covering on the display interface of the application shown in Fig. 3 a. In taking in word window shown in label 302, the part of oblique line sign can be fully transparent part.In taking shown in label 302 In word window, can show shown in label 3021 for exiting the use shown in the exit button for taking word window, label 3022 The prompting comprising little hand icon and text " gently stabbing the word to be searched for " shown in page-turning button up and down, label 3023 in page turning Information.Wherein, the upper triangle icon in the page-turning button up and down shown in label 3022 is used to page up, and lower triangle icon is used for Page turning downwards.Here, the information region shown in exit button shown in label 3021 and label 3023 is label 302 The shown zone of opacity taken in word window.
In some optional implementations of the present embodiment, user can pass through to click on take it is shown upper on word window Lower page-turning button to send page-turning instruction to above-mentioned electronic equipment, so that above-mentioned electronic equipment shows takes the page corresponding to word window Previous page or next page.
In some optional implementations of the present embodiment, above-mentioned input method application can be provided a user with for triggering The button of search instruction, icon or shortcut etc..For example, above-mentioned input method application can show on the dummy keyboard for being provided For triggering button, the icon of search instruction.Here, the present embodiment is not limited the triggering mode of search instruction.
Step 202, takes word window, selection operation for choosing plan search word, really in response to detecting to act on Determine the plan search word indicated by selection operation and the target string comprising plan search word.
In the present embodiment, after presentation takes word window, above-mentioned electronic equipment can take word window with real-time detection user On operational motion.When above-mentioned electronic equipment detect act on take word window, for choose plan search word selection grasp When making, the coordinate of selection operation place chosen position (i.e. the off-position of selection operation) can be recorded, will be answered with the coordinate pair Character as plan search word.Above-mentioned electronic equipment can also obtain the character composition target taken in the page corresponding to word window Character string.Here, selection operation can be click on operating, draw word operation etc..User can be performed by finger, pointer etc. Selection operation.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be by performing following steps come really Fixed plan search word:Character area grid division in the preset range of selection operation place chosen position, so that above-mentioned text Character in the domain of block is located in divided grid;Determine the grid indicated by selection operation, the grid by determined by is included Character as plan search word.Wherein, above-mentioned electronic equipment can be by by the coordinate of selection operation place chosen position Coordinate value is compared to determine selection operation place chosen position with the coordinate value of four apex coordinates of each grid The grid that coordinate falls into.Here, above-mentioned divided grid may, for example, be the grid of m rows n row, and m and n can also may be used with equal With unequal, and m and n can be the positive integer more than or equal to 1.It should be noted that above-mentioned preset range can be people For what is arranged, according to realizing that needs can be adjusted.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be obtained in above-mentioned character area Character to constitute target character, wherein, acquired character is including plan search word.As an example, above-mentioned electronic equipment can be with The character obtained in above-mentioned character area constitutes the first character string;Afterwards above-mentioned electronic equipment can be from above-mentioned first character string Predetermined number character before or after plan search word, plan search word is extracted, target string is constituted.Here, when intending with searching During the above-mentioned predetermined number of the number deficiency of the character of rope word above or below, above-mentioned electronic equipment can be extracted before plan search word Face or all characters below.
Step 203, the station location marker of target string and plan search word in target string is sent to being connected Server so that server determines the target search word comprising plan search word according to station location marker in target string, And initiate to the search of target search word to obtain Search Results.
In the present embodiment, above-mentioned electronic equipment can be by target string and plan search word in target string Station location marker is sent to the server for being connected, so as to server determines according to station location marker in target string use comprising plan The target search word of search word, and initiate to the search of target search word to obtain Search Results.Here, server can be adopted NLP (Neuro-Linguistic Programming, neural LISP program LISP) cutting word technology carries out cutting word to target character, and Using the word comprising the plan search word indicated by above-mentioned station location marker as target search word.Server can be in local data base Or the database search information aggregate related to target search word of telecommunication connection, to obtain Search Results.
Step 204, receives Search Results and is shown from server.
In the present embodiment, above-mentioned electronic equipment can receive Search Results from server, and can be answered with input method Show Search Results with the Search Results impression window for providing.
In some optional implementations of the present embodiment, mentioned above searching results can comprising above- mentioned information set and Target search word.Search Results impression window can include the first display for showing every information in above- mentioned information set Region and the second viewing area for display target search word.When above- mentioned information set includes a plurality of information, above-mentioned electronics Equipment can (such as target search word be per bar according to the correlation of every information in above- mentioned information set and target search word The number of times occurred in information) order from high to low, believing per bar in above-mentioned first viewing area shows above- mentioned information set Breath.Here, when above-mentioned electronic equipment is presented Search Results impression window shows Search Results, can be in above-mentioned first viewing area Domain is presented the predetermined number bar information in above- mentioned information set to user, user can carry out in above-mentioned first viewing area, Under, left or right stroke to be checking current non-displayed information.Can also show on Search Results impression window above-mentioned for checking The button or icon of current non-displayed information in first viewing area, in order to the operation of user.Certainly, the first viewing area The option for supporting difference in functionality can also be shown, such as the option of forwarding information, the option for sharing information, is used In option for checking information completely content etc., the present embodiment does not do any restriction to content in this respect.
In some optional implementations of the present embodiment, above-mentioned electronic equipment is gone back after mentioned above searching results are shown Hiding instruction can be received, to hide mentioned above searching results, and is presented positioned at above-mentioned display circle for taking the application under word window Face.
With continued reference to Fig. 4, Fig. 4 is a schematic diagram of application scenarios corresponding with the embodiment shown in Fig. 2.Fig. 4's In application scenarios, user sends search instruction by the input method application on terminal device (such as smart mobile phone) first;Afterwards, Above-mentioned terminal device can receive search instruction, and present as shown in Figure 3 c take word window;Then, user can take word window The 3rd character " length " is clicked on Article 2 chat record on the page corresponding to mouthful;Then, above-mentioned electronic equipment is being detected After above-mentioned clicking operation, it may be determined that mesh of the plan indicated by above-mentioned clicking operation with search word " length " and comprising plan search word Mark character string " Nanjing Yangtze River Bridge is located at ";Then, above-mentioned terminal device target string and can be intended with searching by determined by Station location marker " 2 " of the rope word in target string is sent to search server, so that search server is according to station location marker " 2 " The target search word " Nanjing Yangtze River Bridge " comprising plan search word is determined in target string, and is initiated to " yangtze river in nanjing The search of bridge " is obtaining Search Results;Finally, above-mentioned terminal device can receive above-mentioned search knot from above-mentioned search server Really, and in Search Results impression window as shown in Figure 4 mentioned above searching results are shown.Label 401 shows that Search Results show First viewing area of the information related to target search word " Nanjing Yangtze River Bridge " searched for displaying on window, first Containing text, " finally part belongs to Nanjing to Nanjing Yangtze River Bridge to a currently displaying packet of viewing area!Originally belong to unexpectedly In ... ", " official sources claim, 3 morning of August, and Shanghai Railway Bureau and Nanjing municipal government are in Nanjing ... " and " http:// ", and the picture related to Nanjing Yangtze River Bridge news.***.com....First viewing area is also shown for checking letter The opening button of breath complete content, and the icon of the opening button.Label 402 is shown for the of display target search word Two viewing areas, the second viewing area shows search box and the X button for closing Search Results impression window, and this is searched Target search word is included in rope frame.
The method that above-described embodiment of the application is provided is effectively utilized and takes word window and server to target search word Determination, it is to avoid user input or editor's search word, improve the precision of search, and then improve search efficiency.
With further reference to Fig. 5, the flow process 500 of another embodiment of searching method according to the application is it illustrates.Should The flow process 500 of searching method, comprises the following steps:
Step 501, from the client for being connected the position of target string and plan search word in target string is received Put mark.
In the present embodiment, searching method operation electronic equipment (such as the server 104 shown in Fig. 1) thereon can be with By wired connection mode or radio connection from connected client (such as terminal device 101 shown in Fig. 1, 102) station location marker of target string and plan search word in target string is received.Wherein, plan search word and target Character string is above-mentioned client takes word window, selection operation institute for choosing plan search word according to acting on of detecting It is determined that.As an example, target string is " Nanjing Yangtze River Bridge is located at Sectors of Gulou Dis trict, Nanjing ShiShimonoseki ", and plan is with search word The initial character " south " of " length ", wherein target string is designated " 0 ", then position mark of the plan search word in target string Knowledge can be " 2 ".
Step 502, according to station location marker, determines the target search word comprising plan search word in target string.
In the present embodiment, above-mentioned electronic equipment can be entered using various analysis means to the content that target string is included Row analysis, according to station location marker, the target search word comprising plan search word is determined in target string.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be using NLP cutting word technologies to mesh Mark character string carries out cutting word, using the word comprising the plan search word indicated by station location marker as target search word.As an example, Target string is " Nanjing Yangtze River Bridge is located at Sectors of Gulou Dis trict, Nanjing ShiShimonoseki ", and the station location marker of plan search word is " 2 ", above-mentioned Electronic equipment can carry out cutting word to target string " Nanjing Yangtze River Bridge is located at Sectors of Gulou Dis trict, Nanjing ShiShimonoseki ", obtain " Nanjing The Yangtze Bridge ", " being located at ", " Nanjing ", " Gulou District ", " ShiShimonoseki " 5 words, because the word " Nanjing Yangtze River Bridge " for cutting out is included Plan indicated by station location marker " 2 " can be using " Nanjing Yangtze River Bridge " as mesh with search word " length ", thus above-mentioned electronic equipment Mark search word.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also carry out following steps to determine Target search word:Keyword set is extracted from target string;Determine comprising indicated by station location marker in keyword set Plan search word at least one keyword;If the number of above-mentioned at least one keyword is more than 1, statistics in advance is obtained Volumes of searches corresponding with each keyword in above-mentioned at least one keyword, and using volumes of searches highest keyword as Target search word.Wherein it is possible to carry out keyword extraction to target string using the keyword extraction model for pre-building, obtain To keyword set;Or target string is included using full segmentation algorithm it is all possible with what language dictionary was matched Word, as the keyword set for extracting.As an example, target string be " Nanjing Yangtze River Bridge is located at ", plan search word Station location marker be " 2 ", above-mentioned electronic equipment can extract the keyword set comprising following keyword from target string Close:" Nanjing ", " the Changjiang river ", " bridge ", " Yangtze Bridge ", " Nanjing Yangtze River Bridge ", " being located at ";Afterwards above-mentioned electronic equipment can be with Select 3 keywords with search word " length " comprising the plan indicated by station location marker " 2 ":" the Changjiang river ", " Yangtze Bridge ", " south The capital Yangtze Bridge ";Last above-mentioned electronic equipment can obtain advance statistics with the corresponding search of above-mentioned 3 keywords difference Amount, such as volumes of searches corresponding with " the Changjiang river " is 900, and volumes of searches corresponding with " Yangtze Bridge " is 950, with " yangtze river in nanjing is big The corresponding volumes of searches of bridge " is 1500, and above-mentioned electronic equipment can be using " Nanjing Yangtze River Bridge " as target search word.
Alternatively, above-mentioned electronic equipment can be obtained from database that is local or being connected with above-mentioned electronic equipment telecommunication Above-mentioned volumes of searches.
Step 503, initiates to the search of target search word to obtain Search Results.
In the present embodiment, target search word can be submitted to support and be searched by search engine by above-mentioned electronic equipment The local data base of rope or the database being remotely connected with above-mentioned electronic equipment, initiate the search to target search word, and then obtain To Search Results.
Here, Search Results can include the information aggregate related to target search word and target search for searching Word.
Step 504, to client Search Results are sent.
In the present embodiment, above-mentioned electronic equipment can send the Search Results that step 503 is obtained to client, so that Client to user shows Search Results.
The determination to target search word that the method that above-described embodiment of the application is provided is effectively utilized, improves search Precision, and then improve search efficiency.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, this application provides a kind of searcher One embodiment, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device specifically can apply to various electricity In sub- equipment.
As shown in fig. 6, the searcher 600 in the present embodiment includes:Display unit 601, determining unit 602, first Send the receiving unit 604 of unit 603 and first.Wherein, display unit 601 is configured in response to receiving search instruction, is presented Take word window;Determining unit 602 be configured in response to detect act on take word window, for choosing plan search word Selection operation, determines the plan search word indicated by selection operation and the target string comprising plan search word;First sends Unit 603 is configured to station location marker by target string and plan search word in target string and sends to being connected Server, so that server determines the target search word comprising plan search word according to station location marker in target string, and Initiate to the search of target search word to obtain Search Results;First receiving unit 604 is configured to from server receive search for As a result and it is shown.
In the present embodiment, in searcher 600:Display unit 601, determining unit 602, the and of the first transmitting element 603 The concrete process of the first receiving unit 604 and its beneficial effect brought can be referring to step 201, the steps in Fig. 2 correspondence embodiments Rapid 202, the associated description of the implementation of step 203 and step 204, will not be described here.
In some optional implementations of the present embodiment, above-mentioned determining unit 602 can include:Stress and strain model is single First (not shown), the character area being configured in the preset range of above-mentioned selection operation place chosen position divides net Lattice, so that the character in above-mentioned character area is located in divided grid;Plan search word determination subelement (is not shown in figure Go out), it is configured to determine the grid indicated by above-mentioned selection operation, the character that the grid using determined by is included is used as above-mentioned plan Search word.
In some optional implementations of the present embodiment, above-mentioned determining unit 602 can include:Target string is true Stator unit (not shown), is configured to obtain the character in above-mentioned character area to constitute above-mentioned target string, its In, acquired character includes above-mentioned plan search word.
In some optional implementations of the present embodiment, above-mentioned target string determination subelement can include:The One character string determining module (not shown), the character for being configured to obtain in above-mentioned character area constitutes the first character string; Target string determining module (not shown), be configured to from above-mentioned first character string to extract above-mentioned plan search word, Predetermined number character before or after above-mentioned plan search word, constitutes above-mentioned target string.
In some optional implementations of the present embodiment, the above-mentioned word window that takes can include at least one page;With And said apparatus 600 can also include:Page turning unit (not shown), is configured to, in response to receiving page-turning instruction, show Show the above-mentioned previous page or next page for taking the page corresponding to word window.
In some optional implementations of the present embodiment, said apparatus 600 can also include:Hidden unit is (in figure It is not shown), it is configured to, in response to receiving hiding instruction, hide mentioned above searching results.
With further reference to Fig. 7, as the realization to method shown in above-mentioned each figure, this application provides a kind of searcher One embodiment, the device embodiment is corresponding with the embodiment of the method shown in Fig. 5, and the device specifically can apply to various electricity In sub- equipment.
As shown in fig. 7, the searcher 700 in the present embodiment includes:Second receiving unit 701, target search word determine Unit 702, the transmitting element 704 of search unit 703 and second.Wherein, the second receiving unit 701 is configured to from the visitor for being connected Family end receives the station location marker of target string and plan search word in above-mentioned target string, wherein, above-mentioned plan search Word and above-mentioned target string be above-mentioned client according to acting on of detecting take word window, for choosing plan search word Selection operation determined by;Target search word determining unit 702 is configured to according to above-mentioned station location marker, in above-mentioned target word Determine the target search word comprising above-mentioned plan search word in symbol string;Search unit 703 is configured to initiate to search above-mentioned target The search of rope word is obtaining Search Results;Second transmitting element 704 is configured to send mentioned above searching results to above-mentioned client.
In the present embodiment, in searcher 700:Second receiving unit 701, target search word determining unit 702, search Unit 703 and the concrete process of the second transmitting element 704 and its beneficial effect brought can be referring to the steps in the corresponding embodiments of Fig. 5 Rapid 501, the associated description of the implementation of step 502, step 503 and step 504, will not be described here.
In some optional implementations of the present embodiment, above-mentioned target search word determining unit 702 can include:The One processes subelement (not shown), is configured to carry out cutting word to above-mentioned target string, will be comprising above-mentioned station location marker The word of indicated plan search word is used as target search word.
In some optional implementations of the present embodiment, above-mentioned target search word determining unit 702 can include:Carry Subelement (not shown) is taken, is configured to extract keyword set from above-mentioned target string;Determination subelement is (in figure It is not shown), it is configured to determine comprising the plan search word indicated by above-mentioned station location marker extremely in above-mentioned keyword set A few keyword;Second processing subelement (not shown), if being configured to the number of above-mentioned at least one keyword More than 1, then the volumes of searches corresponding with each keyword in above-mentioned at least one keyword of statistics in advance is obtained, and will be searched Rope amount highest keyword is used as target search word.
Below with reference to Fig. 8, it illustrates and be suitable to for realizing the terminal device of the embodiment of the present application or the calculating of server The structural representation of machine system 800.
As shown in figure 8, computer system 800 includes CPU (CPU) 801, it can be read-only according to being stored in Program in memory (ROM) 802 or be loaded into program in random access storage device (RAM) 803 from storage part 808 and Perform various appropriate actions and process.In RAM 803, the system that is also stored with 800 operates required various programs and data. CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always Line 804.
I/O interfaces 805 are connected to lower component:Importation 806 including keyboard etc.;Including display screen etc. and The output par, c 807 of loudspeaker etc.;Storage part 808 including hard disk etc.;And including LAN card, modem etc. NIC communications portion 809.Communications portion 809 performs communication process via the network of such as internet.Driver 810 also according to needing to be connected to I/O interfaces 805.Detachable media 811, such as semiconductor memory etc., install as needed On driver 810, the computer program in order to read from it is mounted into as needed storage part 808.
Especially, in accordance with an embodiment of the present disclosure, may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program, and it includes being tangibly embodied in machine readable Computer program on medium, the computer program includes the program code for the method shown in execution flow chart.At this In the embodiment of sample, the computer program can be downloaded and installed by communications portion 809 from network, and/or from removable Unload medium 811 to be mounted.When the computer program is performed by CPU (CPU) 801, in performing the present processes The above-mentioned functions of restriction.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation A part for table one module, program segment or code a, part for the module, program segment or code includes one or more For realizing the executable instruction of the logic function of regulation.It should also be noted that in some realizations as replacement, institute in square frame The function of mark can also be with different from the order marked in accompanying drawing generation.For example, the two square frame reality for succeedingly representing On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also It is noted that the combination of block diagram and/or each square frame in flow chart and block diagram and/or the square frame in flow chart, Ke Yiyong Perform the function of regulation or the special hardware based system of operation to realize, or can be referred to computer with specialized hardware The combination of order is realizing.
Being described in unit involved in the embodiment of the present application can be realized by way of software, it is also possible to by hard The mode of part is realizing.Described unit can also be arranged within a processor, for example, can be described as:A kind of processor bag Include display unit, determining unit, the first transmitting element and the first receiving unit.Wherein, the title of these units is in certain situation Under do not constitute to the unit restriction of itself, for example, display unit is also described as " unit that presentation takes word window ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be the nonvolatile computer storage media described in above-described embodiment included in device;Can also be Individualism, without the nonvolatile computer storage media allocated in terminal.Above-mentioned nonvolatile computer storage media is deposited One or more program is contained, when one or more of programs are performed by an equipment so that the equipment:Response In search instruction is received, presentation takes word window;In response to detect act on it is above-mentioned take word window, intend with searching for choosing The selection operation of rope word, determines the plan search word indicated by above-mentioned selection operation and the target word comprising above-mentioned plan search word Symbol string;The station location marker of above-mentioned target string and above-mentioned plan search word in above-mentioned target string is sent to being connected Server so that above-mentioned server according to above-mentioned station location marker determine in above-mentioned target string comprising above-mentioned plan search The target search word of word, and initiate to the search of above-mentioned target search word to obtain Search Results;Receive from above-mentioned server State Search Results and be shown.
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be the nonvolatile computer storage media described in above-described embodiment included in device;Can also be Individualism, without the nonvolatile computer storage media allocated in terminal.Above-mentioned nonvolatile computer storage media is deposited One or more program is contained, when one or more of programs are performed by an equipment so that the equipment:From institute The client of connection receives the station location marker of target string and plan search word in above-mentioned target string, wherein, it is above-mentioned Plan search word and above-mentioned target string be above-mentioned client according to acting on of detecting take word window, intend for choosing With determined by the selection operation of search word;According to above-mentioned station location marker, determine in above-mentioned target string and include above-mentioned plan With the target search word of search word;Initiate to the search of above-mentioned target search word to obtain Search Results;Send out to above-mentioned client Send mentioned above searching results
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic Scheme, while also should cover in the case where conceiving without departing from foregoing invention, is carried out by above-mentioned technical characteristic or its equivalent feature Other technical schemes for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (18)

1. a kind of searching method, it is characterised in that methods described includes:
In response to receiving search instruction, presentation takes word window;
In response to detect act on it is described take word window, selection operation for choosing plan search word, determine the choosing Plan search word indicated by extract operation and the target string comprising the plan search word;
The station location marker of the target string and the plan search word in the target string is sent to being connected Server so that the server according to the station location marker determine in the target string comprising the plan search The target search word of word, and initiate to the search of the target search word to obtain Search Results;
The Search Results are received from the server and be shown.
2. method according to claim 1, it is characterised in that the plan search indicated by the determination selection operation Word, including:
Character area grid division in the preset range of selection operation place chosen position, so that the character area In character be located at divided grid in;
Determine the grid indicated by the selection operation, the character that the grid using determined by is included is used as the plan search word.
3. method according to claim 2, it is characterised in that target character of the determination comprising the plan search word String, including:
The character in the character area is obtained to constitute the target string, wherein, acquired character includes the plan Use search word.
4. method according to claim 3, it is characterised in that the character in the acquisition character area is to constitute Target string is stated, including:
The character obtained in the character area constitutes the first character string;
Predetermined number word before or after the plan search word, the plan search word is extracted from first character string Symbol, constitutes the target string.
5. method according to claim 1, it is characterised in that the word window that takes is including at least one page;And
After the presentation takes word window, methods described also includes:
In response to receiving page-turning instruction, show described in take the previous page or next page of the page corresponding to word window.
6. the method according to one of claim 1-5, it is characterised in that methods described also includes:
In response to receiving hiding instruction, the Search Results are hidden.
7. a kind of searching method, it is characterised in that methods described includes:
The station location marker of target string and plan search word in the target string is received from the client for being connected, its In, the plan search word and the target string be the client according to acting on of detecting take word window, use Determined by selection operation in selection plan search word;
According to the station location marker, the target search word comprising the plan search word is determined in the target string;
Initiate to the search of the target search word to obtain Search Results;
The Search Results are sent to the client.
8. method according to claim 7, it is characterised in that described according to the station location marker, in the target character The target search word comprising the plan search word is determined in string, including:
Cutting word is carried out to the target string, using the word comprising the plan search word indicated by the station location marker as target Search word.
9. method according to claim 7, it is characterised in that described according to the station location marker, in the target character The target search word comprising the plan search word is determined in string, including:
Keyword set is extracted from the target string;
At least one keyword comprising the plan search word indicated by the station location marker is determined in the keyword set;
If the number of at least one keyword is more than 1, obtain advance statistics with least one keyword in The corresponding volumes of searches of each keyword, and using volumes of searches highest keyword as target search word.
10. a kind of searcher, it is characterised in that described device includes:
Display unit, is configured in response to receiving search instruction, and presentation takes word window;
Determining unit, is configured to described take word window, choosing for choosing plan search word in response to detecting to act on Extract operation, determines the plan search word indicated by the selection operation and the target string comprising the plan search word;
First transmitting element, is configured to the target string and the plan search word in the target string Station location marker is sent to the server for being connected so that the server according to the station location marker in the target string It is determined that the target search word comprising the plan search word, and initiate to the search of the target search word to obtain search knot Really;
First receiving unit, is configured to receive the Search Results from the server and be shown.
11. devices according to claim 10, it is characterised in that the determining unit includes:
Stress and strain model subelement, the character area being configured in the preset range of selection operation place chosen position is drawn Subnetting lattice, so that the character in the character area is located in divided grid;
Plan uses search word determination subelement, is configured to determine the grid indicated by the selection operation, the grid by determined by Comprising character as the plan search word.
12. devices according to claim 11, it is characterised in that the determining unit includes:
Target string determination subelement, is configured to obtain the character in the character area to constitute the target character String, wherein, acquired character includes the plan search word.
13. devices according to claim 12, it is characterised in that the target string determination subelement includes:
First character string determining module, the character for being configured to obtain in the character area constitutes the first character string;
Target string determining module, is configured to from first character string extract the plan search word, plan use Predetermined number character before or after search word, constitutes the target string.
14. devices according to claim 10, it is characterised in that the word window that takes is including at least one page;And
Described device also includes:
Page turning unit, is configured in response to receiving page-turning instruction, show described in take the page up of the page corresponding to word window Face or next page.
15. devices according to one of claim 10-14, it is characterised in that described device also includes:
Hidden unit, is configured to, in response to receiving hiding instruction, hide the Search Results.
16. a kind of searchers, it is characterised in that described device includes:
Second receiving unit, is configured to receive target string and plan search word in the target from the client for being connected Station location marker in character string, wherein, the plan search word and the target string are the clients according to detecting Act on take word window, for choosing determined by the selection operation of plan search word;
Target search word determining unit, is configured to according to the station location marker, determines in the target string and includes institute State the target search word of plan search word;
Search unit, is configured to initiate the search to the target search word to obtain Search Results;
Second transmitting element, is configured to send the Search Results to the client.
17. devices according to claim 16, it is characterised in that the target search word determining unit includes:
First processes subelement, is configured to carry out cutting word to the target string, will be comprising indicated by the station location marker Plan search word word as target search word.
18. devices according to claim 16, it is characterised in that the target search word determining unit includes:
Subelement is extracted, is configured to extract keyword set from the target string;
Determination subelement, is configured to determine the plan search comprising indicated by the station location marker in the keyword set At least one keyword of word;
Second processing subelement, if being configured to the number of at least one keyword more than 1, obtains what is counted in advance Volumes of searches corresponding with each keyword at least one keyword, and using volumes of searches highest keyword as mesh Mark search word.
CN201710002231.XA 2017-01-03 2017-01-03 Searching method and device Active CN106611065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710002231.XA CN106611065B (en) 2017-01-03 2017-01-03 Searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710002231.XA CN106611065B (en) 2017-01-03 2017-01-03 Searching method and device

Publications (2)

Publication Number Publication Date
CN106611065A true CN106611065A (en) 2017-05-03
CN106611065B CN106611065B (en) 2020-06-30

Family

ID=58636932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710002231.XA Active CN106611065B (en) 2017-01-03 2017-01-03 Searching method and device

Country Status (1)

Country Link
CN (1) CN106611065B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169133A (en) * 2017-06-09 2017-09-15 腾讯科技(深圳)有限公司 A kind of snapshot grasping means, device, server and system
CN107194004A (en) * 2017-06-15 2017-09-22 联想(北京)有限公司 A kind of data processing method and electronic equipment
CN110851459A (en) * 2018-07-25 2020-02-28 上海柯林布瑞信息技术有限公司 Searching method and device, storage medium and server
CN112199035A (en) * 2020-09-30 2021-01-08 北京搜狗科技发展有限公司 Information recommendation method and device and electronic equipment
CN112199034A (en) * 2020-09-30 2021-01-08 北京搜狗科技发展有限公司 Data processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826096A (en) * 2009-12-09 2010-09-08 网易有道信息技术(北京)有限公司 Information display method, device and system based on mouse pointing
CN104156161A (en) * 2014-08-05 2014-11-19 魏新成 System and method for carrying out clicking, word capturing and searching on information equipment screen
CN104239313A (en) * 2013-06-09 2014-12-24 百度在线网络技术(北京)有限公司 Method for searching for characters displayed in screen and based on mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826096A (en) * 2009-12-09 2010-09-08 网易有道信息技术(北京)有限公司 Information display method, device and system based on mouse pointing
CN104239313A (en) * 2013-06-09 2014-12-24 百度在线网络技术(北京)有限公司 Method for searching for characters displayed in screen and based on mobile terminal and mobile terminal
CN104156161A (en) * 2014-08-05 2014-11-19 魏新成 System and method for carrying out clicking, word capturing and searching on information equipment screen

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169133A (en) * 2017-06-09 2017-09-15 腾讯科技(深圳)有限公司 A kind of snapshot grasping means, device, server and system
CN107169133B (en) * 2017-06-09 2022-12-23 腾讯科技(深圳)有限公司 Snapshot capturing method, device, server and system
CN107194004A (en) * 2017-06-15 2017-09-22 联想(北京)有限公司 A kind of data processing method and electronic equipment
CN107194004B (en) * 2017-06-15 2021-02-19 联想(北京)有限公司 Data processing method and electronic equipment
CN110851459A (en) * 2018-07-25 2020-02-28 上海柯林布瑞信息技术有限公司 Searching method and device, storage medium and server
CN110851459B (en) * 2018-07-25 2021-08-13 上海柯林布瑞信息技术有限公司 Searching method and device, storage medium and server
CN112199035A (en) * 2020-09-30 2021-01-08 北京搜狗科技发展有限公司 Information recommendation method and device and electronic equipment
CN112199034A (en) * 2020-09-30 2021-01-08 北京搜狗科技发展有限公司 Data processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN106611065B (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN106611065A (en) Search method and device
CN107179923B (en) Applied program processing method, device and computer equipment
CN109101425B (en) Index point burying method and device for dynamic page AB test
CN105446989B (en) Searching method and device, display device
CN102945243B (en) A kind of contact details recognition methods based on browsing content
CN105306495B (en) user identification method and device
CN106681596A (en) Information display method and device
CN109829077B (en) Page display method, device and equipment
CN103186666B (en) Method, device and equipment for searching based on favorites
CN107731229A (en) Method and apparatus for identifying voice
CN108228887A (en) For generating the method and apparatus of information
CN107422941A (en) Exchange method and system
CN106656748A (en) Information display method and device, and electronic equipment
CN110162353A (en) Multi-page switching method and equipment, storage medium, terminal
CN107368550A (en) Information acquisition method, device, medium, electronic equipment, server and system
CN109977296A (en) A kind of information-pushing method, device, equipment and storage medium
CN113194024B (en) Information display method and device and electronic equipment
CN106776771A (en) Information-pushing method and device
CN110134656A (en) Page control method, device, computer readable storage medium and computer equipment
CN109710088A (en) Information searching method and device
CN103177096B (en) Page elements localization method and equipment based on text attribute
Wang et al. Data-driven privacy analytics: A wechat case study in location-based social networks
CN107193880A (en) A kind of method for page jump and device
CN109933217A (en) Method and apparatus for pushing sentence
CN106599263A (en) Content screening method and system, and user terminal

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
GR01 Patent grant
GR01 Patent grant