CN107291772A - One kind search access method, device and electronic equipment - Google Patents

One kind search access method, device and electronic equipment Download PDF

Info

Publication number
CN107291772A
CN107291772A CN201610221711.0A CN201610221711A CN107291772A CN 107291772 A CN107291772 A CN 107291772A CN 201610221711 A CN201610221711 A CN 201610221711A CN 107291772 A CN107291772 A CN 107291772A
Authority
CN
China
Prior art keywords
text
content
search
keyword
trigger condition
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
CN201610221711.0A
Other languages
Chinese (zh)
Other versions
CN107291772B (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 Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201610221711.0A priority Critical patent/CN107291772B/en
Publication of CN107291772A publication Critical patent/CN107291772A/en
Application granted granted Critical
Publication of CN107291772B publication Critical patent/CN107291772B/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/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to internet arena, a kind of search access method, device and electronic equipment are disclosed, during solving to scan for by the content of text in the page in the prior art, the opportunity of search not accurate enough technical problem is triggered.This method includes:Obtain the content of text that user selectes from current browse webpage;Judge whether the content of text meets search trigger condition;If the content of text meets the search trigger condition, scanned for based on the content of text.Improve search access efficiency.

Description

One kind search access method, device and electronic equipment
Technical field
The present invention relates to internet arena, more particularly to a kind of search access method, device and electronic equipment.
Background technology
With the continuous development of scientific technology, electronic technology has also obtained development at full speed, the kind of electronic product Class is also more and more, and people have also enjoyed the various facilities that development in science and technology is brought.Present people can pass through Various types of electronic equipments, enjoy the comfortable life brought with development in science and technology.For example, smart mobile phone, The electronic equipments such as tablet personal computer have become an important part in people's life, and user can use The electronic equipments such as mobile phone, tablet personal computer come listen music, play game etc., to mitigate modern fast pace life institute The pressure brought.
In the prior art, many electronic equipments all possess network access functions, are selected based on user in text After appearance, keyword search can be carried out by text content, existing searching method at least exists following Problem is however, search plan of the prior art usually there will be following technical problem:
(1) it is not accurate enough to trigger the opportunity scanned in the prior art, for example:In user's selection text May need progress after appearance is to replicate operation, and not search operation;
(2) due to search result and script content mix together, so interference can be formed to user, influence User checks other guide;
(3) due to by Pop-up showing interface search result, so cause the viewing area of search result It is smaller, so that cause that search result shows is not comprehensive enough, it is impossible to meet user and see more the very first time The demand of search result.
The content of the invention
The present invention provides a kind of search access method, device and electronic equipment, to solve to pass through in the prior art When content of text in the page is scanned for, the opportunity not accurate enough technical problem of search is triggered.
In a first aspect, the embodiment of the present invention provides a kind of search access method, including:
Obtain the content of text that user selectes from current browse webpage;
Judge whether the content of text meets search trigger condition;
If the content of text meets the search trigger condition, scanned for based on the content of text.
Optionally, it is described to judge whether the content of text meets search trigger condition, including:
Judge whether the character length of the content of text is less than preset length, if, it is determined that the text Content meets the search trigger condition;Or
Judge whether include the first predetermined keyword in the content of text, if not, it is determined that in the text Appearance meets the search trigger condition.
Optionally, it is described judge whether the content of text meets search trigger condition before, methods described Also include:
Determine the historical search record that the user scans for;
The search trigger condition is determined based on historical search record.
Optionally, it is described that the search trigger condition is determined based on historical search record, including:
The character length that the user scans for is determined from historical search record;
The character length scanned for by the user is determined pre- corresponding to the search trigger condition If length;
Or, at least one inputted when determining that the user scans for from historical search record Individual keyword, at least one described keyword be corresponding to the search trigger condition described first preset Keyword.
Optionally, it is described to judge whether the content of text meets search trigger condition, including:
Judge whether include the second predetermined keyword in the content of text, if, it is determined that in the text Appearance meets the search trigger condition, wherein, second predetermined keyword is by searching that system user is searched for Rope probability is more than the keyword of predetermined probabilities.
Optionally, it is described scanned for based on the content of text after, methods described also includes:
The display interface of electronic equipment is divided into the first viewing area and the second viewing area;
Search result is shown in first viewing area, the current browse webpage is shown in described Two viewing areas.
Optionally, search result is shown in first viewing area described, by the current browse page Face is shown in after second viewing area, and methods described also includes:
If detecting the first predetermined registration operation, by the display interface of the electronic equipment recover to display described in search State before hitch fruit.
Optionally, it is described to be scanned for by the content of text, including:
M keyword is determined according to the selected content of text, M is positive integer;
The M keyword is supplied to the user, so that the user is from the M keyword At least one keyword is selected to scan for;
Wherein, it is described that the M keyword is supplied to the user, including:
The M keyword is supplied to the user by the drop-down list of search box;And/or
The M keyword is supplied to the user by way of multiselect frame.
Optionally, it is described the M keyword is supplied to the user before, methods described is also wrapped Include:
Judge whether M is more than preset value;
When M is not more than the preset value, directly carried out in a search engine by the M keyword Search;
It is described that the M keyword is supplied to the user, including:
When M is more than the preset value, the M keyword is supplied to the user.
Optionally, it is described to judge whether the content of text meets search trigger condition, including:
Judge to operate with the presence or absence of duplication for the content of text;
When there is the duplication operation for the content of text, judge whether the content of text meets institute State search trigger condition;
If the content of text is unsatisfactory for the search trigger condition, the content of text is replicated.
Second aspect, the embodiment of the present invention provides a kind of search access mechanism, including:
Module is obtained, for obtaining the content of text that user selectes from current browse webpage;
First judge module, for judging whether the content of text meets search trigger condition;
First search module, if the search trigger condition is met for the content of text, based on described Content of text is scanned for.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, includes memory, and one or The more than one program of person, one of them or more than one program storage is configured in memory By one or more than one computing device is one or more than one program bag contain be used to carrying out with The instruction of lower operation:
Obtain the content of text that user selectes from current browse webpage;
Judge whether the content of text meets search trigger condition;
If the content of text meets the search trigger condition, scanned for based on the content of text.
The present invention has the beneficial effect that:
Due in embodiments of the present invention, content of text being selected from current browse webpage detecting user Afterwards, it is not based on directly on text content to scan for, but needs to judge whether by content of text Search trigger condition is met, in the case where meeting search trigger condition, is just scanned for by content of text, Thus achieve the technique effect accurately controlled the opportunity of triggering search by content of text;
Also, due in embodiments of the present invention, search result and current browse webpage being shown in different Viewing area, and the viewing area of search result can adjust, from without influenceing user to current browse webpage Browse, improve search access efficiency;
Also, because the viewing area of search result can be adjusted, so as to increase the display of search result Region, and then more comprehensive search result can be shown.
Brief description of the drawings
Fig. 1 is a kind of flow chart for searching for access method in the embodiment of the present invention;
Fig. 2 is that M keyword is supplied to the of user by a kind of search in access method of the embodiment of the present invention A kind of schematic diagram of mode;
Fig. 3 is that M keyword is supplied to the of user by a kind of search in access method of the embodiment of the present invention The schematic diagram of two kinds of modes;
Fig. 4 be the embodiment of the present invention one kind search access method in by search result be shown in the first viewing area, Current browse webpage is shown in the schematic diagram of the second viewing area;
Fig. 5 is a kind of structure chart for searching for access mechanism in the embodiment of the present invention;
Fig. 6 is a kind of frame for being used to search for the electronic equipment of access method according to an exemplary embodiment Figure;
Fig. 7 is the structural representation of server in the embodiment of the present invention.
Embodiment
The present invention provides a kind of search access method, device and electronic equipment, to solve to pass through in the prior art When content of text in the page is scanned for, the opportunity not accurate enough technical problem of search is triggered.
Technical scheme in the embodiment of the present application is solves above-mentioned technical problem, and general thought is as follows:
Detecting after user selects content of text from current browse webpage, be not based on directly on this Content of text is scanned for, but needs to judge whether to meet search trigger condition by content of text, full In the case of sufficient search trigger condition, just scanned for, thus achieved by text by content of text Hold the technique effect accurately controlled the opportunity of triggering search;
Also, due in embodiments of the present invention, search result and current browse webpage being shown in different Viewing area, and the viewing area of search result can adjust, from without influenceing user to current browse webpage Browsed, improve search access efficiency;
Also, because the viewing area of search result can be adjusted, so as to increase the display of search result Region, and then more comprehensive search result can be shown.
In order to be better understood from above-mentioned technical proposal, below by accompanying drawing and specific embodiment to skill of the present invention Art scheme is described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to this The detailed description of inventive technique scheme, rather than the restriction to technical solution of the present invention, in the feelings not conflicted Under condition, the technical characteristic in the embodiment of the present invention and embodiment can be mutually combined.
In a first aspect, the embodiment of the present invention provides a kind of search access method, Fig. 1 is refer to, including:
Step S101:Obtain the content of text that user selectes from current browse webpage;
Step S102:Judge whether the content of text meets search trigger condition;
Step S103:If the content of text meets the search trigger condition, based on the content of text Scan for.
For example, in the electronic equipment that the program can apply to possess network access functions, for example:PC、 Mobile phone, tablet personal computer etc..
In specific implementation process, it can carry out network by content of text to be scanned for by content of text Search, for example:Scanned in a search engine by content of text;Scanned for by content of text Can locally be scanned in electronic equipment by content of text, for example:In electronic equipment local search text Part, the embodiment of the present invention is not restricted.
In step S101, current browse webpage is, for example,:It is webpage that user is browsed by browser, logical Document that other client applications are browsed etc. is crossed, user can be from current browse webpage by many Plant content selection and go out content of text, be set forth below two kinds therein and be introduced, certainly, be embodied Cheng Zhong, is not limited to following two situations.
The first, user selects part content of text, example by selection operation from current browse webpage Such as:User browses webpage in the web browser using client or browses text using other applications During shelves, it can be chosen by input equipments such as mouse, keyboard, touch-control bodies in current current browse webpage A part of content of text.
Second, user intercepts part image data by selection operation;Electronic equipment passes through to picture number According to being analyzed, content of text is therefrom obtained out.Wherein, user can be drawn by mouse in imaging surface One frame shape, then the word on the image inside frame shape is identified, and then obtains word content.
In step S102, search trigger condition can be set by default, user, optional as one kind Embodiment, search trigger condition can obtain in the following manner:Determine that what the user scanned for goes through History search record;The search trigger condition is determined based on historical search record.
For example, when user is scanned for by search engine, user can be recorded and scan for when institute The search string of use, for example:User inputs following content " batman in the input frame of search engine Great War superman ", then can obtain following search string " batman's Great War superman ", in another example, user " batman " is inputted in the search box of search engine, search engine provides multiple search based on " batman " Candidate item, user selects " batman's forward pass 3 from this multiple search candidate item:Dark knight emerges ", can To obtain following search string " batman's forward pass 3:Dark knight emerges " etc..
Wherein, electronic equipment can be every prefixed time interval (for example:1 week, two weeks etc.) or Detecting after user determines the operation of content of text, just the historical search record of user analyzed, So as to determine search trigger condition based on historical search record.
In step S102, a variety of search trigger conditions can be set, and then judge whether content of text meets The mode of search trigger condition is also different, is set forth below two kinds therein and is introduced, certainly, specific real During applying, following two situations are not limited to, and in the case where not conflicting, following two situations can be with It is applied in combination.
The first, it is described to judge whether the content of text meets search trigger condition, including:Judge described Whether the character length of content of text is less than preset length, if so, determining that the content of text is searched described in meeting Rope trigger condition.
For example, preset length is, for example,:10bit, 20bit etc., wherein it is possible to direct by system The preset length is set, can also manually be set by user.
Determined if search trigger condition is the historical search record based on user, based on the historical search Record determines the search trigger condition, including:The user is determined from historical search record The character length scanned for;The character length scanned for by the user determines the search trigger Preset length corresponding to condition.
For example, the character of its corresponding search string can be obtained for each historical search record Length, then adds and averages to the character length of all search strings, then rounds the default length of acquisition Degree, for example:Assuming that historical search record includes 10 search strings, its corresponding character length difference For:10bit, 15bit, 14bit, 6bit, 17bit, 20bit, 23bit, 15bit, 9bit, 8bit, then to it Average as 13.7, then it is 13bit or 14bit that can take preset length;Or, can be from all Most long character length is obtained in the character length of search string as preset length, then can take default length Spend for 23bit etc., it is, of course, also possible to determine preset length, the embodiment of the present invention based on other principles It is not restricted.
It is second, described to judge whether the content of text meets search trigger condition, including:Based on described Whether predetermined keyword is included in content of text, judge whether the content of text meets the search trigger bar Part.
For example, predetermined keyword can be that the searching probability searched for by system user is more than predetermined probabilities Keyword (namely:Second predetermined keyword), wherein it is possible to set a system dictionary be used for place the Two predetermined keywords, it can be more than in advance by the searching times of system user that searched probability, which is more than predetermined probabilities, If the keyword of number of times or by the searching times sequence of system user positioned at former keyword etc., Wherein, for example:Searched number of times can be obtained by network analysis and is more than preset times (for example:1000、 2000 etc.) keyword, or searching times seniority among brothers and sisters are located at former positions (for example:2000th, 10000 etc. Deng) keyword, and be added into system dictionary, the probability that these keywords are searched for by other users is higher, So, the second predetermined keyword is included in content of text if detected, illustrates that user wishes the general of search Rate is higher, so determine that content of text meets search trigger condition.
Or, it is described that the search trigger condition is determined based on historical search record, including:From At least one keyword inputted when the user scans for, institute are determined in the historical search record It is that (namely first is default for predetermined keyword corresponding to the search trigger condition to state at least one keyword Keyword);
For example, historical search record can be all historical search records, or preset time period (for example:1 day, 2 days etc.) in historical search record.Wherein it is possible to historical search is recorded into Row participle, obtains multiple keywords, then directly using this multiple keyword as the first predetermined keyword, again Or, obtained from this multiple keyword and be more than preset times by user's searching times of current electronic device (for example:2 times, 3 times etc.) keyword be used as the first predetermined keyword.
In this case, it is described to be based in the content of text whether including the first predetermined keyword, it is determined that Whether the content of text meets the search trigger condition, including:Judge included in the content of text Keyword whether belong to first predetermined keyword, if not, it is determined that the content of text is unsatisfactory for institute State search trigger condition.
For example, participle can be carried out to content of text and then at least one keyword is obtained, then judged Whether at least one keyword belongs to the first predetermined keyword.Wherein, whether at least one keyword is being judged When belonging to the first predetermined keyword, it can be determined that belong at least one keyword with the presence or absence of Partial key word First predetermined keyword, belongs to the first predetermined keyword, it is determined that go out in text if there is Partial key word Appearance is unsatisfactory for search trigger condition;Or, it can be determined that it is pre- whether an at least keyword all belongs to first If keyword, if all belonging to the first predetermined keyword, it is determined that content of text is unsatisfactory for search trigger bar Part etc..
Wherein, it is generally the case that user carries out binary search for same keyword in preset time period Probability is relatively low, if so at least one keyword extracted from content of text belong to first preset If keyword, then it is assumed that content of text is unsatisfactory for search trigger condition.
In addition, in specific implementation process, can obtain different search based on different search scenes and touch Clockwork spring part, for example:When being scanned in a search engine by content of text, its preset length or default Keyword may be locally different from electronic equipment, thereby, it is possible to determine more accurate search trigger condition, And then can more accurately trigger search.
In step S102, it just can directly judge whether content of text is full after content of text is determined Sufficient search trigger condition, can also be after content of text be obtained, first as a kind of optional embodiment Detection whether there is the second predetermined registration operation for text, if there is the second default behaviour for text Make, then judge whether content of text meets search trigger condition.Second predetermined registration operation is, for example,:Default gesture, Replicate operation, the operation with mouse drag content of text, click on the shortcut made by oneself (for example:C、ctrl+c Etc.) operation etc., certainly, the second predetermined registration operation can also be other operations, and the embodiment of the present invention is not Itemize, and be not restricted again.
Wherein, if the second predetermined registration operation is replicates operation, then grasped for content of text in the presence of duplication Make, and content of text is when being unsatisfactory for search trigger condition, and directly content of text can be replicated.
In such scheme, two kinds of different functions can be realized by same operation, that is to say need not User remembers excessive gesture, thus improves the convenience of search operation.
In step S103, when being scanned for by content of text, various ways can be used, are arranged below Lift two kinds therein to be introduced, certainly, in specific implementation process, be not limited to following two situations.
The first, it is described to be scanned for by the content of text, including:According in the selected text Appearance determines that M keyword M is positive integer;The M keyword is supplied to the user, for The user selects at least one keyword to scan for from the M keyword.
For example, keyword extraction directly can be carried out to content of text, so as to therefrom extract M Keyword, for example:Assuming that content of text is " batman's Great War superman ", then three can be therefrom extracted Keyword, be respectively:Batman, Great War, superman;Or, content of text can be closed first Keyword, which is extracted, obtains N number of keyword, is then based on this N number of keyword and is extended or changes, so that Obtain M keyword.For example:Assuming that content of text is " batman's Great War superman ", then can therefrom it carry Three keywords are taken out, are respectively:Batman, Great War, superman, can be obtained based on these three keywords It is more than at least one keyword of the default degree of association (for example with the degree of association of these three keywords:Just dawn, Dark knight etc.), and then it is more than at least the one of the default degree of association based on these three keywords and the degree of association Individual crucial phrase is into M keyword, and then the M keyword obtained is:Batman, Great War, superman, Just dawn, dark knight;
In another example:Assuming that content of text is " bat good fortune is chivalrous ", keyword " bat good fortune is chivalrous " is therefrom extracted, generally In the case of, the keyword " bat good fortune is chivalrous " may be the mistake pen of " batman ", so based on " bat good fortune is chivalrous " Keyword " batman " is determined, and is scanned for based on " batman ".
For example, as shown in Fig. 2 the side for the drop-down list that M keyword can be passed through into search box Formula is supplied to user, and each candidate item wherein in drop-down list can be comprising one in M keyword Individual or multiple keywords, user can select at least one keyword by way of clicking on each candidate item, Then scan for;Or, as shown in figure 3, can be by M keyword by way of multiselect frame User is supplied to, an option of each multiselect frame includes a keyword, and user can be by clicking on each The mode of keyword is therefrom selected at least one keyword and scanned for.
Second, scanned for by the content of text, including:M is extracted from the content of text Individual keyword;Directly scanned in a search engine by the M keyword.
Specifically, extracted from content of text after M keyword, do not provide it to user, But directly search obtains search result in a search engine, and search result then is supplied into user.
In addition, two kinds of modes scanned for can also be applied in combination, for example, can enter in the following manner Row search:M keyword is extracted from the content of text;Judge whether M is more than preset value; When M is not more than the preset value, directly scanned in a search engine by the M keyword; When M is more than the preset value, the M keyword is supplied to the user.
For example, different preset values can be set according to the actual requirements, for example:3rd, 5 etc., this hair Bright embodiment is not restricted.Wherein, if M is not more than preset value, then the pass scanned for is illustrated Keyword is less, so as to obtain more comprehensive search result, in this case, directly passes through M Each keyword is scanned in a search engine;And if M is more than preset value, then illustrate to be searched The keyword of rope is more, in this case, then the search result obtained may be less, it is impossible to meets user Demand, so as to which M keyword is supplied into user, so that user therefrom selects more important Keyword scan for.
In specific implementation process, after being scanned for by content of text, search result can also be carried User is supplied, for example:After being scanned for by the content of text, methods described also includes:By electronics The display interface of equipment is divided into the first viewing area and the second viewing area, and search result is shown in into first Viewing area, the second viewing area is shown in by the current browse webpage.
For example, as shown in figure 4, the display interface of browser can be divided into two viewing areas in left and right Domain, left side viewing area (namely first viewing area) is shown in by the search result of search, will be current clear The page of looking at is shown in the right viewing area (namely second viewing area), it is, of course, also possible to pass through its other party Formula is divided to display interface, for example:Up and down divide, newly-built window etc. in current browse webpage.
Wherein it is possible on display interface direct newly-generated first viewing area and the second viewing area, also may be used So that after detecting and being scanned for based on the content of text, the first viewing area is generated on display interface, And be the second viewing area by other region devidings on display interface in addition to the first viewing area, for example: Can after detecting and being scanned for based on content of text, on the left of display interface (or right side, top, Bottom etc.) the first viewing area is skidded off, then show search result in the first viewing area.
Wherein, the displaying ratio of the first viewing area or the second viewing area can be adjusted, for example:Can be with Adjustment frame is set for the first viewing area (or second viewing area), can just be put by dragging adjustment frame Big or diminution the first viewing area (or second viewing area), or, can be based on the first display Adaptively (or second is aobvious the first viewing area of adjustment for the display content in region (or second viewing area) Show region) so that the first viewing area (or second viewing area) can more comprehensively show that it shows Content, while less space-consuming again.
In addition, it is generally the case that after being searched for after by content of text, the first viewing area is more than the Two viewing areas, so that more comprehensive search result can be shown.
Due in such scheme, display interface is divided into the first viewing area and the second viewing area, and The displaying ratio of first viewing area (or second viewing area) is adjustable, thus extends search result Viewing area, so as to prevent interference user's viewing current browse webpage, while can show more more complete Search result.
As a kind of optional embodiment, search result is shown in the first viewing area described, will be described Current browse webpage is shown in after the second viewing area, and methods described also includes:If it is pre- to detect first If operation, the display interface of the electronic equipment is recovered to the state shown before the search result.
For example, the first predetermined registration operation is, for example,:The operation of the second viewing area is clicked on, clicks on and presets soon Prompt key is (for example:Ctrl+c operation of the default gesture of operation, generation) etc..Wherein, if detected First predetermined registration operation, then illustrate that user is wished to return to current browse webpage, therefore, by the aobvious of electronic equipment Show that interface is recovered to the state before display search result.
By such scheme, reach what easily can be switched between current browse webpage and search result Technique effect.
Second aspect, based on same inventive concept, the embodiment of the present invention provides a kind of search access mechanism, please With reference to Fig. 5, including:
Module 50 is obtained, for obtaining the content of text that user selectes from current browse webpage;
First judge module 51, for judging whether the content of text meets search trigger condition;
First search module 52, if the search trigger condition is met for the content of text, based on institute Content of text is stated to scan for.
Optionally, first judge module 51, is used for:
Judge whether the character length of the content of text is less than preset length, if, it is determined that the text Content meets the search trigger condition;Or
Judge whether include the first predetermined keyword in the content of text, if not, it is determined that in the text Appearance meets the search trigger condition.
Optionally, described device also includes:
First determining module, for determining the historical search record that the user scans for;
Second determining module, for determining the search trigger condition based on historical search record.
Optionally, second determining module, including:
First determining unit, for determining the word that the user scans for from historical search record Accord with length;
Second determining unit, the character length for being scanned for by the user determines that the search is touched Preset length corresponding to clockwork spring part;Or,
Second determining module, is used for:Determine that the user is searched from historical search record At least one keyword inputted during rope, at least one described keyword is the search trigger condition institute Corresponding first predetermined keyword.
Optionally, first judge module 51, is used for:
Judge whether include the second predetermined keyword in the content of text, if, it is determined that in the text Appearance meets the search trigger condition, wherein, second predetermined keyword is by searching that system user is searched for Rope probability is more than the keyword of predetermined probabilities.
Optionally, described device also includes:
Division module, for the display interface of electronic equipment to be divided into the first viewing area and the second viewing area Domain;
Display module, for search result to be shown in into first viewing area, by the current browse page Face is shown in second viewing area.
Optionally, described device also includes:
Recovery module, if for detecting the first predetermined registration operation, the display interface of the electronic equipment is extensive It is multiple to the state shown before the search result.
Optionally, first search module 52, including:
3rd determining unit, for determining M keyword according to the selected content of text, M is Positive integer;
Unit is provided, for the M keyword to be supplied into the user, so that the user is from institute State and select at least one keyword to scan in M keyword;
Wherein, the offer unit, is used for:
The M keyword is supplied to the user by the drop-down list of search box;And/or
The M keyword is supplied to the user by way of multiselect frame.
Optionally, described device also includes:
Second judge module, for judging whether M is more than preset value;
Second search module is straight by the M keyword for when M is not more than the preset value Connect and scan in a search engine;
The offer module, is used for:When M is more than the preset value, the M keyword is provided To the user.
Optionally, first judge module 51, including:
First judging unit, for judging to operate with the presence or absence of duplication for the content of text;
Second judging unit, for when there is the duplication operation for the content of text, judging described Whether content of text meets the search trigger condition;
Copied cells, if being unsatisfactory for the search trigger condition for the content of text, replicates the text This content.
By the device that second aspect of the present invention is introduced, introduced to implement first aspect of the embodiment of the present invention The device that is used of search access method, accessed based on the search that first aspect of the embodiment of the present invention is introduced Method, those skilled in the art can understand the tool for the device that second aspect of the embodiment of the present invention is introduced Body structure and deformation, so will not be repeated here, it is every to implement what first aspect of the embodiment of the present invention was introduced The device that search access method is used belongs to the scope of the invention to be protected.
The third aspect, based on same inventive concept, the embodiment of the present invention provides a kind of electronic equipment, included Memory, and one or more than one program, one of them or more than one program storage is in depositing In reservoir, and it is configured to by one or more than one computing device is one or more than one journey Sequence includes the instruction for being used for being operated below:
Obtain the content of text that user selectes from current browse webpage;
Judge whether the content of text meets search trigger condition;
If the content of text meets the search trigger condition, scanned for based on the content of text.
By the electronic equipment that third aspect present invention is introduced, to implement first aspect of embodiment of the present invention institute The electronic equipment that the search access method of introduction is used, is introduced based on first aspect of the embodiment of the present invention Access method is searched for, those skilled in the art can understand what the third aspect of the embodiment of the present invention was introduced The concrete structure of electronic equipment and deformation, so will not be repeated here, every implementation embodiment of the present invention first The electronic equipment that the search access method that aspect is introduced is used belongs to the scope of the invention to be protected.
On the electronic equipment in above-described embodiment, wherein modules perform the concrete mode operated and existed About being described in detail in the embodiment of this method, explanation will be not set forth in detail herein.
Fig. 6 is a kind of frame of the electronic equipment 800 of search access method according to an exemplary embodiment Figure.For example, electronic equipment 800 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting Equipment, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 6, electronic equipment 800 can include following one or more assemblies:Processing assembly 802, Memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O) Interface 812, sensor cluster 814, and communication component 816.
The integrated operation of the usual control electronics 800 of processing assembly 802, such as with display, call, Data communication, the camera operation operation associated with record operation.Treatment element 802 can include one or Multiple processors 820 carry out execute instruction, to complete all or part of step of above-mentioned method.In addition, place One or more modules can be included by managing component 802, be easy to the friendship between processing assembly 802 and other assemblies Mutually.For example, processing component 802 can include multi-media module, to facilitate multimedia groupware 808 and processing Interaction between component 802.
Memory 804 is configured as storing various types of data supporting the operation in equipment 800.These The example of data includes the instruction of any application program or method for being operated on electronic equipment 800, connection It is personal data, telephone book data, message, picture, video etc..Memory 804 can be by any kind of Volatibility or non-volatile memory device or combinations thereof realization, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), the read-only storage of erasable programmable Device (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, Flash memory, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of electronic equipment 800.Electric power assembly 806 can be wrapped Power-supply management system, one or more power supplys are included, and other for electronic equipment 800 with generating, managing and divide The component being associated with electric power.
Multimedia groupware 808 is included in one output interface of offer between the electronic equipment 800 and user Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP). If screen includes touch panel, screen may be implemented as touch-screen, be believed with receiving the input from user Number.Touch panel includes one or more touch sensors with the hand on sensing touch, slip and touch panel Gesture.The touch sensor can not only sensing touch or sliding action border, but also detect with it is described Touch or slide related duration and pressure.In certain embodiments, multimedia groupware 808 is wrapped Include a front camera and/or rear camera.When electronic equipment 800 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive the multi-medium data of outside.Often Individual front camera and rear camera can be a fixed optical lens systems or with focal length and light Learn zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes One microphone (MIC), when electronic equipment 800 is in operator scheme, such as call model, logging mode During with speech recognition mode, microphone is configured as receiving external audio signal.The audio signal received can To be further stored in memory 804 or be sent via communication component 816.In certain embodiments, sound Frequency component 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 is provide interface between processing assembly 802 and peripheral interface module, above-mentioned periphery connects Mouth mold block can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, Volume button, start button and locking press button.
Sensor cluster 814 includes one or more sensors, for providing each side for electronic equipment 800 The state estimation in face.For example, sensor cluster 814 can detect opening/closed mode of equipment 800, The relative positioning of component, such as described component is the display and keypad of electronic equipment 800, sensor group Part 814 can also detect that the position of 800 1 components of electronic equipment 800 or electronic equipment changes, Yong Huyu The existence or non-existence that electronic equipment 800 is contacted, the orientation of electronic equipment 800 or acceleration/deceleration and electronic equipment 800 temperature change.Sensor cluster 814 can include proximity transducer, be configured to do not appointing The presence of object nearby is detected during what physical contact.Sensor cluster 814 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In certain embodiments, should Sensor cluster 814 can also include acceleration transducer, and gyro sensor, Magnetic Sensor, pressure is passed Sensor or temperature sensor.
Communication component 816 is configured to facilitate wired or wireless way between electronic equipment 800 and other equipment Communication.Electronic equipment 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, Or combinations thereof.In one exemplary embodiment, communication component 816 is received via broadcast channel and come from The broadcast singal or broadcast related information of external broadcasting management system.In one exemplary embodiment, it is described Communication component 816 also includes near-field communication (NFC) module, to promote junction service.For example, in NFC Module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) Technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 800 can be by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), FPGA Device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or Other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instructing is additionally provided Matter, such as memory 804 including instruction, above-mentioned instruction can be held by the processor 820 of electronic equipment 800 Go to complete the above method.For example, the non-transitorycomputer readable storage medium can be ROM, Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by electronic equipment Computing device when so that electronic equipment is able to carry out a kind of search access method, and methods described includes:
Obtain the content of text that user selectes from current browse webpage;
Judge whether the content of text meets search trigger condition;
If the content of text meets the search trigger condition, scanned for based on the content of text.
Fig. 7 is the structural representation of server in the embodiment of the present invention.The server 1900 can be because of configuration or property Energy is different and produces than larger difference, can include one or more central processing units (central Processing units, CPU) 1922 (for example, one or more processors) and memory 1932, The storage medium 1930 (such as one of one or more storage application programs 1942 or data 1944 Or more than one mass memory unit).Wherein, memory 1932 and storage medium 1930 can be of short duration Storage or persistently storage.One or more modules can be included by being stored in the program of storage medium 1930 (diagram is not marked), each module can include operating the series of instructions in server.Further Ground, central processing unit 1922 could be arranged to communicate with storage medium 1930, be held on server 1900 Series of instructions operation in row storage medium 1930.
Server 1900 can also include one or more power supplys 1926, and one or more are wired Or radio network interface 1950, one or more input/output interfaces 1958, one or more Keyboard 1956, and/or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The one or more embodiments of the present invention, at least have the advantages that:
Due in embodiments of the present invention, content of text being selected from current browse webpage detecting user Afterwards, it is not based on directly on text content to scan for, but needs to judge whether by content of text Search trigger condition is met, in the case where meeting search trigger condition, is just scanned for by content of text, Thus achieve the technique effect accurately controlled the opportunity of triggering search by content of text;
Also, due in embodiments of the present invention, search result and current browse webpage being shown in different Viewing area, and the viewing area of search result can adjust, from without influenceing user to current browse webpage Browsed, improve search access efficiency;
Also, because the viewing area of search result can be adjusted, so as to increase the display of search result Region, and then more comprehensive search result can be shown.
The present invention is with reference to the production of method according to embodiments of the present invention, equipment (system) and computer program The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions implementation process figure and / or each flow and/or square frame in block diagram and the flow in flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, insertion Formula processor or the processor of other programmable data processing devices are to produce a machine so that pass through and calculate The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one The equipment for the function of being specified in individual flow or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or the processing of other programmable datas to set In the standby computer-readable memory worked in a specific way so that be stored in the computer-readable memory Instruction produce include the manufacture of commander equipment, the commander equipment realization in one flow or multiple of flow chart The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and perform series of operation steps on computer or other programmable devices to produce computer implemented place Reason, so that the instruction performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
, but those skilled in the art once know base although preferred embodiments of the present invention have been described This creative concept, then can make other change and modification to these embodiments.So, appended right will Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the present invention Bright spirit and scope.So, if the present invention these modifications and variations belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprising including these changes and modification.

