initial import of stream2es wrappers

fixed typo

removed refactor leave behinds

missed push

cr comments

removing extra scheme part

fixed typo, clarified comment
Merge pull request #100 from edx/e0d/stream2es

E0d/stream2es
minor adjustments to index copying scripts
add migrate-index.sh for simplified reindexing.
Merge pull request #101 from edx/jsa/index-migration

add migrate-index.sh for simplified reindexing.
add create/update dates to comments index, for use in statistical facets
Merge pull request #102 from edx/jsa/index-comments-dates

add create/update dates to comments index, for use in statistical facets
Return total result count for text search queries
Merge pull request #103 from edx/gprice/search-total-results

Return total result count for text search queries
Revise/add rake tasks for search index mgmt.  Bump Tire to 0.6.2.

Tire is being upgraded in order to get the latest import-related fixes, such as:

https://github.com/karmi/retire/commit/13abc5b351a66301e246adf9e657fd3b5e9c66aa
https://github.com/karmi/retire/commit/45eb4f988ddc51bd51236e0c918804dc3ee29a9b
https://github.com/karmi/retire/commit/7117550ac76f849dd8c55cb1f2bf24a68de40d7c
https://github.com/karmi/retire/commit/67b89035cf7e63b87f6656eda6e73be500f4977a
Merge pull request #104 from edx/jsa/index-migr2

Revise/add rake tasks for search index mgmt.  Bump Tire to 0.6.2.
Remove references to tags in Rakefile
Add author
Merge pull request #106 from ADubus/fix-rakefile-tags

Fix task seed in Rakefile
use a single index in elasticsearch for both document types.

WARNING: Must rebuild search index!

Starting with this change, the name of the search index used by the
service has changed.  The new search index must be created before
deploying this version of the application.  There are two ways of doing
this:

* Offline (recommended)
Follow [these instructions](https://github.com/edx/cs_comments_service/wiki/Search-Indexes#offline-procedure) to perform an offline rebuild.

* Online
1. Deploy this code to a host which is not serving HTTP requests, and
run `rake search:rebuild`
2. When the rebuild finishes, deploy the updated code on live servers.
3. run `rake search:catchup[MINUTES]` where minutes is the amount of
time it took to run rebuild in step 1.
4. run `rake search:prune`
Merge pull request #107 from edx/jsa/single-index

use a single index in elasticsearch for both document types.
Refactor search code

This contains several improvements and bug-fixes:

* Take advantage of indexing changes in ead2f5e to reduce the number of
  round trips to execute a search
* Use Tire scan to include all matching threads
* Execute final sort/pagination in Mongo
* Share sorting code
* Eliminate separate presenter for search results (which removes unused
  highlighting functionality)

JIRA: FOR-607
Add spelling correction to text search queries

If a search has no results, then we will get suggestions from
Elasticsearch, re-query with the top suggestion, and return the results
from that query along with the suggestion that was used.

This change also changes search so that a document must match all terms
to be included in the results instead of any term.
Merge pull request #105 from edx/gprice/search-spell-correction

Refactor search, fix a bug, and implement spelling correction
Add the ability to query multiple group ids