Build with IDX Broker › Forums › General Discussion › Announcements › OR search functionality
-
AuthorPosts
-
-
Each OR search needs a unique “group” name. This is a way to group the fields together so that it will be something like: Field1=foo OR Field2=bar OR Field3=baz. It also needs to be easily parsed by PHP into an expected array format. With that, the syntax that was chosen is:
or_groupName[][searchField1]=searchField1-value&or_groupName[][searchField2]=searchField2-value
The fields that need to be searched using OR are grouped together with whatever name wanted (it could be, foo, it could be a common thing between the fields, it could be a number, just some unique way to group fields together).Single MLS Advanced Field Example
User wants to show any properties that are REO or ShortSale for the “best deals”.Multiple MLS Advanced Field Example
There’s a client in Florida who is a part of two MLSs (a160 & a401). He wants to get all residential properties that are on a river. This is the query that would achieve that.(+1 rating, 1 votes, rated)
You need to be a registered member to rate this post.Loading... -
This reply has been marked as private.(+1 rating, 1 votes, rated)
You need to be a registered member to rate this post.Loading... -
OR searches find one term or the other.
In one of the examples you see this: http://test.idxbroker.com/idx/results/homes-for-sale?idxID=a001&or_g1%5B%5D%5Ba_bankOwnedYN%5D=yes&or_g1%5B%5D%5Ba_shortSaleYN%5D=yes&pt=1&a_propStatus%5B%5D=Active&amin_garageOrParkingSpaces=4
That will basically find all listings that are Banked Owned OR are a Short Sale.
(+1 rating, 1 votes, rated)
You need to be a registered member to rate this post.Loading...
-
-
AuthorPosts
- You must be logged in to reply to this topic.