If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting:
joodb.feenders.de/support.html
How to change Search rule
- jauze
- Topic Author
- Offline
Less
More
- Posts: 1
- Thank you received: 0
9 years 7 months ago #4138
by jauze
How to change Search rule was created by jauze
Hello,
I want to change search rule so that search result will display result exactly same with user key in. For example if user want to search 'skin cream' in products field, only %skin cream% product will appear in search result. not %skin% and %cream% product will appear with more much result. Please Help.
Thank You
I want to change search rule so that search result will display result exactly same with user key in. For example if user want to search 'skin cream' in products field, only %skin cream% product will appear in search result. not %skin% and %cream% product will appear with more much result. Please Help.
Thank You
Please Log in to join the conversation.
- d.hoeschen
-
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
9 years 7 months ago #4141
by d.hoeschen
Replied by d.hoeschen on topic How to change Search rule
If you own the pro version you can use the searchfield command to search for the exact (case insensitve) match.
Instead of a searchform you can insert
into your template
/support/documentation.html?search=SEARCHFIELD
Instead of a searchform you can insert
Code:
{joodb searchfield|FIELDNAME|exact}
/support/documentation.html?search=SEARCHFIELD
Please Log in to join the conversation.
- d.hoeschen
-
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
9 years 7 months ago #4142
by d.hoeschen
But maybe it helps if you disable "Search all Fields" in the menu configuration of your database catalogue.
Replied by d.hoeschen on topic How to change Search rule
dirk wrote: If you own the pro version you can use the searchfield command to search for the exact (case insensitive) match.
Instead of a searchform you can insertinto your templateCode:{joodb searchfield|FIELDNAME|exact}
/support/documentation.html?search=SEARCHFIELD
But maybe it helps if you disable "Search all Fields" in the menu configuration of your database catalogue.
Please Log in to join the conversation.
Moderators: d.hoeschen, joest
