close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data Bridge Search for keywords not quite working

Thread began 3/11/2013 2:30 am by jon211112 | Last modified 3/11/2013 4:07 pm by jon211112 | 1208 views | 4 replies |

jon211112

Data Bridge Search for keywords not quite working

Hi there

I have a field containing post code letters, comma separated. The search consists of lots of tick boxes, one per post code. I'm using the keywords feature and 'contains' and it works fine apart from one, quite serious, issue.

In the UK we have a post code of GL for Gloucester and another of G for Glasgow. If the result contains GL and the search is for G then it's showing the record.

As the data is comma separated I would have thought this would work but after lots of testing I've realised that it's this G being in both G and GL that's causing the problems.

Help needed!

I'm using the latest of every version btw. Latest Data Bridge, latest DW CS6, latest OSX (Mountain Lion).

Many thanks

Jon

Sign in to reply to this post

Jason ByrnesWebAssist

any time you are using comma separated lists in your tables, red alarm bels should ring. Comma separated lists are a bad database structure, and will not work properly for what you want to do.

you should be using a linking table to create the many to many relationship of post codes

for example:

maintable:
tableID - Primary Key
etc.....

postcodes:
postcodeID - Primary Key
postcodeValue

itempostcodes:
itempostcodeID - Primary Key
itempostcodeTableID - relates to maintable.tableID
itempostcodePostcodeID - relates to postcodes.postcodeID


this way you store a record to assign each post code to the records in the main table.

you will need to use a join query on the results page and then in the key word, you can use equals instead of includes

Sign in to reply to this post

jon211112

Thanks Jason.

I would normally use a many-to-many table but didn't in this instance because of a number of other factors.

Plus, the way WA Search works it was clear that having a comma-separated field would be fine, but it's clearly not working as I expected.

Are you saying I can't do what I need to? Is the only solution to make all the one-character post code areas into two characters (adding a zero for example)?

Thanks for your speedy reply.

Jon

Sign in to reply to this post

Jason ByrnesWebAssist

"Are you saying I can't do what I need to?"

Yes, using a coma separated list will not work for what you want to accomplish in the way it is set up.

"Is the only solution to make all the one-character post code areas into two characters (adding a zero for example)?"

that could work, sure.

Sign in to reply to this post

jon211112

Thanks again Jason. I have now changed all the single-character post codes to two-character and it's working.

All the best

Jon

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...