|
-
Feb 20th, 2009, 02:54 AM
#1
Thread Starter
Fanatic Member
Search Result for anything that containt 'x' word
right now i want to develop searching mechanism, it sound like google..so user type some words and the program will search for any column in certain table(or maybe entire tables in Database) and display the result..
can i use something like that in SQL Server 2005?
needs some idea
thanks,
-
Feb 20th, 2009, 07:50 AM
#2
Frenzied Member
-
Feb 20th, 2009, 10:10 AM
#3
Thread Starter
Fanatic Member
Re: Search Result for anything that containt 'x' word
thanks VBNewComer,
but that's not what i mean, u just search based on "CompanyName" while the searching i mean is for whole field in whole table in one Database
just like google mechanism, type once but it's for all the criteria above..
i think it involved using Full Text Search...
still need to digg it more
-
Feb 20th, 2009, 10:19 AM
#4
Re: Search Result for anything that containt 'x' word
I seriously doubt that Google searches multiple columns - I would expect them to have a single column for search words.
To be able to search multiple columns, you need to use multiple conditions, eg:
Code:
WHERE Field1 = Value
OR Field2 = Value
OR Field3 = Value
You may find that Full Text Search is useful, I've never found a need for it myself so can't remember exactly what it does.
-
Feb 20th, 2009, 10:25 AM
#5
Thread Starter
Fanatic Member
Re: Search Result for anything that containt 'x' word
thanks si
I seriously doubt that Google searches multiple columns - I would expect them to have a single column for search words -> maybe, what i'm thinking is because they can dispay same url for different keywords
To be able to search multiple columns, you need to use multiple conditions -> yes..but i ended up using many OR conditions
You may find that Full Text Search is useful, I've never found a need for it myself so can't remember exactly what it does. -> i'll inform what i found later
-
Feb 20th, 2009, 10:36 AM
#6
Re: Search Result for anything that containt 'x' word
 Originally Posted by erickwidya
I seriously doubt that Google searches multiple columns - I would expect them to have a single column for search words
-> maybe, what i'm thinking is because they can dispay same url for different keywords
I expect they have one table for the keywords, one for page data (such as URL), and one for KeywordsPerPage - which would contain the ID's from the other two tables (one row for each keyword on a page).
The search (ignoring the ranking process!) would theoretically be in two stages, find the ID's for the Keywords, and then search KeywordsPerPage by those ID's.
Admittedly they probably use data-warehouse techniques rather than a standard relational model, but it would still only involve one keyword column.
-
Feb 20th, 2009, 05:59 PM
#7
Re: Search Result for anything that containt 'x' word
Have a search for GetSchema, it will return important datas like tables and columns which you may query against.
-
Feb 23rd, 2009, 03:56 AM
#8
Thread Starter
Fanatic Member
Re: Search Result for anything that containt 'x' word
thanx dee-u, i'll take a look
Full Text Search can do what i need
With full-text searching, you can perform many other types of search:
* Two words near each other
* Any word derived from a particular root (for example run, ran, or running)
* Multiple words with distinct weightings
* A word or phrase close to the search word or phrase
u can read it more here
-
Sep 14th, 2009, 06:36 AM
#9
New Member
Re: Search Result for anything that containt 'x' word
Last edited by khab00key; Sep 14th, 2009 at 06:47 AM.
-
Sep 14th, 2009, 06:45 AM
#10
Re: Search Result for anything that containt 'x' word
Welcome to VBForums 
Please do not add your questions to other peoples threads - especially when the thread topic is almost completely irrelevant to what you are doing (while there is a minor element of similarity, there are massive differences in the language etc).
As your question is about the VB Editor in Excel (which is VBA rather than VB), you should post a new thread in our Office Development forum
-
Sep 14th, 2009, 04:55 PM
#11
Re: Search Result for anything that containt 'x' word
 Originally Posted by si_the_geek
You may find that Full Text Search is useful, I've never found a need for it myself so can't remember exactly what it does.
Normally you can't index a varchar/char field which is more than 900 characters in length. The full text search comes into this scene. It can index large text fields and also has its own support keywords for searching thru that data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|