Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Search Engine:
Is this a bug? (Unwanted space on incomplete keyword)

 

 


store182
User

Aug 31, 2006, 9:47 AM

Post #1 of 3 (2400 views)
Shortcut
Is this a bug? (Unwanted space on incomplete keyword) Can't Post

Scenario 1

Search the keyword safety and you get the results with the word safety highlighted in some way (NO PROBLEM)

eg. All safety requirements must be...

Scenario 2

Search the keyword safe and you get the results with word safe+space+ty, wherever safety is found the keyword safe is highlighted but ADDS a space between the keyword and the rest of the word.

e.g. All safe ty requirements must be...






HERE IS A REAL SAMPLE

http://www.gourmettrading.net/cgi-bin/se/exec/search.cgi?search=safe&categories=3&search_mode=any&search_what=body%2Ckeywords%2Cdescription&case_sensitive=0&rows=25&format=result_full&skin=






Other scenarios
Search for car you get car go
Search for custom you get custom ers or custom ization

Desired results
Search for car you get cargo
Search for custom you get custom ers or customization



Is there a way to get rid of that space? it's driving me crazy Crazy


Damon
Staff / Moderator


Sep 1, 2006, 1:51 PM

Post #2 of 3 (2384 views)
Shortcut
Re: [store182] Is this a bug? (Unwanted space on incomplete keyword) [In reply to] Can't Post

Hi,

Thanks for the post. The good news is that this isn't a bug and I have a solution for you. :)

I did some testing and I suspect that a space has been added after $word$ in the search_results.html template. When there is a space added I was getting the same search results you describe.

Here is how the code should appear (without the spaces after $word$):

Code
<!-- templatecell : must_words --><span style="font-weight: bold;">$word$</span><!-- /templatecell : must_words --> 
<!-- templatecell : may_words --><span style="font-weight: bold;">$word$</span><!-- /templatecell : may_words -->


Give this a try and see if this resolves the issue. If you want me to take a look your template for you, email it to support@interactivetools.com (and reference this forum thread) and we can get it sorted out for you. :)

Cheers
Damon Edis
interactivetools.com


store182
User

Sep 2, 2006, 7:09 AM

Post #3 of 3 (2364 views)
Shortcut
PROBLEM SOLVED [In reply to] Can't Post

Well, there was no immediate space after $word$, but I think there was one after the tags, because I just removed all the spaces in between the tags and comments and the problem was solved.

BEFORE:

<!-- templatecell : must_words -->
<span class="c31b92"><font color="#ffffff">$word$</font></span>
<!-- /templatecell : must_words -->
<!-- templatecell : may_words -->
<span class="c31b92">font color="#ffffff">$word$</font></span>
<!-- /templatecell : may_words --></td>



AFTER:

<!-- templatecell : must_words --><span class="c31b92"><font color="#ffffff">$word$</font></span><!-- /templatecell : must_words --><!-- templatecell : may_words --><span class="c31b92"><font color="#ffffff">$word$</font></span><!-- /templatecell : may_words -->

Thank you for pointing me in the right direction.



Smile





 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4