A kind of method of flexible deployment search
Technical field
The present invention relates to a kind of searching method, relate in particular to a kind of searching method of application software.
Background technology
Intelligent terminal has become the indispensable mobile communication product of consumer, and along with the fast development of intelligent terminal, the application software that is fit to intelligent terminal is also more and more.The intelligent terminal user need be according to the demand of self from numerous application software, searches out required application software and installs and use.
In the prior art, realize that on intelligent terminal the way of search of application software mainly contains:
1) various application software realize the function of search of oneself respectively, and the mode of every kind of application software realization all has nothing in common with each other;
2) utilize special-purpose search application software, realize search several kinds of application software;
3) on mobile phone, realize search client, on server, realize search multiple application.
The way of search of above application software, various application software are complicated, make user's search operation very loaded down with trivial details, and search efficiency are lower.
Summary of the invention
In order to solve the deficiency that prior art exists, the present invention provides a kind of method of flexible deployment search, makes common application software realize the function of search.
To achieve these goals, the method for flexible deployment search provided by the invention may further comprise the steps:
1) configuration file of establishment application software;
2) collect application software, and according to its configuration file to its data creation index;
3) input information with the user combines with the Apply Names of application software, and search index obtains Search Results.
Wherein, the content of the configuration file of said application software comprises: generic resource identifier, Apply Names and attribute-name tabulation.
Wherein, said step 2) further may further comprise the steps: collect application software, read the configuration file of application software; Obtain generic resource identifier, Apply Names and attribute-name tabulation; Read the data of application software and create search index;
Wherein, the said step that reads the data of application software and create search index is: read the data of application software according to the generic resource identifier of obtaining and attribute-name tabulation, and to said data that read and Apply Names establishment search index.
Wherein, said step 3) further may further comprise the steps: from user's input information, obtain search key, and said key word is combined with the Apply Names of application software, search index obtains Search Results.
The method of flexible deployment search of the present invention; Have following advantage and technique effect: only need write configuration file, search for input and result demonstration and get final product, make the application deployment function of search become very simple; And be fit to overall unified plan, just with maintenance.
Other features and advantages of the present invention will be set forth in instructions subsequently, and, partly from instructions, become obvious, perhaps understand through embodiment of the present invention.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, and with content of the present invention and embodiment, is used to explain the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram according to flexible deployment search of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.
Fig. 1 is the method flow diagram according to flexible deployment search of the present invention, and below with reference to Fig. 1, the method that flexible deployment of the present invention is searched for is described in detail:
At first; In step 101; When the application software of system need realize function of search, need write configuration file, the content of configuration file comprises: generic resource identifier (the Universal Resource Identifier that the own data of visit are described; Be called for short " uri "), Apply Names (mime), and the attribute-name tabulation (colums) that needs search;
Step 102; Search server is collected application software; Read the configuration file of each application software of collecting; Obtain generic resource identifier (uri), Apply Names (mime) and the attribute-name tabulation (colums) of application software, read the data of application software according to generic resource identifier of obtaining (uri) and attribute-name tabulation (colums), data and Apply Names (mime) the establishment search index that reads;
In step 103, application software is submitted searching request to search server, and user's input information and the Apply Names of this application software (mime) are sent to search server;
In step 104, search server is analyzed user's input information, obtains the key word of search, and the key word of searching for is combined with the Apply Names (mime) of application software, and the query search index obtains Search Results;
In step 105, search server returns to application software with the Search Results that obtains, and accomplishes the search of application software.
Utilize the method for flexible deployment search of the present invention, normal application software all can realize function of search, and search server can be used as the search of system and collects device, and collection needs to support the application software of function of search.When the application software of system need realize function of search, only need write configuration file, (uri) of the own data of visit is described, Apply Names (mime) needs the attribute-name tabulation (colums) of search.Search server just can be collected these application software, and according to its configuration file to its data creation index.When these application need search, it only needs user's input is submitted to search server with its Apply Names, and search server will return to this application with Search Results.
The search server task comprises two parts: 1, create index 2, utilize index search:
Search server at first reads the configuration file of each application of collecting, and obtains uri, mime and colums.Then, read the data of application, these data and mime are created search index according to uri and colums.When application software when search is submitted in search service to, search key is obtained in the input of search server analysis user, combines the mime of application, search index obtains Search Results.At last, search server returns to application with Search Results.
One of ordinary skill in the art will appreciate that: the above is merely the preferred embodiments of the present invention; Be not limited to the present invention; Although the present invention has been carried out detailed explanation with reference to previous embodiment; For a person skilled in the art, it still can be made amendment to the technical scheme of aforementioned each embodiment record, perhaps part technical characterictic wherein is equal to replacement.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.