Jump to content

Modifying Search to match words from 1 attribute, not combinations of two.


Recommended Posts

I have made a pseudo-advanced search function for my store, which uses the same calls as the Search module.

I have a problem when searching for specific strings in attributes. It looks for a search string within all the attributes and returns "found" if one or more words are within separate attributes. I need to make it specific so it finds this whole string in single attributes ONLY.

Example>>

Search: Ipod 15 200

(Within the database:

Product:
Ipod

Ipod Attributes:
15 100
16 200
17 100
18 200
)

Search returns "found 1 product: Ipod)

Since it has found the words 15 and 100 within the attributes. However I was looking for specifically Ipod 15 200 :(

Can I use quotation marks or some other method to keep search strings contained?

Link to comment
Share on other sites

×
×
  • Create New...