Hi
I'm working on a site which requires the users to specify a hotel at which
they're staying in London. The complete list of hotels comes to something
like 1600 records. Each record consists of Hotel Name, Street Address and
Postcode.
We need to make it as simple as possible for users to pick their hotel, but
I don't want to put 1600 hotel names in a drop-down list, and we have to
consider the fact that not every user is going to know the full name and
address of their hotel. Furthermore, we have to assume that misspellings
will be common and also the shortening of address elements. For example,
"Road" could be entered as "Rd", "Rd." or "Road"
"Street" could be "St", "St." or "Street"
"Lane" could be "Ln", "Lne" or "Lane" etc
Taking all these scenarios and requirements into hand can anyone suggest a
fool-proof yet easy to use mechanism for providing this sort of search
capability on a web-page?
I'm using ADO.NET to interface to Sql Server 2000 db. Would Full-text
indexing on this table be of any use?
I'm intersted to know how people would go about this themselves.
Thanks
Ben 8 1750
Hi Ben,
A little while ago, just before Google went public, Microsoft tried to buy
them. Why? Because they have the best search engine in the world. But, you
might ask, why would Microsoft, a software company that employs thousands of
programmers need to buy a search engine, when they can write their own? The
answer is simple: Google does almost nothing but search software. And it is
not easy to write. In fact, Google has thousands of computers to share the
load. Their search routines, while secret, must be humongous.
So, in answer to your question: Taking all these scenarios and requirements into hand can anyone suggest a fool-proof yet easy to use mechanism for providing this sort of search capability on a web-page?
The answer is "no." Not fool-proof, and by no stretch of the imagination
easy!
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Ben Fidge" <be*******@btopenworld.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Hi
I'm working on a site which requires the users to specify a hotel at which they're staying in London. The complete list of hotels comes to something like 1600 records. Each record consists of Hotel Name, Street Address and Postcode.
We need to make it as simple as possible for users to pick their hotel, but I don't want to put 1600 hotel names in a drop-down list, and we have to consider the fact that not every user is going to know the full name and address of their hotel. Furthermore, we have to assume that misspellings will be common and also the shortening of address elements. For example,
"Road" could be entered as "Rd", "Rd." or "Road" "Street" could be "St", "St." or "Street" "Lane" could be "Ln", "Lne" or "Lane" etc
Taking all these scenarios and requirements into hand can anyone suggest a fool-proof yet easy to use mechanism for providing this sort of search capability on a web-page?
I'm using ADO.NET to interface to Sql Server 2000 db. Would Full-text indexing on this table be of any use?
I'm intersted to know how people would go about this themselves.
Thanks
Ben
Hi Kevin,
I appreciate your comments but I'm still left with the task of providing
this functionality to our end-users. As you are probably aware, the average
web-user gets distracted or bored very easily, so the easier and more
intuitive I can make an interface the better. The aim here is to guide their
selection of hotel from a list using the most efficient and time-saving
means possible. As programmers, we need to be aware that 99% of the time our
users are not techies, but just want to buy products quickly and easily.
This is not an uncommon scenario, and i'm sure there's many developers out
there who may offer some insight into how they've tackled similar problems
in the past, be it a propritry solution or some third-party library we can
buy in.
Kind regards
Ben
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:e3**************@tk2msftngp13.phx.gbl... Hi Ben,
A little while ago, just before Google went public, Microsoft tried to buy them. Why? Because they have the best search engine in the world. But, you might ask, why would Microsoft, a software company that employs thousands of programmers need to buy a search engine, when they can write their own? The answer is simple: Google does almost nothing but search software. And it is not easy to write. In fact, Google has thousands of computers to share the load. Their search routines, while secret, must be humongous.
So, in answer to your question:
Taking all these scenarios and requirements into hand can anyone suggest a fool-proof yet easy to use mechanism for providing this sort of search capability on a web-page?
The answer is "no." Not fool-proof, and by no stretch of the imagination easy!
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get.
"Ben Fidge" <be*******@btopenworld.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Hi
I'm working on a site which requires the users to specify a hotel at which they're staying in London. The complete list of hotels comes to something like 1600 records. Each record consists of Hotel Name, Street Address and Postcode.
We need to make it as simple as possible for users to pick their hotel, but I don't want to put 1600 hotel names in a drop-down list, and we have to consider the fact that not every user is going to know the full name and address of their hotel. Furthermore, we have to assume that misspellings will be common and also the shortening of address elements. For example,
"Road" could be entered as "Rd", "Rd." or "Road" "Street" could be "St", "St." or "Street" "Lane" could be "Ln", "Lne" or "Lane" etc
Taking all these scenarios and requirements into hand can anyone suggest a fool-proof yet easy to use mechanism for providing this sort of search capability on a web-page?
I'm using ADO.NET to interface to Sql Server 2000 db. Would Full-text indexing on this table be of any use?
I'm intersted to know how people would go about this themselves.
Thanks
Ben
> in the past, be it a propritry solution or some third-party library we can buy in.
Now, there's an idea. Try Googling it. I wouldn't be surprised if you can
find something that works fairly well.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Ben Fidge" <be*******@btopenworld.com> wrote in message
news:uw**************@TK2MSFTNGP15.phx.gbl... Hi Kevin,
I appreciate your comments but I'm still left with the task of providing this functionality to our end-users. As you are probably aware, the average web-user gets distracted or bored very easily, so the easier and more intuitive I can make an interface the better. The aim here is to guide their selection of hotel from a list using the most efficient and time-saving means possible. As programmers, we need to be aware that 99% of the time our users are not techies, but just want to buy products quickly and easily.
This is not an uncommon scenario, and i'm sure there's many developers out there who may offer some insight into how they've tackled similar problems in the past, be it a propritry solution or some third-party library we can buy in.
Kind regards
Ben "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:e3**************@tk2msftngp13.phx.gbl... Hi Ben,
A little while ago, just before Google went public, Microsoft tried to buy them. Why? Because they have the best search engine in the world. But, you might ask, why would Microsoft, a software company that employs thousands of programmers need to buy a search engine, when they can write their own? The answer is simple: Google does almost nothing but search software. And it is not easy to write. In fact, Google has thousands of computers to share the load. Their search routines, while secret, must be humongous.
So, in answer to your question:
Taking all these scenarios and requirements into hand can anyone suggest a fool-proof yet easy to use mechanism for providing this sort of search capability on a web-page?
The answer is "no." Not fool-proof, and by no stretch of the imagination easy!
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get.
"Ben Fidge" <be*******@btopenworld.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Hi
I'm working on a site which requires the users to specify a hotel at which they're staying in London. The complete list of hotels comes to something like 1600 records. Each record consists of Hotel Name, Street Address and Postcode.
We need to make it as simple as possible for users to pick their hotel, but I don't want to put 1600 hotel names in a drop-down list, and we have to consider the fact that not every user is going to know the full name and address of their hotel. Furthermore, we have to assume that misspellings will be common and also the shortening of address elements. For example,
"Road" could be entered as "Rd", "Rd." or "Road" "Street" could be "St", "St." or "Street" "Lane" could be "Ln", "Lne" or "Lane" etc
Taking all these scenarios and requirements into hand can anyone suggest a fool-proof yet easy to use mechanism for providing this sort of search capability on a web-page?
I'm using ADO.NET to interface to Sql Server 2000 db. Would Full-text indexing on this table be of any use?
I'm intersted to know how people would go about this themselves.
Thanks
Ben
I saw once someone who used an algorithm that computes the minimal amount of
elementary changes (ie. letter deletion or letter addition and perhaps
swaps) to match a particular target word. It gives a kind of "proximity"
level between two words...
If I remember I suggested to divide this result by the length of the word to
have a similar range regardless of the length word (to have a number of
changes per letter rather than just a number of changes).
Unfortunately I don't remember how it's named but you should hopefully find
it from its description
Patrice
--
"Ben Fidge" <be*******@btopenworld.com> a écrit dans le message de
news:uw**************@TK2MSFTNGP15.phx.gbl... Hi Kevin,
I appreciate your comments but I'm still left with the task of providing this functionality to our end-users. As you are probably aware, the
average web-user gets distracted or bored very easily, so the easier and more intuitive I can make an interface the better. The aim here is to guide
their selection of hotel from a list using the most efficient and time-saving means possible. As programmers, we need to be aware that 99% of the time
our users are not techies, but just want to buy products quickly and easily.
This is not an uncommon scenario, and i'm sure there's many developers out there who may offer some insight into how they've tackled similar problems in the past, be it a propritry solution or some third-party library we can buy in.
Kind regards
Ben "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:e3**************@tk2msftngp13.phx.gbl... Hi Ben,
A little while ago, just before Google went public, Microsoft tried to
buy them. Why? Because they have the best search engine in the world. But,
you might ask, why would Microsoft, a software company that employs
thousands of programmers need to buy a search engine, when they can write their
own? The answer is simple: Google does almost nothing but search software.
And it is not easy to write. In fact, Google has thousands of computers to share the load. Their search routines, while secret, must be humongous.
So, in answer to your question:
Taking all these scenarios and requirements into hand can anyone
suggest a fool-proof yet easy to use mechanism for providing this sort of
search capability on a web-page?
The answer is "no." Not fool-proof, and by no stretch of the imagination easy!
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get.
"Ben Fidge" <be*******@btopenworld.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Hi
I'm working on a site which requires the users to specify a hotel at which they're staying in London. The complete list of hotels comes to something like 1600 records. Each record consists of Hotel Name, Street Address and Postcode.
We need to make it as simple as possible for users to pick their hotel, but I don't want to put 1600 hotel names in a drop-down list, and we
have to consider the fact that not every user is going to know the full name and address of their hotel. Furthermore, we have to assume that misspellings will be common and also the shortening of address
elements. For example,
"Road" could be entered as "Rd", "Rd." or "Road" "Street" could be "St", "St." or "Street" "Lane" could be "Ln", "Lne" or "Lane" etc
Taking all these scenarios and requirements into hand can anyone
suggest a fool-proof yet easy to use mechanism for providing this sort of
search capability on a web-page?
I'm using ADO.NET to interface to Sql Server 2000 db. Would Full-text indexing on this table be of any use?
I'm intersted to know how people would go about this themselves.
Thanks
Ben
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ke***@DIESPAMMERSDIEtakempis.com: in the past, be it a propritry solution or some third-party library we can buy in.
Now, there's an idea. Try Googling it. I wouldn't be surprised if you can find something that works fairly well.
I think you might even be able to license Google technology...
--
-shane
This is the "Levenshtein Distance" also called sometimes the "Edit
Distance".
Try : http://www.merriampark.com/ld.htm
Patrice
--
"Patrice" <no****@nowhere.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP12.phx.gbl... I saw once someone who used an algorithm that computes the minimal amount
of elementary changes (ie. letter deletion or letter addition and perhaps swaps) to match a particular target word. It gives a kind of "proximity" level between two words...
If I remember I suggested to divide this result by the length of the word
to have a similar range regardless of the length word (to have a number of changes per letter rather than just a number of changes).
Unfortunately I don't remember how it's named but you should hopefully
find it from its description
Patrice
--
"Ben Fidge" <be*******@btopenworld.com> a écrit dans le message de news:uw**************@TK2MSFTNGP15.phx.gbl... Hi Kevin,
I appreciate your comments but I'm still left with the task of providing this functionality to our end-users. As you are probably aware, the average web-user gets distracted or bored very easily, so the easier and more intuitive I can make an interface the better. The aim here is to guide their selection of hotel from a list using the most efficient and time-saving means possible. As programmers, we need to be aware that 99% of the time our users are not techies, but just want to buy products quickly and easily.
This is not an uncommon scenario, and i'm sure there's many developers
out there who may offer some insight into how they've tackled similar
problems in the past, be it a propritry solution or some third-party library we
can buy in.
Kind regards
Ben "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:e3**************@tk2msftngp13.phx.gbl... Hi Ben,
A little while ago, just before Google went public, Microsoft tried to buy them. Why? Because they have the best search engine in the world. But, you might ask, why would Microsoft, a software company that employs thousands of programmers need to buy a search engine, when they can write their own? The answer is simple: Google does almost nothing but search software. And it is not easy to write. In fact, Google has thousands of computers to share the load. Their search routines, while secret, must be
humongous. So, in answer to your question:
> Taking all these scenarios and requirements into hand can anyone suggest> a fool-proof yet easy to use mechanism for providing this sort of search> capability on a web-page?
The answer is "no." Not fool-proof, and by no stretch of the
imagination easy!
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get.
"Ben Fidge" <be*******@btopenworld.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... > Hi > > I'm working on a site which requires the users to specify a hotel at > which they're staying in London. The complete list of hotels comes to > something like 1600 records. Each record consists of Hotel Name,
Street> Address and Postcode. > > We need to make it as simple as possible for users to pick their
hotel,> but I don't want to put 1600 hotel names in a drop-down list, and we have> to consider the fact that not every user is going to know the full
name> and address of their hotel. Furthermore, we have to assume that > misspellings will be common and also the shortening of address elements.> For example, > > "Road" could be entered as "Rd", "Rd." or "Road" > "Street" could be "St", "St." or "Street" > "Lane" could be "Ln", "Lne" or "Lane" etc > > Taking all these scenarios and requirements into hand can anyone suggest> a fool-proof yet easy to use mechanism for providing this sort of search> capability on a web-page? > > I'm using ADO.NET to interface to Sql Server 2000 db. Would Full-text > indexing on this table be of any use? > > I'm intersted to know how people would go about this themselves. > > Thanks > > Ben >
you need to write an address normalization routine. In the US several exist
for use CRIS tapes (address lists from the post office). if you look for
address matching software in the UK you may find one. YOu local post office
can probably give you rules.
a street address is usually in the format (US anyway - I don't know UK)
<house number> <optional direction> <street name(s)> <suffix> <optional
direction>
ex:
123 n 123 st
123 123 st nw
you sould remove periods, convert suffixs (place, way, avenue, blvd) to a
standard. i usually do a phonetic of the street name (might be able to use
the sqlserver one) to catch spelling errors. with treet and number, you can
find missing suffix and direction
ex
user enters: 1234 main
computer responds did you mean: 1234 main street or 1234 main blvd?.
you can refine, by linking to hotel name.
-- bruce (sqlwork.com)
"Ben Fidge" <be*******@btopenworld.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Hi
I'm working on a site which requires the users to specify a hotel at which they're staying in London. The complete list of hotels comes to something like 1600 records. Each record consists of Hotel Name, Street Address and Postcode.
We need to make it as simple as possible for users to pick their hotel, but I don't want to put 1600 hotel names in a drop-down list, and we have to consider the fact that not every user is going to know the full name and address of their hotel. Furthermore, we have to assume that misspellings will be common and also the shortening of address elements. For example,
"Road" could be entered as "Rd", "Rd." or "Road" "Street" could be "St", "St." or "Street" "Lane" could be "Ln", "Lne" or "Lane" etc
Taking all these scenarios and requirements into hand can anyone suggest a fool-proof yet easy to use mechanism for providing this sort of search capability on a web-page?
I'm using ADO.NET to interface to Sql Server 2000 db. Would Full-text indexing on this table be of any use?
I'm intersted to know how people would go about this themselves.
Thanks
Ben
Hi Patrice,
I have heard of Levenshtein Distance algorithm. I'll look to see how I can
use it.
Thanks for the positive help.
Ben
"Patrice" <no****@nowhere.com> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl... This is the "Levenshtein Distance" also called sometimes the "Edit Distance".
Try : http://www.merriampark.com/ld.htm
Patrice
--
"Patrice" <no****@nowhere.com> a écrit dans le message de news:%2****************@TK2MSFTNGP12.phx.gbl... I saw once someone who used an algorithm that computes the minimal amount of elementary changes (ie. letter deletion or letter addition and perhaps swaps) to match a particular target word. It gives a kind of "proximity" level between two words...
If I remember I suggested to divide this result by the length of the word to have a similar range regardless of the length word (to have a number of changes per letter rather than just a number of changes).
Unfortunately I don't remember how it's named but you should hopefully find it from its description
Patrice
--
"Ben Fidge" <be*******@btopenworld.com> a écrit dans le message de news:uw**************@TK2MSFTNGP15.phx.gbl... > Hi Kevin, > > I appreciate your comments but I'm still left with the task of > providing > this functionality to our end-users. As you are probably aware, the average > web-user gets distracted or bored very easily, so the easier and more > intuitive I can make an interface the better. The aim here is to guide their > selection of hotel from a list using the most efficient and time-saving > means possible. As programmers, we need to be aware that 99% of the > time our > users are not techies, but just want to buy products quickly and > easily. > > This is not an uncommon scenario, and i'm sure there's many developers out > there who may offer some insight into how they've tackled similar problems > in the past, be it a propritry solution or some third-party library we can > buy in. > > Kind regards > > Ben > > > > "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message > news:e3**************@tk2msftngp13.phx.gbl... > > Hi Ben, > > > > A little while ago, just before Google went public, Microsoft tried > > to buy > > them. Why? Because they have the best search engine in the world. > > But, you > > might ask, why would Microsoft, a software company that employs thousands > > of programmers need to buy a search engine, when they can write their own? > > The answer is simple: Google does almost nothing but search software. And > > it is not easy to write. In fact, Google has thousands of computers > > to > > share the load. Their search routines, while secret, must be humongous. > > > > So, in answer to your question: > > > >> Taking all these scenarios and requirements into hand can anyone suggest > >> a fool-proof yet easy to use mechanism for providing this sort of search > >> capability on a web-page? > > > > The answer is "no." Not fool-proof, and by no stretch of the imagination > > easy! > > > > -- > > HTH, > > > > Kevin Spencer > > Microsoft MVP > > .Net Developer > > What You Seek Is What You Get. > > > > "Ben Fidge" <be*******@btopenworld.com> wrote in message > > news:%2****************@TK2MSFTNGP14.phx.gbl... > >> Hi > >> > >> I'm working on a site which requires the users to specify a hotel at > >> which they're staying in London. The complete list of hotels comes > >> to > >> something like 1600 records. Each record consists of Hotel Name, Street > >> Address and Postcode. > >> > >> We need to make it as simple as possible for users to pick their hotel, > >> but I don't want to put 1600 hotel names in a drop-down list, and we have > >> to consider the fact that not every user is going to know the full name > >> and address of their hotel. Furthermore, we have to assume that > >> misspellings will be common and also the shortening of address elements. > >> For example, > >> > >> "Road" could be entered as "Rd", "Rd." or "Road" > >> "Street" could be "St", "St." or "Street" > >> "Lane" could be "Ln", "Lne" or "Lane" etc > >> > >> Taking all these scenarios and requirements into hand can anyone suggest > >> a fool-proof yet easy to use mechanism for providing this sort of search > >> capability on a web-page? > >> > >> I'm using ADO.NET to interface to Sql Server 2000 db. Would > >> Full-text > >> indexing on this table be of any use? > >> > >> I'm intersted to know how people would go about this themselves. > >> > >> Thanks > >> > >> Ben > >> > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dariusz |
last post by:
Despite looking at a number of tutorials in books and online examples on
pattern matching - I can't quite get my head around it to work... so need
some help.
What I have now is a variable that...
|
by: Michael Strorm |
last post by:
Hi,
I'm in the middle of "teaching" myself C++. Having skimmed some of
the "Teach Yourself C++ in 21 Days" book, I got a feel for the
language, at least. Then I bought "The C++ Programming...
|
by: pembed2003 |
last post by:
Hi all,
I asked this question in the C group but no one seems to be interested
in answering it. :-( Basically, I wrote a search and replace function
so I can do:
char source = "abcd?1234?x";...
|
by: Andreas |
last post by:
Hi!
I am looking for as simple an implementation as possible for the DES
(simple) algorithm in C.
I have found one or two implementations using google, but they are not
appropriate as I...
|
by: Mark Kamoski |
last post by:
Hi--
Please help.
I need a code sample for bubble sort.
Thank you.
--Mark
|
by: Julie |
last post by:
What is the *fastest* way in .NET to search large on-disk text files (100+ MB)
for a given string.
The files are unindexed and unsorted, and for the purposes of my immediate
requirements, can't...
|
by: MJ |
last post by:
Hello, I need some suggestions on how to do this.
I am reading through a large iis loge. For each line, I get three datapoints
(sessionID, Time, Stage). I need to store these values into some...
|
by: chrisotreh |
last post by:
hi everyone, i need a simple code of IDA* algorithm. this algorithm is a method of heuristic search.this algorithm is the result of enhancement of Depth First Search combined with A* algorithm..
...
|
by: Kelicula |
last post by:
Why?:
One commonly used algorithm is the binary search.
If you don't already know it, you should read on.
Very helpful. Saves much CPU. Reduces computations exponentially.
When searching...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |