AnsweredAssumed Answered

Lucene or XPath search using date

Question asked by ltardioli on Jun 5, 2012
Latest reply on Jun 6, 2012 by amandaluniz_z
Hello guys,

I'm trying to write a JavaScript code that returns all documents of some folder that was created 10 days ago.

I tried using Lucene Search for exemple:
var nodes = search.luceneSearch("@created:2012-06-05");
I know this query just returns things of this day, but how to get just the ones of 10 days ago;

Another problem is this query return results of all repository, I saw that I can pass a store path on this search, but how is a path of the current store that I'm executing this javascript?

Thanks guys!

Outcomes