osHelpers - Help for your osCommerce store
 
Google Base Feed Germany
iFrame Defender v1.2
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum MVS 8.4 Basic
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | FEATURES | 627   


oscommerce CorrectionstoSearchAlgorithm
[627]
 
 
box_bg_l.gif.
"Complete rewrite of the search algorithm in advanced_search_result.php (around line 203). Frankly, it was broken.

Regardless of which condition (AND / OR) was set as the default concatenation operator.

In the stock algorithm, if ONE search word appeared in the products_name, and ANOTHER search word appeared in products_model, then the product met the criteria. However, the logical expectation is that the words appear in the SAME fields(s).

In other words, for the criteria to be met, the condition must be satisfied in whole within the context of a single data attribute. For example: In the existing algorithm, if the word fragment 'CAT' appeared anywhere in the description, and the number '5' appeared in the model, then a search for 'CAT 5' would be satisfied.. but not the intention.

What is intended is that the fragment 'CAT' and/or the number '5' both appear in the Description or both appear in the model (etc) for the condition to be satisfied.

The existing algorithm works fine for 'OR' concatenations, but returns incorrect results for 'AND' concatenations."

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers