             return
         }
 
-
-        //updateResultsTableView(scrollsToTop: scrollsToTop)
+        // 不要重复搜索一样的内容
+        if let keyword = self.keyword where keyword == searchText {
+            return
+        }
+
+        self.keyword = searchText
+
+        feedsWithKeyword(searchText, pageIndex: 1, perPage: 30, failureHandler: nil) { [weak self] feeds in
+            self?.feeds = feeds
+
+            self?.updateResultsTableView(scrollsToTop: true)
+        }
     }
 }
 

        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(SearchFeedsViewController.didRecieveMenuWillShowNotification(_:)), name: UIMenuControllerWillShowMenuNotification, object: nil)

        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(SearchFeedsViewController.didRecieveMenuWillHideNotification(_:)), name: UIMenuControllerWillHideMenuNotification, object: nil)

        feedsWithKeyword("hello", pageIndex: 0, perPage: 30, failureHandler: nil) { [weak self] feeds in
            self?.feeds = feeds

            dispatch_async(dispatch_get_main_queue()) { [weak self] in
                self?.feedsTableView.reloadData()
            }
        }
    }

    private var isFirstAppear = true

    }

    private func updateResultsTableView(scrollsToTop scrollsToTop: Bool = false) {
        dispatch_async(dispatch_get_main_queue()) { [weak self] in
            self?.feedsTableView.reloadData()

            if scrollsToTop {
                self?.feedsTableView.yep_scrollsToTop()
            }
        }
    }

    /*
