Is there a module that facilitates search on multiple fields

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Is there a module that facilitates search on multiple fields

Post by burlington »

This is just an general enquiry at the moment.

I am sure we have all seen a search facility on sites, especially property and holiday sites, where you can enter eg country, town, price range and so on for one search. Either multiple choice or by keyword.

A typical example is the search facility on www.costaverdeproperties.com which is multiple choice.

Any ideas please how this sort of facility can be implemented using CMSMS, if indeed it is not already in use?

Thanks in advance

Martin
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Is there a module that facilitates search on multiple fi

Post by JohnnyB »

I usually use Javascript and AJAXy like scripting to filter the results. For example, you can have a traditional search filed, show the results, and have filtering options. The initial results would have your default filtering set, e.g., distance=10 miles, bedrooms=3, bathrooms=2, etc.
The user can then filter the results from dropdown options for country, town, price range etc.

You will want to set class names in your HTML to give the javascript something hook into.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Is there a module that facilitates search on multiple fi

Post by calguy1000 »

Some (not all) of my modules (CompanyDirectory, Products, CGBlog IIRC) allow advanced search out of the box.

But really.... there is no good 'one size fits all' solution. For a real estate site you should be using a module specialized in that data type that provides the capabilities you need.

This is because of things like:
a: time limited searches
b: range searches (price ranges, proximity searches)
c: different sorting options and problems
d: conversion of data types for sorting/filtering
i.e: if you have a 'priority' field, say 'high,medium,low' or even an integer 1,2,3... ,10,11,12,13
if that data is stored in the database in a 'generic module' that priority field has to have special behavior for proper sorting and searching. because '11' in a text field is < '2'. and if you do manage to sort properly on those fields, you're losing database performance due to casting etc.
e: query optimization
I could go on....

As an example.... the CompanyDirectory search has proximity capabilities in it. such that the user can get a lat/long using geolocate facilities, or postcode lookup, but has no built in price range stuff... because it's not a module for managing data that has a price.

That being said.... I have been working on a Property Listing module that will probably be released in the next month or so.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Is there a module that facilitates search on multiple fi

Post by applejack »

Or you could just use CGISimpleSmarty module.
Post Reply

Return to “Modules/Add-Ons”