 
 newReleaseSearch = (msg,isKindle) ->
   query = msg.match[1]
-  lastMonth = moment().add(-1,'M').format('MM-YYYY')
-  thisMonth = moment().format('MM-YYYY')
-  nextMonth = moment().add(1,'M').format('MM-YYYY')
-  during = "(during #{lastMonth} or during #{thisMonth} or during #{nextMonth})"
+  monthBeforeLast = moment().add(-2,'M').format('MM-YYYY')
 
   operationHelper = getOperationHelper()
-  search msg, operationHelper, query, isKindle ,during, 1
+  search msg, operationHelper, query, isKindle ,monthBeforeLast, 1
 
 module.exports = (robot) ->
 

    operationHelper = new OperationHelper config
  return operationHelper

search = (msg, operationHelper, query, isKindle, during, page) ->

  binding = if isKindle then 'kindle' else 'not kindle'

  operationHelper.execute('ItemSearch',{
    'SearchIndex': 'Books',
    'BrowseNode': comicNode,
    'Title': query,
#    'Power':"pubdate:#{during} and binding:#{binding}",
    'Power':"pubdate:during 08-2016 or pubdate:during 07-2016 and binding:#{binding}",
    'ResponseGroup':'Large',
    'Sort':'daterank',
    'ItemPage': page

      msg.send "#{baseItem.Title[0]}が見つかったよー\n発売日は #{if isKindle then baseItem.ReleaseDate[0] else baseItem.PublicationDate[0]}だよ #{item.DetailPageURL[0]}"

    if page < totalPages and page < 10
      setTimeout(search, 5000, msg, operationHelper, query,isKindle,month, page + 1)

  ).catch((err) ->
    console.log("error:", err)
