[Rets-dev] Re: Rets-dev Digest, Vol 20, Issue 2

Stuart Schuessler sschuessler at tds.net
Fri Mar 9 13:28:57 CST 2007


Actually I believe it does require that.

 

RETS 1.1

Query ::= 1*( ( sub-query ) *( , ( sub-query ) ))

 

RETS 1.7 after it was cleaned up.  The clean up was suppose to be
functionally equivalent to 1.1.  There is no case where you could have the ,
without the () around the query.  A smart parser might be able to make that
assumption when building the binary tree but it is not required since the ()
is required:

 

search-condition::= query-clause | ( search-condition or query-clause)

 query-clause ::= boolean-element | ( query-clause and boolean-element ) 

boolean-element :: = [not] query-element query-element ::= field-criteria |
( ( search-condition ) )

 

 

Stuart

  _____  

From: rets-dev-bounces at rets.org [mailto:rets-dev-bounces at rets.org] On Behalf
Of Sergio Del Rio
Sent: Monday, March 05, 2007 10:35 AM
To: 'Scooter Campbell'; rets-dev at rets.org; vlado.tovarnak at gmail.com
Subject: RE: [Rets-dev] Re: Rets-dev Digest, Vol 20, Issue 2

 

That is not what the DMQL or DMQL2 syntax requires.

 

Regards,

Sergio Del Rio

Templates 4 Business Inc.

 

  _____  

From: rets-dev-bounces at rets.org [mailto:rets-dev-bounces at rets.org] On Behalf
Of Scooter Campbell
Sent: March 5, 2007 6:51 AM
To: rets-dev at rets.org; vlado.tovarnak at gmail.com
Subject: [Rets-dev] Re: Rets-dev Digest, Vol 20, Issue 2

 

Vlado,

 

I think all queries need '( )' around the whole query.

 

for example---

 

 ((ST=ACTV),(LD=2007-02-28))

 


 

---------- Forwarded message ----------
From: "Vlado Tovarnak" < vlado.tovarnak at gmail.com
<mailto:vlado.tovarnak at gmail.com> >
To: rets-dev at rets.org
Date: Sun, 4 Mar 2007 16:54:12 +0100
Subject: [Rets-dev] help with search query
Hello,

I am trying to search via browser for listings with listing date (LD) =
2007-02-28, but server is responding with <RETS ReplyCode="20206"
ReplyText="Invalid  Query Syntax: line 1:15: unexpected token: 2007-02-28"
/> 

on this query:

/rets/search?SearchType=Property&Class=DE&Query=(ST=ACTV),(LD=2007-02-28)&Qu
eryType=DMQL&Count=1&Limit=100&Offset=101&Format=COMPACT

Server is MLSNI's Variman 1.5

can I ask you what am I doing wrong?

thanks
with best regards
Vlado Tovarnak

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rets.org/pipermail/rets-dev/attachments/20070309/b66976d5/attachment.html


More information about the Rets-dev mailing list