SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


full text search on people's names


full text search on people's names

Author
Message
wkader
wkader
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 126
Please bare with me because I have a complex design for getting search results in arabic and english.
My problem is that sometimes the search for some certain names is taking a long time.

I have a database with a list of people's names. The database has 10's of millions of records of people's names and relations between these people like mother, father, etc..
I have another database with a names dictionary in arabic and english. I use this database to get the different spelling varients of a name.


The way the search should work is as follows:

Lets say I search for: William Galeger
The search should first get william galegar, then it should get his parents if they are there, then it should get his children if they are there, then it should get all the people with Galegar last name, then the people whose name is William.
The search is also a bit more complex than this where I might Search for William John Galegor and John is considered the father.

All this should also be including the variety of names spellings.

What I did was create a table that has a record for every person.

This record will have a column for the person Id:

1- a column for the First name and last name with all varieties. like : william, wiliam, willyam, wilyam, galeger, galegor, galiger, galigor + the variety of names in arabic
2- a column with first name, last name , children's names with varieties.
3- a column with First name, last name, parents names with varieties.
4- a column with all varieties of first name
5- a column with all varieties of last name

I run 5 queries that use "full text search" on these columns in the order shown above.

I appreciate some ideas on this because I feel like this is not efficient but I am not finding a better way. I hope I was clear on what is required.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search