CN104424327B - Applied to the search time range determining method and device in search engine - Google Patents

Applied to the search time range determining method and device in search engine Download PDF

Info

Publication number
CN104424327B
CN104424327B CN201310410046.6A CN201310410046A CN104424327B CN 104424327 B CN104424327 B CN 104424327B CN 201310410046 A CN201310410046 A CN 201310410046A CN 104424327 B CN104424327 B CN 104424327B
Authority
CN
China
Prior art keywords
time
search
format
initialization
information
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.)
Active
Application number
CN201310410046.6A
Other languages
Chinese (zh)
Other versions
CN104424327A (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.)
Singularity Xinyuan International Technology Development (Beijing) Co.,Ltd.
Original Assignee
CHONGQING XINMEI AGRICULTURAL INFORMATION 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 CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD filed Critical CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD
Priority to CN201310410046.6A priority Critical patent/CN104424327B/en
Publication of CN104424327A publication Critical patent/CN104424327A/en
Application granted granted Critical
Publication of CN104424327B publication Critical patent/CN104424327B/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

Abstract

The invention discloses a kind of search time range determining methods and device applied in search engine, and wherein method includes receiving information input by user and initializing search time range;Identify that the temporal information for meeting scheduled time format in the information of the reception, the scheduled time format include time format one and/or time format two;It is adjusted to the search time range of the initialization using the temporal information for meeting scheduled time format identified, obtain final search time range, the embodiment of the present invention does not need user according to fixed format input time, it does not need user and selects the time from selection of time frame yet, user only needs to input the search term containing temporal information according to normal temporal expressions mode, therefore can improve the Experience Degree of user.

Description

Applied to the search time range determining method and device in search engine
Technical field
The present invention relates to search technique more particularly to a kind of search time range determining methods applied in search engine And device.
Background technology
In the search engine of news website, shopping website, tour site, air ticket website, transaction platform etc., the time As the critical range parameter of one query, accuracy be directly related to whether can accurate location data result set, because This often requires that user inputs in temporal information frame according to the set form of offer for time parameter in traditional mode, Such as " XX XX months XX day ", still, the input habit of user can be limited in this way, increase user and use complexity, Huo Zhe Selection of time frame is provided on webpage, it is desirable that user's option date from selection of time frame, but the selection of user's target date is past Toward multiple operation is needed, the complexity of user's operation is increased in this way.
Invention content
In view of this, the present invention provides a kind of search time range determining methods and dress applied in search engine It sets, the temporal information contained in information input by user can be automatically identified, time range that needs are searched for is determined with this, is carried High user experience.
The present invention provides a kind of search time range determining methods applied in search engine, including
Identify the temporal information for meeting scheduled time format in the information of the reception, the scheduled time format packet Include time format one and/or time format two;The time format one includes at least first part and Part III, wherein first Part is:The present, yesterday, it is bright, preceding, close, upper, rear and big after in it is any, Part III is:Day, day, the moon, week, year, number, week and gift Any in visiing, the time format two includes Part IV and Part V, and wherein Part IV is number, and Part V is: The moon, day, year and number in it is any;
Using the temporal information for meeting scheduled time format identified to the search time model of the initialization It encloses and adjusts, obtain final search time range.
Preferably, the time format one can also include second part, and second part is number.
Preferably, when scheduled time format include time format for the moment, it is described using identifying when meeting scheduled Between the temporal information of format adjust specially to the search time range of initialization:Meet the scheduled time using what is identified The temporal information of format does time migration to the search time range of initialization.
Preferably, described using identifying when meeting scheduled when scheduled time format includes time format two Between the temporal information of format adjust specially to the search time range of initialization:Meet the scheduled time using what is identified The temporal information of format does element of time replacement to the search time range of initialization.
Preferably, when scheduled time format includes time format one and time format two, what the use identified The temporal information for meeting scheduled time format adjusts specially to the search time range of initialization:
Whether judge in the information of the reception containing the temporal information for meeting one/time format of time format two;
It is replaced if so, doing time migration/element of time to the search time range of initialization;
If it is not, whether containing the time letter for meeting two/time format of time format one in judging the information of the reception again Breath;
If so, doing element of time replacement/time migration to the search time range of initialization.
Preferably, the search time range of described pair of initialization does time migration, may include:
The corresponding time migration parameter of each section, institute in the temporal information for meeting time format one recognized described in determination Time migration parameter is stated as unit of day;
Using the product of the corresponding time migration parameter of determining each section as final time offset;
The search time range of the initialization is deviated using the final time offset.
Preferably, described the present, yesterday, bright, preceding, close, upper, rear and big rear corresponding time migration parameter can be respectively: 0, -1,1, -1 or -2, -1, -1,1 or 2,3;The day, day, the moon, week, year, number, week and week corresponding time migration Parameter can be respectively:1、1、30、7、365、1、7、7.
Preferably, the search time range of described pair of initialization does element of time replacement, may include it is any one of following or It is multinomial:The year information in the search time range of initialization is replaced using the year information recognized, using the month information recognized When replacing the month information in the search time range of initialization and replacing the search of initialization using the day recognized or number information Between day information in range.
The present invention also provides a kind of search time ranges determination devices applied in search engine, including
Reception and initialization module, for receiving information input by user, and initialize search time range;
Identification module meets the temporal information of scheduled time format for identification in the information of the reception, described pre- Fixed time format includes time format one and/or time format two;The time format one includes at least first part and the Three parts, wherein first part are:The present, yesterday, it is bright, preceding, close, upper, rear and big after in it is any, Part III is:Day, day, the moon, Week, year, number, it is any in week and week, the time format two includes Part IV and Part V, and wherein Part IV is Number, Part V are:The moon, day, year and number in it is any;
Processing module, the temporal information for meeting scheduled time format for being recognized using the identification module is to institute The search time range for stating reception and initialization module initialization adjusts, and obtains final search time range.
Preferably, the time format one can also include second part, and second part is number.
Beneficial effects of the present invention:
The embodiment of the present invention, for information input by user, identification is wherein matched with time format one or time format two Temporal information, and adjusted to the time range of initialization according to the temporal information recognized in this way, need not use Family input time in temporal information frame according to fixed format does not need user yet and selects the time from selection of time frame, uses Family only need according to normal temporal expressions mode input the information containing temporal information can, such as directly input " today west The price of melon ", therefore the Experience Degree of user can be improved;In addition, the concrete form of time format one or time format two It is the summary to existing time expression form and proposes, therefore is identified according to time format one or time format two, Have the characteristics that identification is wide, recognition accuracy is high.
Description of the drawings
The invention will be further described with reference to the accompanying drawings and examples:
Fig. 1 is the first embodiment provided by the invention applied to the search time range determining method in search engine Flow diagram.
Fig. 2 is the second embodiment provided by the invention applied to the search time range determining method in search engine Flow diagram.
Fig. 3 is the 3rd embodiment provided by the invention applied to the search time range determining method in search engine Flow diagram.
Fig. 4 is the fourth embodiment provided by the invention applied to the search time range determining method in search engine Flow diagram.
Fig. 5 is the structure of the embodiment provided by the invention applied to the search time ranges determination device in search engine Schematic diagram.
Fig. 6 is the structural schematic diagram of the embodiment of first processing units.
Fig. 7 is the structural schematic diagram of the embodiment of second processing unit.
Fig. 8 is the structural schematic diagram of the embodiment of third processing unit.
Specific implementation mode
Referring to FIG. 1, being the first of the search time range determining method provided by the invention applied in search engine The flow diagram of embodiment comprising:
Step S11, information input by user is received, and initializes search time range.
Step S12, meet the temporal information of scheduled time format in the information received in identification step S11.
Wherein, scheduled time format includes time format one and/or time format two;The time format one is at least wrapped First part and Part III are included, wherein first part is:The present, yesterday, it is bright, preceding, close, upper, rear and big after in any, Part III For:Day, day, the moon, week, year, number, it is any in week and week, the time format two includes Part IV and Part V, Middle Part IV is number, and Part V is:The moon, day, year and number in it is any.
Step S13, search of the temporal information for meeting scheduled time format recognized using step S12 to initialization Time range adjusts, and obtains final search time range.
The time format one and time format that the present embodiment proposes are second is that propose the summary of the common expression-form of time Go out, common temporal expressions form for example can be:" on August 12nd, 2013 ", " August 12 days ", " No. 12 ", " August 12 Day ", " tomorrow ", " today ", " today ", " tomorrow ", " day after tomorrow ", " day before yesterday ", " nearly one week ", " a nearly week ", " last gift Visit ", " last month ", " next month ", " nearly one month ", " first 3 days ", " upper 1 week " and " first three day " etc..
Wherein, time format one includes three parts, and wherein first part is mainly:It is the present, yesterday, bright, preceding, close, upper, rear and big Any in afterwards, second part is mainly number, and Part III is mainly:Day, day, the moon, week, year, number, appoint in week and week One, wherein second part can be default, such as:The expression formula of some times is " first three day ", and three parts have at this time, and some The expression formula of time is " day before yesterday ", lacks second part at this time, but this is allowed.
Wherein, time format two is mainly made of Part IV and Part V, and wherein Part IV is digital, the 5th It is divided into:The moon, day, year and number in it is any, the common form of expression is such as " 02 year ", " No. 25 ", " August ", " 13 days ", etc. Deng.
The present embodiment, for information input by user, when identifying wherein with time format one or matched time format two Between information, and according to the temporal information recognized to the search time range of initialization do offset or element of time replace It changes, final search time range is determined with this in this way, do not need user according to fixed format in temporal information frame Input time does not need user yet and time, user is selected only to need according to normal temporal expressions mode from selection of time frame Input the search term containing temporal information can, such as directly input " price of nearly one week egg ", therefore can reduce The operation complexity of user improves the Experience Degree of user, while it is also possible that corresponding Webpage search interface is more succinct.
Referring to FIG. 2, being the second of the search time range determining method provided by the invention applied in search engine The flow diagram of embodiment comprising:
Step S21, information input by user is received, and initializes search time range.
Wherein, information input by user can be such as " June in 2013 Chinese cabbage on the 5th price, today watermelon price, Which the preferential activity of tomorrow, the news of last week, nearly work in three days has, nearly 1 year house transaction situation " etc. contain The search type of temporal information.
Wherein, when initializing search time range, search time range will can be initialized today, such as:It is when today When August in 2013 12 days, then initialization time is ranging from:start(Start)=2013 on Augusts 12,00:00:00, end(Knot Beam)=2013 on Augusts 12,23:59:59.
Step S22, meet the temporal information of time format one in the information received in identification step S21.
Step S23, the corresponding time migration ginseng of each section in the temporal information for meeting time format one recognized is determined Number.
Step S24, the determining corresponding time migration parameter of each section is multiplied as final time offset.
Step S25, the time search range of the initialization is deviated using final time offset.
Wherein, the keyword in time format one per part corresponds to time migration parameter, and time migration parameter is single with day Position, keyword is stored with time migration parameter in the form of time migration parameter mapping table, and wherein time migration is joined Number mapping table can be as shown in Table 1.
Table one:
In Table 1, "-" number indicates backward(Past)Offset, "+" number indicate forward(Future)Offset.Such as " -1 " indicates One day, i.e. yesterday are deviated backward, and "+1 " indicates biased forwards one day, i.e. tomorrow, and " centre is without any number " is hypodactylia second Corresponding deviant when part, such as " preceding " corresponding deviant was " -2 " in " day before yesterday ", and it is " preceding " corresponding in " first three day " Deviant be " -1 ".
Wherein, after each section corresponding time migration parameter is determined, result that each section is multiplied by the present embodiment As final time offset, such as:First part and the corresponding time migration parameter of Part III are in " today " " 0 " and " 1 ", then " today " corresponding final time offset is 0*1=0, in another example first part's " close " in " nearly 10 days " Corresponding time migration parameter is " -1 ", and as a whole, corresponding time migration parameter is intermediate continuous number " 10 ", the corresponding time migration parameter of Part III " day " are 1, and therefore " nearly 10 days " corresponding time offset is " -1*10*1 =-10 ".
Enumerate some common corresponding time offsets of temporal expressions mode again below, such as:
" first three day "=- 1*3*1
" yesterday "=- 1*1
" a upper week "=- 1*1*1*7
" tomorrow "=1*1
" nearly one month "=- 1*1*1*30
" nearly ten days "=- 1*10*1
" first 2 days "=- 1*2*1
Wherein, after final time offset determines, using the time offset to the time search range of initialization Time migration is daily done, it herein can be to the initial time in the time search range of initialization(start)Time migration is done, or Person can be to initial time(start)And the end time(end)Do time migration.
For example, initialization time is ranging from:start(Start)=2013 on Augusts 12,00:00:00, end(Terminate)= August 12 days 23 in 2013:59:59.Information input by user is " the watermelon price of the day before yesterday ".Then know from information input by user The temporal information being clipped to is " day before yesterday ", and " day before yesterday " corresponding time offset is " -2 ", therefore backward by start and end Offset two days, obtains final time search ranging from:start(Start)=2013 on Augusts 10,00:00:00, end(Terminate) =2013 on Augusts 10,23:59:59.In another example information input by user is " price of nearly three days eggs ", due to " nearly three days " Corresponding time offset is -3, therefore start is deviated backward three days, obtains final time search ranging from:start (Start)=2013 on Augusts 9,00:00:00, end(Terminate)=2013 on Augusts 12,23:59:59.
For similar " last month " or " nearly three months " this temporal expressions mode containing keyword " moon ", if by today Time range is initialized as into line displacement, possible accuracy is not high, at this moment it is contemplated that time search model will be initialized as this month It encloses, to increase accuracy.Such as:Initialization time search range is start(Start)=2013 on Augusts 01,00:00:00, end(Terminate)=2013 on Augusts 30,23:59:59.If information input by user be " last month XXX ", by temporal information " on A month " determine that time offset is -30, it is deviated using -30 pairs of starting and end times, obtains the final time Search range is:start(Start)=2013 on July 01,00:00:00, end(Terminate)=2013 on July 30,23:59:59. If input by user is " nearly three months XXX ", determine that time offset is -90 by temporal information " nearly three months ", using - 90 pairs of time starteds deviate, and obtain final time search ranging from:start(Start)=2013 on May 01,00:00: 00, end(Terminate)=2013 on Augusts 30,23:59:59.
In addition, for such as " last year ", " nearly 3 years ", this kind of temporal information containing keyword " year ", it may be considered that incite somebody to action this Time search range is initialized as year, to increase the accuracy of determining final search time range.
The present embodiment, for meeting the temporal information of " time format one ", by searching for the corresponding time migration of each section Parameter, and time offset is finally determined by the time migration parameter of each section, then the time offset pair finally determined by this The search time range of initialization deviates, defeated in conjunction with user so as to the search time range fast and accurately obtained The other keywords entered scan for, and can improve the accuracy of search result, improve user satisfaction.
Referring to FIG. 3, being the third provided by the invention applied to the search time range determining method in search engine The flow diagram of embodiment comprising:
Step S31, information input by user is received, and initializes search time range.
Wherein, step S31 is identical as the step S21 in Fig. 2, and this will not be repeated here.
Step S32, meet the temporal information of time format two in the information received in identification step S31.
Step S33, using the temporal information for meeting time format two of identification to time of the search time model of initialization, Month and/or date do element of time replacement, obtain final search time range.
Wherein, step S32 may recognize multiple temporal informations for meeting time format two, such as:It is input by user to be The price of gold on the 5th " April in 2013 ", three temporal informations for meeting time format two are contained in the information, are respectively " 2013 ", " April " and " 5 days ", these are required to respectively all identification.
Wherein, in step S33 is done to the search time range of initialization replacement, the moon that element of time replacement refers to year information The replacement of information and/or day(Number)Information is replaced, specifically, step S33 includes replacing initialization using the year information recognized Search time range in year information, the month information in the search time range of initialization is replaced using the month information that recognizes With initialization is replaced using day for recognizing or number information search time range in day in information at least one of or it is multinomial.
Such as:Initialize search time ranging from:start(Start)=2013 on Augusts 12,00:00:00, end(Terminate) =2013 on Augusts 12,23:59:59.Input by user is the price of gold on the 5th " April in 2013 ", due to being wrapped in the information Three temporal informations for meeting time format two are contained, have been respectively " 2013 ", " April " and " 5 days ", then when the search initialized Between range do the search time obtained after the replacement of year information, month information and day information ranging from:start(Start)=2013 years 4 On the moon 5 00:00:00, end(Terminate)=2013 on April 5,23:59:59.
Enumerate the corresponding adjustment mode of some temporal informations again below:
" on June 5th, 2013 "=by Start the and end times, (modification year is 2013,5) it is that the modification moon, which was 6 modification days,
" June 5 "=by Start and end times (modification the moon be 6 modification days be 5)
" June 12 "=by Start and end times (modification the moon be 6 modification days be 12)
" 12 days "=by Start and end times (modification day be 12)
" June 5 "=by Start and end times (modification the moon be 6 modification days be 5)
" June 5 "=by Start and end times (modification the moon be 6 modification days be 5)
" March 10 "=by Start and end times (modification the moon be 3 modification days be 10)
" 2012 on July 2, "=by Start and end times (modification year be 7 modification days the 2012 modification moons be 2)
The present embodiment, for contain in user's input information year information, month information and/or day information, when being used Between format two identify, then directly replace corresponding year information, month information and/or day information within the scope of time search, really Fixed final search time range.
Referring to FIG. 4, being the 4th of the search time range determining method provided by the invention applied in search engine the The flow diagram of embodiment comprising:
Step S41, information input by user is received, and initializes search time range.
Step S42, judge receive information in whether having time format match time format one;If so, executing step S43, it is no to then follow the steps S44.
Step S43, it in such a way that Fig. 2 is addressed, determines final search time range, terminates flow.
Step S44, judge receive information in whether having time information matches time format two;If so, executing step Otherwise S45 terminates flow.
Step S45, it in such a way that Fig. 3 is addressed, determines final search time range, terminates flow.
In practical applications, for information input by user, not only may be used Fig. 2 or Fig. 3 mode determine it is final Search time range can also attempt to integrated use two ways, i.e., when a kind of mode cannot identify with another Kind.The sequencing of S44 and S42 does not absolutely limit, and S44 can also first be used to judge whether having time is believed in the information received Cease match time format two, execute again if not step S42 judge in the information of reception whether having time format match time format One.
Referring to FIG. 5, being the implementation provided by the invention applied to the search time ranges determination device in search engine The structural schematic diagram of example comprising:
Reception and initialization module 1, for receiving information input by user, and initialize search time range.
Wherein, information input by user can be such as " June in 2013 Chinese cabbage on the 5th price, today watermelon price, Which the preferential activity of tomorrow, the news of last week, nearly work in three days has, nearly 1 year house transaction situation " etc. contain The search type of temporal information.
Wherein, when initializing search time range, search time range will can be initialized today, such as:It is when today When August in 2013 12 days, then initialization time is ranging from:start(Start)=2013 on Augusts 12,00:00:00, end(Knot Beam)=2013 on Augusts 12,23:59:59.
Identification module 2 meets the temporal information of scheduled time format, when scheduled for identification in the middle information received Between format include time format one and/or time format two.
Wherein, time format one includes three parts, and wherein first part is mainly:It is the present, yesterday, bright, preceding, close, upper, rear and big Any in afterwards, second part is mainly number, and Part III is mainly:Day, day, the moon, week, year, number, appoint in week and week One, wherein second part can be default, such as:The expression formula of some times is " first three day ", and three parts have at this time, and some The expression formula of time is " day before yesterday ", lacks second part at this time, but this is allowed.
Wherein, the keyword in time format one per part corresponds to time migration parameter, and time migration parameter is single with day Position, keyword is stored with time migration parameter in the form of time migration parameter mapping table, and wherein time migration is joined Number mapping table can be as shown in the table one of front.
Wherein, time format two is mainly made of Part IV and Part V, and wherein first part is digital, second It is divided into:The moon, day, year and number in it is any, the common form of expression is such as " 02 year ", " No. 25 ", " August ", " 13 days ", etc. Deng.
Processing module 3, the temporal information for meeting scheduled time format for being identified described in use is to described initial The search time range of change adjusts, and obtains final search time range.
Processing module 3 includes first processing units 31, second processing unit 32 and third processing unit 33.
First processing units 31 are included time format a period of time for working as scheduled time format, are met using what is identified The temporal information of scheduled time format does time migration to the search time range of initialization.
Second processing unit 32, for when scheduled time format includes time format two, being met using what is identified The temporal information of scheduled time format does element of time replacement to the search time range of initialization.
Third processing unit 33, for when scheduled time format includes time format one and time format two, judging Whether contain the temporal information for meeting one/time format of time format two in the information of the reception;If so, to initialization Search time range is done time migration/element of time and is replaced;If it is not, whether containing when meeting in judging the information of the reception again Between two/time format of format one temporal information;If so, to the search time range of initialization do element of time replacement/when Between deviate.
As shown in fig. 6, first processing units 31 include in one embodiment:
Determination subelement 311, each section pair in the temporal information for meeting time format one for being recognized described in determination The time migration parameter answered.
Multiplication subelement 312, the corresponding time migration parameter of each section for determining the determination unit 31 multiply Product is as final time offset.
First offset subelement 313, for the search time using the final time offset to the initialization Range deviates.
As shown in fig. 7, second processing unit 32 includes mainly in a kind of its embodiment:
Year information replacement subelement 321, for being replaced in the search time range initialized using the year information recognized Year information.
Month information replaces subelement 322, in the search time range for replacing initialization using the month information recognized Month information.
Day information replacement subelement 323, the search time model for replacing initialization using the day recognized or number information Day information in enclosing.
As shown in figure 8, third processing unit 33 includes mainly in a kind of its embodiment:
Judgment sub-unit 333 meets one/time format of time format two for judging whether to contain in the information received Temporal information;If so, calling the search time range that the second offset 331/ information of subelement replaces subelement 332 to initialization Time migration/element of time is done to replace;Meet time format two/when layout if it is not, judging whether to contain in the information received again The temporal information of formula one;If so, when recalls information replaces search of the offset subelement 331 of subelement 332/ second to initialization Between range do element of time replacement/time migration
Second offset subelement 331 is specifically used for:In the temporal information for meeting time format one recognized described in determination The corresponding time migration parameter of each section, the time migration parameter is as unit of day;By determining each section corresponding time The product of offset parameter is as final time offset;Search using the final time offset to the initialization Time range deviates.
Information is replaced subelement 332 and is specifically used for:The search time range of initialization is replaced using the year information recognized In year information, month information in the search time range of initialization is replaced using the month information that recognizes and using recognizing Day or number information replace the day information in the search time range of initialization.
The embodiment of the present invention, for information input by user, identification is wherein believed with the scheduled time format matched time Breath, and offset is done to the search time range of initialization according to the temporal information recognized or does the replacement of element of time, Final search time range is determined with this in this way, it is defeated in temporal information frame according to fixed format not need user The angle of incidence does not need user yet and time, user is selected only to need defeated according to normal temporal expressions mode from selection of time frame Enter the information containing temporal information can, such as directly input " price of nearly one week egg ", therefore user can be reduced Operation complexity, improve the Experience Degree of user, while it is also possible that corresponding Webpage search interface is more succinct.
Finally illustrate, the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although with reference to compared with Good embodiment describes the invention in detail, it will be understood by those of ordinary skill in the art that, it can be to the skill of the present invention Art scheme is modified or replaced equivalently, and without departing from the objective and range of technical solution of the present invention, should all be covered at this In the right of invention.

