close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

My search doesn't bring back all the results I was hoping to get

Thread began 6/08/2012 11:56 am by ncardoso429882 | Last modified 6/11/2012 3:48 pm by Jason Byrnes | 1094 views | 7 replies |

ncardoso429882

My search doesn't bring back all the results I was hoping to get

Hi, I was wondering if someone can help. I have created a search feature and I want to be able to search 4 db fields for one or more words. When I do that, it doesn't seem to search all the fields I listed because it brings back less results.

I'm attaching a screenshot of the dialogue box if that helps.

Basically what I would like:

If a user searches Adult Volunteer the search for this term should look in 4 of my fields for "Adult Volunteer" regardless of where the string is within the fields, but it should be an exact match.

Also, please let me know if this is something I can do within the data assist dialogue box.

I really appreciate your help. Thank you

Nelson

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the results page so i can see the code, from there I can advise you how to troubleshoot the issue.

Sign in to reply to this post

ncardoso429882

Do I attach it here?

Or send it directly to you... if so where?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

yes, compress it to a zip archive and and attach it here.

Sign in to reply to this post

ncardoso429882

Here's the file

I've changed it since that screen capture but it's still not doing what I need it to do. If possible, please let me know what I'm missing while using the tool. I'd rather understand it completely and not bug you again with the same question :-)

To summarize... I wan't someone to to type in something like Adult Volunteer

My search should look at 4 fields within the same table and check if any of the four fields i.e. title, keywords, desc and category contains "Adult Volunteer" in all records.

Thanks so much.
Nelson

Attached Files
search_result.zip
Sign in to reply to this post

Jason ByrnesWebAssist

your page is using multiple criteria, it should only be using the one. key word criteria similar to what you had in the initial post. I think the problem you are having is actually a bug in the data assist search behavior. When you only have o
1 criteria, you cant change the separator from AND to OR in a key word search, that will need to be don't in the code.


in the code, you will see a line similar to:
$WADbSearch1->keywordComparison($KeyArr1,"".((isset($_POST["searchForm"]))?$_POST["searchForm"]:"") ."","AND","=",",%20","%20","%22","%22",0);


you will need to change it to:
$WADbSearch1->keywordComparison($KeyArr1,"".((isset($_POST["searchForm"]))?$_POST["searchForm"]:"") ."","OR","=",",%20","%20","%22","%22",0);

Sign in to reply to this post

ncardoso429882

Tried your suggestion and got closer...

Hi Jason, I tried your suggestion but it came up empty so then I tried through the tool again and I got much closer with your suggestion. It also looked alot like your code string.

One thing though... I searched for the word Student

It brought back two records. The thing is... I have "student" in another record under the field "title" with a value of "Student Volunteer Program" (no quotes) and it didn't return that record. Any idea why? My hope is that it would find "student" in that string and return that record also.

Any suggestions will be much appreciated. I'm attaching the new updated file. Also... I'm leaving for the day but I'll check back tomorrow if you're able to answer. Thanks again.

Nelson

Attached Files
search_result.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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...