Date validation along with year in LSCS

is there any particular format for date validation in LSCS queries? We have a below query in which year validation is not happening. If we update day and month, results are updating. But if we change year, results are not updating.

 

http://server name/lscs context name/v1/document$?format=xml&q=((TeamSite/Templating/DCR/Type:CategoryArticle/Articles)AND(categoryType:Experiences)AND(isFeatured:Yes)AND(displayDate:<12-09-2014))

Comments

  • All LSCS fields are String format by default, so here you're doing a string comparison, not a date comparison.

     

    You can make them date fields via FieldMappings.xml, but the easier solution is to use a format that actually sorts as strings properly (i.e. yyyy-MM-dd).

TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs