Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8174019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:20:34+00:00 2026-06-06T22:20:34+00:00

I am having a small problem with the Magento quick search. When I search

  • 0

I am having a small problem with the Magento quick search. When I search in the box say

ice machine

Then everything will be retuernd where it has ice or machine in the title. I need it so it would just search products with the exact string ice machine in the title.

I found out if I put "ice machine" with the double speech marks it will return only products names that match that exactly.

So I need a way so that the double speech marks get added around the search query automaticlly so it will search the full text not both words seperatly.

Is there a way to do this in the form HTML?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:20:36+00:00Added an answer on June 6, 2026 at 10:20 pm

    This issue is covered over in the MagentoCommerce forums multiple times. The Like search logic was changed from AND to OR. For it to give better results, it needs to be changed back to AND so all items in the search query must match.

    Search Logic Fix

    In app/code/core/Mage/CatalogSearch/Model/Mysql4/Fulltext.php find the class public function prepareResult($object, $queryText, $query)

    The following piece of code:

    if ($like) {
        $likeCond = '(' . join(' OR ', $like) . ')';
    }
    

    needs to be

    if ($like) {
        $likeCond = '(' . join(' AND ', $like) . ')';
    }
    

    Create your own rewrite module to overwrite just this class or do an override by copying the whole file Fulltext.php over to app/code/local/Mage/CatalogSearch/Model/Mysql4/Fulltext.php and modifying OR to AND. The module is preferable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a small problem for a quick Search and Highlight script that I'm working
I have a question about a small problem I am having in Magento. When
I'm having a small problem with my htaccess files. Currently, it redirects everything back
having a small problem. I'm trying to create a loop that will create an
I'm having a small problem using ipython as my python interpreter with python-mode.el. everything
I am having a small problem with my MVC 3 application. The server has
Im having a small problem with storage of special characters like quotes, double quotes
Im having a small problem with my code. I have been trying to read
i am having a small problem with my android application. I have some mp3
I am having a small problem. I am a beginner to iPhone programming so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.