Keyword

Modify search method in mod_k2_tools

  • Magnus
  • Magnus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago #106004 by Magnus
Modify search method in mod_k2_tools was created by Magnus
I need help with modifying the searchbox in mod_k2_tools.

Default search algoritm for this module is a "OR" search. I need "AND" instead.

So, if I search for "hospital chicago" I need to get searchresults for hospitals in Chicago. Now it displays all hospitals (in all cities) and also everything from Chicago (not only hospitals).

I have looked around in the files for this module but I cannot find where this is set? Any ideas anyone?

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #106005 by Teo Vgenopoulos
Replied by Teo Vgenopoulos on topic Re: Modify search method in mod_k2_tools
The search query is generated at components/com_k2/models/itemlist.php in function prepareSearch .
Did you try to enclose your search term in " " ? ( exactly like you post it "hospital chicago" )

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum