 |

wendy
User
Oct 15, 2004, 11:26 AM
Post #1 of 8
(4244 views)
Shortcut
|
|
Search results problem
|
Can't Post
|
|
Hi - I am using DTHML pulldown menus for navigation and when I do a search, I am getting pages in which the words appear in the navigation menu. For example, I have a drop down menu of Team Members and, when I do a search for one of the team members, I want to see articles in which the team member is mentioned but I am getting all pages b/c they are listed on all pages in the drop down menu. Is there a way to exclude results in which the names just appear in the drop down menu? (I hope this is clear). Wendy
|
|
|  |
 |

MikeB
Staff
/ Moderator

Oct 16, 2004, 11:31 AM
Post #2 of 8
(4224 views)
Shortcut
|
|
Re: [wendy] Search results problem
[In reply to]
|
Can't Post
|
|
Hi Wendy, Thanks for the post! :) When Search Engine is searching through the files you've specified it will search through the entire contents of the file. This means that if you've added the Search Engine to every page with a DHTML dropdown list, it will search through the dropdown list. One way to stop this from happening is to include your Search Engine code as a Server Side Include (SSI). Search Engine won't search through the contents of an included file (unless the file is in your list of files to be searched). Here are the steps you'll want to follow to add the SSI. 1. Open up one of the files that has the Search Engine on it. Copy the code that outputs the Search Engine (this will be everything between the opening and closing <form> tags). The code you copy may look something like this: <form method="GET" action="http://www.yoursite.comdev/cgi-bin/search/exec/search.cgi"> <font face="arial,sans-serif" style="font-size: 12px;"> Search <select name="categories"> <option value="0" selected>entire website</option> <option value="1">Default Category </select>for <input type="text" name="search" value="" size="15"> <input type="submit" name="perform_search" value="Search"> <input type="hidden" name="skin" value=""> </font> </form> You'll want to copy it all and paste it into a new file called "search_include.html". You'll want to save this file and upload it to your server in the /cgi-bin/search/templates/ directory. 2. Now you can open up all of the files that use the Search Engine code and replace the above code with a Server Side Include that will look like this: <!--#include virtual="/cgi-bin/search/templates/search_include.html"--> After the changes you can save the files and upload them to your server. Because this file is now in a different folder it won't be looked at when you execute a search. I hope this helps and if you have any other questions feel free to let me know! :) Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

wendy
User
Oct 18, 2004, 4:24 PM
Post #3 of 8
(4206 views)
Shortcut
|
|
Re: [MikeB] Search results problem
[In reply to]
|
Can't Post
|
|
I'll try that > which brings me to a question about document weighting. I have my setting so that the doc title, meta keywords and meta description all all weighted high (I put in 1,000) and I put document content at 0 - hoping that would solve my issue since the search shouldn't look in the document based on my settings. However, even with those settings, pages with the search string in the document got weighted higher than pages with the search string in the title and/or meta areas. Can you please tell me how the document weight settings work? Thanks, Wendy
|
|
|  |
 |

Cliff
Staff

Oct 19, 2004, 2:43 PM
Post #4 of 8
(4188 views)
Shortcut
|
|
Re: [wendy] Search results problem
[In reply to]
|
Can't Post
|
|
Hi Wendy, Thanks for posting. From what you have described, that should be working properly. Perhaps it would be a good idea if we take a look at what's going on. If you could submit your detials through our Support Request, I will get to the bottom of your problem. Thanks Wendy, I hope to hear from you soon Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

Cliff
Staff

Oct 21, 2004, 9:30 AM
Post #5 of 8
(4179 views)
Shortcut
|
|
Re: [wendy] Search results problem
[In reply to]
|
Can't Post
|
|
Hi Wendy, Here is the contents of the email that just sent to you:
From what I can see, I don't think that this is actually related to the weighting of the documents, rather I think it was to do with the files that Search Engine has access to. For example, I can see that your Search Engine is searching through it's data files, the article manager templates and other files that are going to skew your search results. The easiest thing do will be to login to Search Engine and go to your Category Editor, and under the Action section click on files. This is going to give you a big long list of files. From here, all you need to do is click on the 'ignore this dir' or 'ignore this file' links for the pages that don't need to be searched. If you click on 'ignore this dir' Search Engine will not look through any of the page in that directory. This way, you can really refine your results so that your users get access to only the relevant files. I hope that helps Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

wendy
User
Dec 13, 2004, 11:53 AM
Post #6 of 8
(3924 views)
Shortcut
|
|
Re: [MikeB] Search results problem
[In reply to]
|
Can't Post
|
|
Hey Mike, I have a question about this: if a file is on my list to be searched, won't it still search the DHTML dropdown menu and put it in the results? I need a way to exclude the search from searching for any of the info in the DHTML dropdown menus in any file. Any idea how I would do that? Wendy
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 13, 2004, 2:21 PM
Post #7 of 8
(3922 views)
Shortcut
|
|
Re: [wendy] Search results problem
[In reply to]
|
Can't Post
|
|
Hi Wendy. Thanks for the update! I think Mike may have already provided the solution for you . Instead of coding the drop down menu on each of the pages, you could put the drop down menu on each page using an SSI. This means that the code for it, isn’t actually on each page. Search Engine won’t search include statements so all you should have to do is put the include file on your ignore list and you’re good to go. Could I get you to take another look at Mike’s solution and give it a try If you run into anything, just let me know and I’ll try to get you back on the right path again . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

wendy
User
Dec 13, 2004, 3:20 PM
Post #8 of 8
(3920 views)
Shortcut
|
|
Re: [ross] Search results problem
[In reply to]
|
Can't Post
|
|
Thanks Ross - Mike's solution was to include the search box as an SSI. It makes more sense to put the dropdown menu as an include. Thanks, Wendy
|
|
|  |
|