Claims (12)

1. one kind search access method, it is characterised in that including:
Obtain the content of text that user selectes from current browse webpage;
Judge whether the content of text meets search trigger condition;
If the content of text meets the search trigger condition, scanned for based on the content of text.
2. the method as described in claim 1, it is characterised in that described whether to judge the content of text Search trigger condition is met, including:
Judge whether the character length of the content of text is less than preset length, if, it is determined that the text Content meets the search trigger condition;Or
Judge whether include the first predetermined keyword in the content of text, if not, it is determined that in the text Appearance meets the search trigger condition.
3. method as claimed in claim 2, it is characterised in that judge that the content of text is described It is no meet search trigger condition before, methods described also includes:
Determine the historical search record that the user scans for;
The search trigger condition is determined based on historical search record.
4. method as claimed in claim 3, it is characterised in that described based on historical search record The search trigger condition is determined, including:
The character length that the user scans for is determined from historical search record;
The character length scanned for by the user is determined pre- corresponding to the search trigger condition If length;
Or, at least one inputted when determining that the user scans for from historical search record Individual keyword, at least one described keyword be corresponding to the search trigger condition described first preset Keyword.
5. the method as described in claim 1, it is characterised in that described whether to judge the content of text Search trigger condition is met, including:
Judge whether include the second predetermined keyword in the content of text, if, it is determined that in the text Appearance meets the search trigger condition, wherein, second predetermined keyword is by searching that system user is searched for Rope probability is more than the keyword of predetermined probabilities.
6. the method as described in claim 1-5 is any, it is characterised in that be based on the text described After content is scanned for, methods described also includes:
The display interface of electronic equipment is divided into the first viewing area and the second viewing area;
Search result is shown in first viewing area, the current browse webpage is shown in described Two viewing areas.
7. method as claimed in claim 6, it is characterised in that search result is shown in into institute described The first viewing area is stated, the current browse webpage is shown in after second viewing area, the side Method also includes:
If detecting the first predetermined registration operation, by the display interface of the electronic equipment recover to display described in search State before hitch fruit.
8. the method as described in claim 1-6 is any, it is characterised in that described by the text Appearance is scanned for, including:
M keyword is determined according to the selected content of text, M is positive integer;
The M keyword is supplied to the user, so that the user is from the M keyword At least one keyword is selected to scan for;
Wherein, it is described that the M keyword is supplied to the user, including:
The M keyword is supplied to the user by the drop-down list of search box;And/or
The M keyword is supplied to the user by way of multiselect frame.
9. method as claimed in claim 8, it is characterised in that carry the M keyword described Supply before the user, methods described also includes:
Judge whether M is more than preset value;
When M is not more than the preset value, directly carried out in a search engine by the M keyword Search;
It is described that the M keyword is supplied to the user, including:
When M is more than the preset value, the M keyword is supplied to the user.
10. the method as described in claim 1-5 is any, it is characterised in that in the judgement text Whether appearance meets search trigger condition, including:
Judge to operate with the presence or absence of duplication for the content of text;
When there is the duplication operation for the content of text, judge whether the content of text meets institute State search trigger condition;
If the content of text is unsatisfactory for the search trigger condition, the content of text is replicated.
11. one kind search access mechanism, it is characterised in that including:
Module is obtained, for obtaining the content of text that user selectes from current browse webpage;
First judge module, for judging whether the content of text meets search trigger condition;
First search module, if the search trigger condition is met for the content of text, based on described Content of text is scanned for.
12. a kind of electronic equipment, it is characterised in that include memory, and one or more than one Program, one of them or more than one program storage in memory, and be configured to by one or More than one computing device is one or more than one program bag contains the finger for being used for being operated below Order:
Obtain the content of text that user selectes from current browse webpage;
Judge whether the content of text meets search trigger condition;
If the content of text meets the search trigger condition, scanned for based on the content of text.
CN201610221711.0A 2016-04-11 2016-04-11 Search access method and device and electronic equipment Active CN107291772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610221711.0A CN107291772B (en) 2016-04-11 2016-04-11 Search access method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610221711.0A CN107291772B (en) 2016-04-11 2016-04-11 Search access method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107291772A true CN107291772A (en) 2017-10-24
CN107291772B CN107291772B (en) 2021-05-04

Family

ID=60093452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610221711.0A Active CN107291772B (en) 2016-04-11 2016-04-11 Search access method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107291772B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228368A (en) * 2017-12-31 2018-06-29 广东欧珀移动通信有限公司 searching method, device and mobile terminal
CN109033256A (en) * 2018-07-06 2018-12-18 北京微播视界科技有限公司 A kind of searching method, device, terminal device and storage medium
CN110019748A (en) * 2018-09-27 2019-07-16 联想(北京)有限公司 A kind of data processing method and electronic equipment
CN111026833A (en) * 2019-11-27 2020-04-17 广州润普网络科技有限公司 Online browsing method and device for documents
CN113010072A (en) * 2021-04-27 2021-06-22 维沃移动通信(杭州)有限公司 Searching method and device, electronic equipment and readable storage medium
WO2023088172A1 (en) * 2021-11-18 2023-05-25 北京字跳网络技术有限公司 Interaction method and apparatus, and electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060047770A1 (en) * 2004-09-02 2006-03-02 International Business Machines Corporation Direct information copy and transfer between real-time messaging applications
CN1797301A (en) * 2004-12-30 2006-07-05 陈沛 Digital information search method and system
US20110161345A1 (en) * 2009-12-30 2011-06-30 Blue Grotto Technologies, Inc. System and method for retrieval of information contained in slide kits
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102945130A (en) * 2012-11-21 2013-02-27 广东欧珀移动通信有限公司 Information searching method and information searching system
CN102945243A (en) * 2012-09-20 2013-02-27 百度在线网络技术(北京)有限公司 Contact information identification method based on browsing contents
CN103226573A (en) * 2013-03-28 2013-07-31 百度在线网络技术(北京)有限公司 Association displaying method of search results and client
US20130198660A1 (en) * 2012-01-28 2013-08-01 Thomas S. Brugler Movable search GUI element for restricting search scope
CN104281600A (en) * 2013-07-05 2015-01-14 腾讯科技(深圳)有限公司 Method and device for intelligent selecting words
CN104462557A (en) * 2014-12-25 2015-03-25 北京奇虎科技有限公司 Instant searching method and device based on search history

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060047770A1 (en) * 2004-09-02 2006-03-02 International Business Machines Corporation Direct information copy and transfer between real-time messaging applications
CN1797301A (en) * 2004-12-30 2006-07-05 陈沛 Digital information search method and system
US20110161345A1 (en) * 2009-12-30 2011-06-30 Blue Grotto Technologies, Inc. System and method for retrieval of information contained in slide kits
US20130198660A1 (en) * 2012-01-28 2013-08-01 Thomas S. Brugler Movable search GUI element for restricting search scope
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102945243A (en) * 2012-09-20 2013-02-27 百度在线网络技术(北京)有限公司 Contact information identification method based on browsing contents
CN102945130A (en) * 2012-11-21 2013-02-27 广东欧珀移动通信有限公司 Information searching method and information searching system
CN103226573A (en) * 2013-03-28 2013-07-31 百度在线网络技术(北京)有限公司 Association displaying method of search results and client
CN104281600A (en) * 2013-07-05 2015-01-14 腾讯科技(深圳)有限公司 Method and device for intelligent selecting words
CN104462557A (en) * 2014-12-25 2015-03-25 北京奇虎科技有限公司 Instant searching method and device based on search history

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
梁智斌: "基于划词功能的信息素养学习网站设计", 《数字网络》 *
言寺日记: "QQ划词搜索在哪?QQ划词搜索怎么用?", 《百度经验》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228368A (en) * 2017-12-31 2018-06-29 广东欧珀移动通信有限公司 searching method, device and mobile terminal
CN108228368B (en) * 2017-12-31 2022-05-20 Oppo广东移动通信有限公司 Searching method and device and mobile terminal
CN109033256A (en) * 2018-07-06 2018-12-18 北京微播视界科技有限公司 A kind of searching method, device, terminal device and storage medium
CN110019748A (en) * 2018-09-27 2019-07-16 联想(北京)有限公司 A kind of data processing method and electronic equipment
CN111026833A (en) * 2019-11-27 2020-04-17 广州润普网络科技有限公司 Online browsing method and device for documents
CN113010072A (en) * 2021-04-27 2021-06-22 维沃移动通信(杭州)有限公司 Searching method and device, electronic equipment and readable storage medium
WO2023088172A1 (en) * 2021-11-18 2023-05-25 北京字跳网络技术有限公司 Interaction method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
CN107291772B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
US11520824B2 (en) Method for displaying information, electronic device and system
CN104079962B (en) A kind of method and device for pushing recommendation information
CN107291772A (en) One kind search access method, device and electronic equipment
CN106446054B (en) A kind of information recommendation method, device and electronic equipment
CN110933511B (en) Video sharing method, electronic device and medium
CN108432190A (en) Response message recommends method and its equipment
CN110276007A (en) For providing the device and method of information
CN106355429A (en) Image material recommendation method and device
CN107608532A (en) A kind of association-feeding method, device and electronic equipment
CN112689201B (en) Barrage information identification method, barrage information display method, server and electronic equipment
CN107315487B (en) Input processing method and device and electronic equipment
CN106484138B (en) A kind of input method and device
CN107305549A (en) Language data processing method, device and the device for language data processing
CN108038102A (en) Recommendation method, apparatus, terminal and the storage medium of facial expression image
CN106055707A (en) Bullet screen display method and device
CN107346182A (en) A kind of method for building user thesaurus and the device for building user thesaurus
CN109086366A (en) Recommendation news display methods, device, equipment and storage medium in browser
CN108073606A (en) A kind of news recommends method and apparatus, a kind of device recommended for news
CN104391878A (en) Book search method and book search device
CN110222256A (en) A kind of information recommendation method, device and the device for information recommendation
CN106815291A (en) Search result items exhibiting method, device and the device represented for search result items
CN110110204A (en) A kind of information recommendation method, device and the device for information recommendation
CN107045541A (en) data display method and device
CN108710521B (en) Note generation method and terminal equipment
CN103970831B (en) Recommend the method and apparatus of icon

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