Hi: Suppose I have a MySQL database named DB, and a table named ContactInfo. The following is its structure and some example data(Just one item):
Table----ContactInfo:
----------------------------------------------------------- name fullname phone ----------------------------------------------------------- NASA National Aeronautics and Space Administration 00000 -----------------------------------------------------------
Now I want to search the data under the table "ContactInfo" using the following manner:
1) No matter I enter "NASA" or "National Aeronautics and Space Administration" or the phone number, the right line(in this exmaple, just the first line) should be returned to me.
2) When I enter "National Aeronautics Administration" or "National Space Administration" or "American Aeronautics and Space Administration" or "American NASA" which does not have a exact match in the database,but the first line should be returned to me since the content in the first line are related to the requested string.
The manner two can be seen as the obscure search.
I have considered to use the "Full context search" such as the "Hpyer estraier" and "Lucene". However I found that my requirement is different more or less.
When using the "Hyper estraier" or "Lucene", the indexes shoule be built first according to the parsed plain text. Then start to search.
So does that mean I should change the data in my databse to multiple plain text files(each record in the table to a single file), and then build the index according to these files?
BTW, I just found that the MySQL support full text search, however we have to handle some Chinese characters, but it seems that mysql does support chinese characters full text search perfectly.
So, anyone can give me a suggestion?