[libRETS-users] Search Request

Keith T. Garner kgarner at crt.realtors.org
Fri Jun 8 14:12:47 CDT 2007


On 6/8/07 2:06 PM, Joe Davis wrote:
> I'm sifting through the documentation for librets, specifically the C#
> files, and I need some help clarifying the search terms.  
> 
> In the Search.cs file

> 	            *"Property"*, *"ResidentialProperty"*,
> *"(ListPrice=300000-)"*);
> 
> it searches property/residentialproperty for all houses listed at 300K,

With the query you have there, its 300K or below.  That's part is DMQL, the
query langauge of RETS.  Unforutnately, the best documentation on DMQL is
the RETS spec, and that's not that great.

> if I want to search for all houses active in a certain county it would
> look like
> session.CreateSearchRequest("Property","ResidentailProperty"."(Status=|A)(County=Springfield)");
>
> Correct or incorrect?

Well, it looks like it would be a good query, but its highly dependent on
the metadata of the RETS server you're talking to.  RETS is metadata driven,
so what you wrote could work on someone's RETS server, or it could not.  THe
syntax looks valid.

You'll want to familiarize yourself with walking the metadata.

Keith

-- 
  Keith T. Garner - Managing Director - Center for REALTOR® Technology
   kgarner at realtors.org - 312-329-3294 - http://blog.realtors.org/crt




More information about the libRETS-users mailing list