Simply,
How do you filter results returned using querystring that fit within a given date range.
For example I have a custom property RMExpiryDate and the value could be any date, lets say for example the format is 2014-01-01.
How would I get it to return all results where RMExpiryDate falls between a given start date and a given end date?
In JS I am simply calling a call to a url:
var queryUrl = "http://mydomain.com/sites/blabla/_api/search/query?querytext='ContentType:Factsheet RMExpiryDate:2014-05-30'&rowlimit=500&SelectProperties=RMExpiryDate,fileExtension,filename,ContentType";
$.ajax({ url: queryUrl, method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: onQuerySuccess, error: onQueryError });
This returns all the results with an exact expiry date of the one set
<and>. I'm not sure of<=or>=. – wjervis May 27 '14 at 14:21return pnp.sp.search(<SearchQuery>{ Querytext: "ContentTypeId:0x010100BF90C798634D0A48839E0B9D3E6A9118* AND AssignedToOWSUSER:.com AND EarningsDateOWSDATE gt datetime '2019-09-21T00:00:00Z'", SelectProperties: this.selectFields.split(','), RowLimit: rowLimit, TrimDuplicates: false, RowsPerPage: rowLimit, StartRow: startRow })it's not working with refinable filters.can you please help me with this?
– Akshay Sep 24 '19 at 10:00