Claims (5)

1. a kind of search time range determining method applied in search engine, it is characterised in that:Including
Information input by user is received, and initializes search time range;
Identify the temporal information for meeting scheduled time format in the information input by user, the scheduled time format packet Include time format one and time format two;The time format one includes at least first part and Part III, wherein first It is divided into:The present, yesterday, it is bright, preceding, close, upper, rear and big after in it is any, Part III is:Day, day, the moon, week, year, number, week and week In it is any, the time format two includes Part IV and Part V, and wherein Part IV is number, and Part V is:Month, Day, year and number in it is any;
It is adjusted, is obtained to the search time range of initialization using the temporal information for meeting scheduled time format identified Final search time range;
The time format one further includes second part, and second part is number;
When scheduled time format include time format for the moment, using the temporal information for meeting scheduled time format identified To the search time range of initialization adjust for:
Time migration is done to the search time range of initialization using the temporal information for meeting scheduled time format identified; When scheduled time format includes time format one and time format two, using the scheduled time format that meets identified Temporal information to the search time range of initialization adjust for:
Whether judge in the information received containing the temporal information for meeting time format one or time format two;
If so, doing time migration or element of time replacement to the search time range of initialization;
If it is not, whether containing the temporal information for meeting time format two or time format one in judging the information of the reception again;
If so, doing element of time replacement or time migration to the search time range of initialization;
Time migration is done to the search time range of initialization, including:
Determine that the corresponding time migration parameter of each section in the temporal information for meeting time format one recognized, the time are inclined Shifting parameter is as unit of day;
Using the product of the corresponding time migration parameter of determining each section as final time offset;
The search time range of the initialization is deviated using the final time offset.
2. as described in claim 1 applied to the search time range determining method in search engine, it is characterised in that:When pre- When fixed time format includes time format two, using the temporal information for meeting scheduled time format identified to initialization Search time range adjust for:
Element of time is done to the search time range of initialization using the temporal information for meeting scheduled time format identified It replaces.
3. as claim 1,2 any one of them are applied to the search time range determining method in search engine, feature It is:
Described the present, yesterday, bright, preceding, close, upper, rear and big rear corresponding time migration parameter are respectively:0, -1,1, -1 or -2, - 1, -1,1 or 2,3;
The day, day, the moon, week, year, number, week and week corresponding time migration parameter be respectively:1、1、30、7、365、1、 7、7。
4. as claimed in claim 2 applied to the search time range determining method in search engine, it is characterised in that:It is described Element of time replacement is done to the search time range of initialization, including any one of following or multinomial:Using the year information recognized The year information in the search time range of initialization is replaced, the search time range of initialization is replaced using the month information recognized In month information and the day information in the search time range of initialization is replaced using day for recognizing or number information.
5. a kind of search time ranges determination device applied in search engine, it is characterised in that:Including
Reception and initialization module, for receiving information input by user, and initialize search time range;
Identification module meets the temporal information of scheduled time format for identification in the information input by user, described pre- Fixed time format includes time format one and time format two;The time format one includes at least first part and third portion Point, wherein first part is:The present, yesterday, it is bright, preceding, close, upper, rear and big after in it is any, Part III is:Day, day, the moon, week, year, Number, it is any in week and week, the time format two includes Part IV and Part V, and wherein Part IV is number, Part V is:The moon, day, year and number in it is any;
Processing module, the temporal information for meeting scheduled time format for being recognized using the identification module are connect to described It receives and the search time range of initialization module initialization adjusts, obtain final search time range;
The time format one further includes second part, and second part is number;
When scheduled time format include time format for the moment, using the temporal information for meeting scheduled time format identified To the search time range of initialization adjust for:
Time migration is done to the search time range of initialization using the temporal information for meeting scheduled time format identified;
When scheduled time format includes time format one and time format two, using layout when meeting scheduled identified The temporal information of formula to the search time range of initialization adjust for:
Whether judge in the information received containing the temporal information for meeting time format one or time format two;
If so, doing time migration or element of time replacement to the search time range of initialization;
If it is not, whether containing the temporal information for meeting time format two or time format one in judging the information of the reception again;
If so, doing element of time replacement or time migration to the search time range of initialization.
CN201310410046.6A 2013-09-10 2013-09-10 Applied to the search time range determining method and device in search engine Active CN104424327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310410046.6A CN104424327B (en) 2013-09-10 2013-09-10 Applied to the search time range determining method and device in search engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310410046.6A CN104424327B (en) 2013-09-10 2013-09-10 Applied to the search time range determining method and device in search engine

Publications (2)

Publication Number Publication Date
CN104424327A CN104424327A (en) 2015-03-18
CN104424327B true CN104424327B (en) 2018-09-14

Family

ID=52973301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310410046.6A Active CN104424327B (en) 2013-09-10 2013-09-10 Applied to the search time range determining method and device in search engine

Country Status (1)

Country Link
CN (1) CN104424327B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293647A (en) * 2015-05-12 2017-01-04 江苏金思维软件有限公司 A kind of software inquiry method and system supporting the relative-date time
CN108628603A (en) * 2017-03-16 2018-10-09 北京京东尚科信息技术有限公司 A kind of method, apparatus, equipment and storage medium that time setting value is provided
CN108776679B (en) * 2018-05-30 2021-12-07 百度在线网络技术(北京)有限公司 Search word classification method and device, server and storage medium
US11797615B2 (en) 2019-07-02 2023-10-24 International Business Machines Corporation Random sampling from a search engine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955963A (en) * 2005-10-25 2007-05-02 国际商业机器公司 System and method for searching dates in electronic documents
CN101710321A (en) * 2009-10-28 2010-05-19 金蝶软件(中国)有限公司 Method and device for querying database date and database

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050149858A1 (en) * 2003-12-29 2005-07-07 Stern Mia K. System and method for managing documents with expression of dates and/or times

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955963A (en) * 2005-10-25 2007-05-02 国际商业机器公司 System and method for searching dates in electronic documents
CN101710321A (en) * 2009-10-28 2010-05-19 金蝶软件(中国)有限公司 Method and device for querying database date and database

