Hi,
I am trying to add a date modified range query to this API call below:
search_result <SPAN class="operator token">=</SPAN> gis<SPAN class="punctuation token">.</SPAN>content<SPAN class="punctuation token">.</SPAN>search<SPAN class="punctuation token">(</SPAN>query<SPAN class="operator token">=</SPAN>modified<SPAN class="punctuation token">:</SPAN>DATERANGE<SPAN class="punctuation token">,</SPAN> item_type<SPAN class="operator token">=</SPAN><SPAN class="string token">"Feature Service"</SPAN><SPAN class="punctuation token">,</SPAN> sort_field<SPAN class="operator token">=</SPAN><SPAN class="string token">"modified"</SPAN><SPAN class="punctuation token">,</SPAN> sort_order<SPAN class="operator token">=</SPAN><SPAN class="string token">"desc"</SPAN><SPAN class="punctuation token">,</SPAN> max_items<SPAN class="operator token">=</SPAN><SPAN class="number token">5000</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
I have tested the query="title:NAMEOFLAYER" and it works fine. But I cant get the right syntax for the query=modified:
I have tried the above syntax, plus these: query="modified [1577840400 TO 1609455600]", query=modified 1577840400 TO 1609455600, query='modified [1577840400 TO 1609455600]'
I cant find any examples of the right syntax for this to work.
Thanks for any help in advance.
Andrew