CN103455498B - A kind of form keyword message localization method based on hypertext - Google Patents

A kind of form keyword message localization method based on hypertext Download PDF

Info

Publication number
CN103455498B
CN103455498B CN201210173024.8A CN201210173024A CN103455498B CN 103455498 B CN103455498 B CN 103455498B CN 201210173024 A CN201210173024 A CN 201210173024A CN 103455498 B CN103455498 B CN 103455498B
Authority
CN
China
Prior art keywords
keyword
row
search
highlighted
current
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
CN201210173024.8A
Other languages
Chinese (zh)
Other versions
CN103455498A (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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN201210173024.8A priority Critical patent/CN103455498B/en
Publication of CN103455498A publication Critical patent/CN103455498A/en
Application granted granted Critical
Publication of CN103455498B publication Critical patent/CN103455498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of form keyword message localization method based on hypertext, by monitoring keyword message change, triggering executes the request for creating search, creates search result set, traversal specifies hypertext form, and the cell object that every row specifies search for arranging is put into Search Results concentration;Traversal search result set, distinguish the cell object whether content includes keyword message, the word coloring for mating keyword message in cell object is highlighted, be expert at background is highlighted, be expert at for current keyword row record object background is projected and is highlighted.The localization method can specify search for row and scan for when hypertext list data is searched for, it is to avoid interference of the hash to user.

Description

A kind of form keyword message localization method based on hypertext
Technical field
The present invention relates to a kind of form keyword message localization method based on hypertext.
Background technology
At present, the data search function of providing in Web applications is typically completed using server-side database inquiry, But there is the demand searched for by page data in practical application.Majority of case in enterprise-level application item page data search In, the search of hypertext form is occupied than larger proportion.The browsers such as IE provide a kind of searching based on page data Rope.The search is to carry out data search coupling using keyword message in full page, although which can be searched for, positioning is all to be shown The matched data that shows, but its search for hypertext list data when do not have specific aim, can not specify search for row, can not search for hidden Tibetan is worth, and easily causes and mixes other interference informations a large amount of in Search Results, so as to the knowledge to user to true data available Not, search and bring many inconvenience.Additionally, in locating and displaying search result data, can only be in units of each coupling character, no It is easy to user to be compared, checks.
Content of the invention
It is an object of the invention to provide a kind of form keyword message localization method based on hypertext, which is super literary in search Row can be specified search for scan for during this list data, and the positioning of before and after's matched data can be carried out in units of table row.
Form keyword message localization method based on hypertext of the present invention, comprises the following steps:
Step one:The change of keyword message is monitored, when changing, event triggering executes the request for creating search;
Step 2:Judge whether current keyword information is contained in last time search keyword information;If being contained in last time Search keyword information, using last time search result set execution step four;If being not included in last time search keyword information, Execution step three;
Step 3:Search result set is created, traversal specifies hypertext form, the cell object for specifying search for arranging every row It is put into Search Results concentration;
Step 4:Traversal search result set, distinguishes the cell object whether content includes keyword message, will not include The cell object of keyword message is concentrated from the Search Results and is rejected;
Step 5:Keyword row record object set is created, Search Results each is concentrated cell object is be expert at and is regarded For keyword row record object, traversal search result set by all keyword rows record object be put into keyword row record right In as set, at the same delete unnecessary repeat to go, it is right that first keyword row record object of acquiescence is recorded for current keyword row As;
Step 6:The word coloring that last time search is arranged is removed, row background is highlighted or protrusion is highlighted and other effects;
Step 7:Will be prominent aobvious for the word coloring for mating keyword message in each cell object of search result set Show, all keyword rows record the be expert at background of object and are highlighted, the be expert at background of current keyword row record object is projected It is highlighted;
Step 8:The running fix of current home row, from keyword row record object set, finds current keyword row The position of record object;
Step 9:Position of the object in set is recorded according to current keyword row, which is found in set or front or rear Keyword row record object;
Step 10:The background that current keyword row records the corresponding row of object is changed to be highlighted, the keyword row for finding The background of the corresponding row of record object is changed to protrusion and is highlighted, while using the keyword row record object for finding as new current Keyword row records object.
Further, also include the statistics to Search Results, according to hypertext form, obtain the line information with keyword Object being recorded with current keyword row and the situation in object set being recorded in keyword row, counting statistics information is simultaneously used for showing Show.
Form keyword message localization method based on hypertext of the present invention, just for the finger of specified hypertext form Fixed row carry out data search, without to the page scan for elsewhere mate, so as to avoid hash to user Interference.Additionally, the present invention carries out before and after's matched data positioning in units of table row, the form of data coupling is highlighted OK, and current home row is highlighted, is easy to user to be compared, checks.Finally, the present invention is monitoring the change of keyword message When, a searching request will be all initiated in the change per secondary key, it is achieved that input keyword message, be searched in time on one side The function of matched data.
Description of the drawings
Fig. 1 is the flow chart that searches in the present invention;
Fig. 2 is the flow chart of the current home row of movement in the present invention;
Fig. 3 is the single-row schematic diagram of search form;
Fig. 4 is using the single-row schematic diagram of Fig. 3 search result sets search form;
Fig. 5 is search form multiple row schematic diagram.
Specific embodiment
In order to technical scheme is explained further, the present invention is explained in detail below by accompanying drawing is combined State.
As shown in Figure 1 and Figure 2, the form keyword message localization method based on hypertext of the present invention, including following step Suddenly:
Step one:The change of keyword message is monitored, when changing, event triggering executes the request for creating search;
Step 2:Judge whether current keyword information is contained in last time search keyword information;If being contained in last time Search keyword information, using last time search result set execution step four;If being not included in last time search keyword information, Execution step three;
Step 3:Search result set is created, traversal specifies hypertext form, the cell object for specifying search for arranging every row It is put into Search Results concentration;
Step 4:Traversal search result set, distinguishes the cell object whether content includes keyword message, will not include The cell object of keyword message is concentrated from the Search Results and is rejected;
Step 5:Keyword row record object set is created, Search Results each is concentrated cell object is be expert at and is regarded For keyword row record object, traversal search result set by all keyword rows record object be put into keyword row record right In as set, at the same delete unnecessary repeat to go, it is right that first keyword row record object of acquiescence is recorded for current keyword row As;
Step 6:The word coloring that last time search is arranged is removed, row background is highlighted or protrusion is highlighted and other effects;
Step 7:Will be prominent aobvious for the word coloring for mating keyword message in each cell object of search result set Show, all keyword rows record the be expert at background of object and are highlighted, the be expert at background of current keyword row record object is projected It is highlighted;
Step 8:The running fix of current home row, from keyword row record object set, finds current keyword row The position of record object;
Step 9:Position of the object in set is recorded according to current keyword row, which is found in set or front or rear Keyword row record object;
Step 10:The background that current keyword row records the corresponding row of object is changed to be highlighted, the keyword row for finding The background of the corresponding row of record object is changed to protrusion and is highlighted, while using the keyword row record object for finding as new current Keyword row records object.
Further, also include the statistics to Search Results, according to hypertext form, obtain the line information with keyword Object being recorded with current keyword row and the situation in object set being recorded in keyword row, counting statistics information is simultaneously used for showing Show.
Shown in Figure 3, keyword message A is input into in the input frame in Fig. 3, keyword message change is monitored in triggering Event, executes and creates searching request.By judging whether current keyword information A is contained in last time search keyword information, certainly Surely it is that still re-creating acquisition result set is used for traversal search result set and distinguishes each list of process using last time search result set First lattice object.For cell contents of object includes keyword message A, matching literal A is coloured, while including keyword The corresponding row of A is highlighted, and current keyword row record object is expert at(That is the first row in Fig. 3)With more prominent Highlighted fashion shows.Due to, input frame 1 in Fig. 3, forward navigation button 2, backward navigation button 3 and statistics viewing area 4 with Form 5 is associated, and now programmer is provided with certain parameter or extended attribute on the label of input frame 1, and value is " 1 ", that is, represent.As user in input frame input content (trigger event), the program will be according to defeated Enter content (keyword), the table cell of screening coupling in the specified row (i.e. first row) of association table 5, and to meeting bar The cell content coloring of part, background be expert to cell are highlighted, to the be expert at back of the body of current keyword row record object Scape is projected and is highlighted.Additionally, being counted by statistical function, the position is expert at by current keyword row record object(In Fig. 3 For 1), the sum be expert at comprising keyword message(It is 8 in Fig. 3)And total line number of form(It is 14 in Fig. 3).
Shown in Figure 4, continue supplementary input A, i.e. keyword message in the input frame in Fig. 3 and AA, relation are changed into from A The event of keyword message change is monitored in triggering, is executed and is created searching request.By judging that current keyword information AA is to include In last time search keyword information A, then using last time search result set.Remove the word coloring that last time search is arranged, the row back of the body Scape is highlighted or protrusion is highlighted and other effects.For cell contents of object includes keyword message AA, to coupling text Word AA is coloured, while the corresponding row for including keyword AA is highlighted, current keyword row record object is expert at (That is the first row in Fig. 4)Shown with more prominent highlighted fashion.Due to, input frame 1 in Fig. 4, forward navigation button 2, to Navigation button 3 and statistics viewing area 4 are associated with form 5 afterwards, and now programmer is provided with the label of input frame 1 Certain parameter or extended attribute, and value is " 1 ", that is, represent.As user, in input frame, input content (is touched The event of sending out), the program will be according to input content (keyword), screening in the specified row (i.e. first row) of association table 5 The table cell that matches somebody with somebody, and qualified cell content is coloured, background be expert to cell is highlighted, to current The be expert at background of keyword row record object is projected and is highlighted.Additionally, being counted by statistical function, current keyword row is remembered The position is expert at by record object(It is 1 in Fig. 4), the sum be expert at comprising keyword message(It is 6 in Fig. 4)And the head office of form Number(It is 14 in Fig. 4).
Shown in Figure 5, keyword message AA is input into in the input frame in Fig. 5, keyword message change is monitored in triggering Event, execute create searching request.By judging whether current keyword information AA is contained in last time search keyword information, Decision is that still re-creating acquisition result set is used for traversal search result set and distinguishes process respectively using last time search result set Cell object.For cell contents of object includes keyword message AA, matching literal AA is coloured, while comprising relevant The corresponding row of key word AA is highlighted, and the be expert at more prominent highlighted fashion of current keyword row record object is shown Show.As input frame 1 in Fig. 5, forward navigation button 2, backward navigation button 3 and statistics viewing area 4 are phases with form 5 Association, now programmer is provided with certain parameter or extended attribute on the label of input frame 1, and value is " 1,2 ", that is, represent First row and secondary series are searched for.As user in input frame input content (trigger event), the program will according to input in Hold (keyword), the table cell of screening coupling in the specified row (i.e. first row and secondary series) of association table 5, and to symbol The cell content coloring of conjunction condition, background be expert to cell are highlighted, and current keyword row record object is located Row background is projected and is highlighted.Now, if carrying out positioning action backward to form(" next " button in Fig. 5 is clicked on), Be the first row in figure by current home row, find its corresponding current keyword row record object record in keyword row right Position in as set.Current keyword row record object is found in set according to the position or front or rear keyword row is remembered The keyword row record object is defined as new key row record object, and changes the two keyword row records by record object Object influences to the more prominent of row be highlighted, that is, cancel the first row in Fig. 5 and project being highlighted, to Fig. 5 in the Two rows carry out projecting being highlighted.Additionally, being counted by statistical function, the position is expert at by current keyword row record object (It is 2 in Fig. 5), the sum be expert at comprising keyword message(It is 8 in Fig. 5)And total line number of form(It is 14 in Fig. 5).

Claims (2)

1. a kind of form keyword message localization method based on hypertext, comprises the following steps:
Step one:The change of keyword message is monitored, when changing, event triggering executes the request for creating search;
Step 2:Judge whether current keyword information is contained in last time search keyword information;If being contained in last time search Keyword message, using last time search result set execution step four;If being not included in last time search keyword information, execute Step 3;
Step 3:Search result set is created, traversal specifies hypertext form, and the cell object that every row specifies search for arranging is put into Search Results are concentrated;
Step 4:Traversal search result set, distinguishes the cell object whether content includes keyword message, will be not comprising crucial The cell object of word information is concentrated from the Search Results and is rejected;
Step 5:Keyword row record object set is created, Search Results each is concentrated cell object is be expert at and is considered as one Bar keyword row records object, and all keyword rows record object is put into keyword row record object set by traversal search result set In conjunction, at the same delete unnecessary repeat to go, first keyword row record object of acquiescence is that current keyword row records object;
Step 6:The word coloring that last time search is arranged is removed, row background is highlighted or protrusion is highlighted effect;
Step 7:The word coloring for mating keyword message in each cell object of search result set is highlighted, institute There is the be expert at background of keyword row record object to be highlighted, the be expert at background of current keyword row record object projects highlighted aobvious Show;
Step 8:The running fix of current home row, from keyword row record object set, finds current keyword row record The position of object;
Step 9:Position of the object in set is recorded according to current keyword row, which is found in set or front or rear pass Key word row records object;
Step 10:The background that current keyword row records the corresponding row of object is changed to be highlighted, the keyword row record for finding The background of the corresponding row of object is changed to protrusion and is highlighted, while using the keyword row record object for finding as new current key Word row records object.
2. form keyword message localization method according to claim 1 based on hypertext, is also included to Search Results Statistics, according to hypertext form, obtains and there is the line information and current keyword row of keyword to record object in keyword row Situation in record object set, counting statistics information are simultaneously used for showing.
CN201210173024.8A 2012-05-30 2012-05-30 A kind of form keyword message localization method based on hypertext Active CN103455498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210173024.8A CN103455498B (en) 2012-05-30 2012-05-30 A kind of form keyword message localization method based on hypertext

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210173024.8A CN103455498B (en) 2012-05-30 2012-05-30 A kind of form keyword message localization method based on hypertext

Publications (2)

Publication Number Publication Date
CN103455498A CN103455498A (en) 2013-12-18
CN103455498B true CN103455498B (en) 2017-03-15

Family

ID=49737879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210173024.8A Active CN103455498B (en) 2012-05-30 2012-05-30 A kind of form keyword message localization method based on hypertext

Country Status (1)

Country Link
CN (1) CN103455498B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649326A (en) * 2015-10-29 2017-05-10 北京国双科技有限公司 Search result display method and device
CN106649319A (en) * 2015-10-29 2017-05-10 北京国双科技有限公司 Search result display method and device
CN106649364B (en) * 2015-10-30 2020-03-27 北京国双科技有限公司 Table target column positioning method and device
CN107203528B (en) * 2016-03-16 2020-10-30 创新先进技术有限公司 Table retrieval method and device
CN110765079B (en) * 2018-07-27 2022-09-20 国信优易数据股份有限公司 Table information searching method and device
CN112269869B (en) * 2019-07-08 2024-07-23 珠海金山办公软件有限公司 Keyword query method and device
CN112307265A (en) * 2019-07-26 2021-02-02 珠海金山办公软件有限公司 Method, system, storage medium and terminal for searching chart in document

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466724A (en) * 2001-08-03 2004-01-07 ������������ʽ���� Retrieval device and retrieval method
JP2006031084A (en) * 2004-07-12 2006-02-02 Renesas Solutions Corp Search engine system and searching engine program
CN101299209A (en) * 2008-07-01 2008-11-05 金蝶软件(中国)有限公司 Method and device for high bright displaying form editing row
CN101615193A (en) * 2009-07-07 2009-12-30 北京大学 A kind of based on the integrated inquiry system of encyclopaedia data extract

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466724A (en) * 2001-08-03 2004-01-07 ������������ʽ���� Retrieval device and retrieval method
JP2006031084A (en) * 2004-07-12 2006-02-02 Renesas Solutions Corp Search engine system and searching engine program
CN101299209A (en) * 2008-07-01 2008-11-05 金蝶软件(中国)有限公司 Method and device for high bright displaying form editing row
CN101615193A (en) * 2009-07-07 2009-12-30 北京大学 A kind of based on the integrated inquiry system of encyclopaedia data extract

Also Published As

Publication number Publication date
CN103455498A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN103455498B (en) A kind of form keyword message localization method based on hypertext
CN103729359B (en) A kind of method and system recommending search word
US9594814B2 (en) Advanced field extractor with modification of an extracted field
US8874542B2 (en) Displaying browse sequence with search results
CN103279513B (en) The method of generation content tab is, provide the method and device of multimedia content information
US9135370B2 (en) Method and apparatus of generating update parameters and displaying correlated keywords
CN104820686B (en) A kind of network search method and network searching system
CN103365839B (en) The recommendation searching method and device of a kind of search engine
CN102117320B (en) Structured data searching method and device
US20150347420A1 (en) Performing Application Searches
US20140181125A1 (en) Systems and methods for facilitating the gathering of open source intelligence
US20150227590A1 (en) Patent search and display methods and systems
Chen et al. Senbazuru: A prototype spreadsheet database management system
JP2013531847A (en) Intelligent navigation method, apparatus and system
CN103023714A (en) Activeness and cluster structure analyzing system and method based on network topics
JP5829750B2 (en) Search method, system, and device
Bavota et al. TraceME: traceability management in eclipse
CN107066509B (en) Information providing method, processing server and merge server
CN104462461B (en) The method and device of investigation processing empty value is carried out to list
CN104216901B (en) The method and system of information search
Aligon et al. A holistic approach to OLAP sessions composition: The falseto experience
JP2016521889A (en) Cross model filtering
CN103279525A (en) Multi-condition linkage searching method based on Hash optimization
CN104391976A (en) Social object recommending method and device
Gassler et al. The snoopy concept: Fighting heterogeneity in semistructured and collaborative information systems by using recommendations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant