Zen Cart Logo
Forums / General Questions / Multiple keywords at once in advanced search?

Multiple keywords at once in advanced search?

Locked

Views: 1,063

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 Jun 2009, 2:15 AM
#1
belabela avatar

belabela

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Multiple keywords at once in advanced search?

Has anyone ever modified the advanced search to accept 3 (or more) keyword searches at once instead of one?

For example, adding two more keyword text fields so the advanced search returns products that match any of the three keywords (rather than customers having to open three windows or run three separate searches).

From what i can see you would need to modify the advanced_search module and template file to display the extra two fields but the code in the advanced_search_result module file seems very complex and I have no idea what I would need to edit and how.

Any experts out there who have done this or anyone who could help would be much appreciated...

13 Jun 2009, 2:25 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Multiple keywords at once in advanced search?

From the popup help text on the search screen:> Keywords may be separated by AND and/or OR statements for greater control of the search results.

For example, Microsoft AND mouse would generate a result set that contain both words. However, for mouse OR keyboard, the result set returned would contain both or either words.

Exact matches can be searched for by enclosing keywords in double-quotes.

For example, "notebook computer" would generate a result set which match the exact string.

Brackets can be used for further control on the result set.

For example, Microsoft and (keyboard or mouse or "visual basic").

13 Jun 2009, 2:45 AM
#3
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Multiple keywords at once in advanced search?

DrByte:

From the popup help text on the search screen:

Also, there is an option in the admin to determine whether the search queries automatical use the AND or the OR logic.

Configuration -> My Store -> Default Search Operator -> AND or OR

13 Jun 2009, 9:29 AM
#4
belabela avatar

belabela

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Re: Multiple keywords at once in advanced search?

Thanks!!