Also Published As

Publication number Publication date
CN104424327A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
US20200159392A1 (en) Method of processing content and electronic device thereof
CN104424327B (en) Applied to the search time range determining method and device in search engine
EP2521050A2 (en) Handheld electronic device and method for accessing bookmark
JP5405586B2 (en) Handwritten character recognition method and handwritten character recognition apparatus
US20140089314A1 (en) Function-presenting system, terminal device, server device, program and function-presenting method
US7660792B2 (en) System and method for spam identification
WO2015135353A1 (en) Search method, system, and device
US10049149B2 (en) Computerized system and method for search query auto-completion
CN105335519A (en) Model generation method and device as well as recommendation method and device
CN107766399B (en) Method and system for matching images to content items and machine-readable medium
US8635212B1 (en) Floating ranking of product results
US20110191768A1 (en) Systems and Methods to Identify Users Using an Automated Learning Process
WO2013166916A1 (en) Information search method and server
CN107785021A (en) Pronunciation inputting method, device, computer equipment and medium
CN110019647A (en) A kind of keyword search methodology, device and search engine
JP2009512067A5 (en)
TW200928817A (en) Method and system of creating a personalized homepage
CN101183351B (en) Literal input method and system thereof
CN110019722A (en) Reply sort method, device and the computer readable storage medium of dialog model
CN105653673B (en) Information search method and device
CN106462613B (en) Ranking suggestions based on user attributes
US9075898B1 (en) Generating and ranking incremental search suggestions for personal content
CN109740072B (en) Hotel ordering method and system based on POI under OTA platform
WO2012109959A1 (en) Clustering method and device for search terms
WO2012162541A1 (en) Method and apparatus of providing suggested terms

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200610

Address after: Room 502-1, floor 5, building 2, courtyard 10, KEGU 1st Street, economic development zone, Daxing District, Beijing 100081

Patentee after: Singularity Xinyuan International Technology Development (Beijing) Co.,Ltd.

Address before: The 401121 northern New District of Chongqing municipality Mount Huangshan Road 5 south of Mercury Technology Building 1 floor office No. 3

Patentee before: A-MEDIA COMMUNICATION TECH Co.,Ltd.

TR01 Transfer of patent right