×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Search

Search 11 years 3 weeks ago #20077

  • Faris M Hayek
  • Faris M Hayek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Hi.

I am not sure if this is a bug or a lacking feature.

It only seems to search one word at a time.

For example: The World. Will return results for "The" and "World"

This causes a problem cause when you have a lot of hotspots obviously the results are arbitrary.

For example: We have 50 hospitals. So when we search for : American Hospital. We get all the hospitals.

Can someone assist me here.

Search 11 years 3 weeks ago #20078

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
That is correct. The words are exploded and then we match against either the first or the second.
The code that does the search is in components/com_hotspots/models/hotspot.php in the buildWhereSearchQuery function. You can modify it to match your specific needs.

Btw "american Hospital" (with quotes) should match the whole thing without exploding it.
Regards,
Daniel

Search 11 years 3 weeks ago #20079

  • Faris M Hayek
  • Faris M Hayek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Great Daniel.

I dont want to ask for a modification to the code. But I am looking at it now and I am a bit lost with what is happening.

All I want it to do is always use quotes by default. Without people actually needing to use quotes.
  • Page:
  • 1
Time to create page: 0.131 seconds