title: How can I do a full text search in CQ5 for content modified in the last 2 months?
body: <p>I'm trying do a full text search over the content in CQ using the built in <a href="http://dev.day.com/docs/en/cq/current/dam/customizing_and_extendingcq5dam/query_builder.html" rel="nofollow">query builder api</a>.  This works fine but now I want to limit the search results to those that have been modified in the last 2 months.  I have looked at using the <a href="http://dev.day.com/docs/en/cq/5-4/javadoc/com/day/cq/search/eval/RelativeDateRangePredicateEvaluator.html" rel="nofollow">relative date time predicate</a>.  The properties I'm using are:</p>
  
  <pre><code>   QueryBuilder builder = sling.getService(QueryBuilder.class);
     String fulltextSearchTerm = request.getParameter("q");
  
     Map&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
     map.put("relativedaterange", "@jcr:content/cq:lastModified");
     map.put("relativedaterange.lowerBound", "-2M");
     map.put("fulltext", fulltextSearchTerm);
     map.put("path", "/content/test/");
     map.put("type", "cq:Page");
     map.put("orderby", "@jcr:content/cq:lastModified");
     map.put("orderby.sort", "desc");
  
     Query query = builder.createQuery(PredicateGroup.create(map), resourceResolver.adaptTo(Session.class));
  </code></pre>
  
  <p>This gives me search results, but does not limit them to those modified in the last 2 months.  Am I using these properties correctly or do I need to set some other value?</p>