Skip to content

Commit

Permalink
updated pkg level man file, fix #73
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed May 1, 2015
1 parent fc5484c commit 2686db7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 35 deletions.
44 changes: 25 additions & 19 deletions R/elastic-package.r
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,50 @@
#' This package gives you access to local or remote Elasticsearch databases.
#'
#' @section Quick start:
#'
#'
#' If you're connecting to a Elasticsearch server already running, skip ahead to \bold{Search}.
#'
#' Install Elasticsearch (on OSX)
#' \itemize{
#' \item Download zip or tar file from Elasticsearch see here for download:
#' \url{http://www.elasticsearch.org/overview/elkdownloads/}
#' \item Unzip it: `unzip` or `untar`
#' \item Move it: `sudo mv /path/to/elasticsearch-1.1.1 /usr/local` (replace version with
#' your version)
#' \item Navigate to /usr/local: `cd /usr/local`
#' \item Add shortcut: `sudo ln -s elasticsearch-1.1.1 elasticsearch` (replace version with
#' your version)
#' \item Download zip or tar file from Elasticsearch see here for download:
#' \url{https://www.elastic.co/downloads/elasticsearch}
#' \item Unzip it: \code{untar elasticsearch-1.5.2.tar.gz}
#' \item Move it: \code{sudo mv /path/to/elasticsearch-1.5.2 /usr/local}
#' (replace version with your version)
#' \item Navigate to /usr/local: \code{cd /usr/local}
#' \item Add shortcut: \code{sudo ln -s elasticsearch-1.5.2 elasticsearch}
#' (replace version with your verioon)
#' }
#'
#' For help on other platforms, see
#' \url{http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_installation.html}
#'
#' \bold{Start Elasticsearch}
#'
#' \itemize{
#' \item Navigate to elasticsearch: `cd /usr/local/elasticsearch`
#' \item Start elasticsearch: `bin/elasticsearch`
#' \item Navigate to elasticsearch: \code{cd /usr/local/elasticsearch}
#' \item Start elasticsearch: \code{bin/elasticsearch}
#' }
#'
#' \bold{Initialization:}
#'
#' The function \code{\link{connect}} is used before doing anything else to set the connection details to
#' your remote or local elasticsearch store. The details created by \code{\link{connect}} are written
#' to your options for the current session, and are used by `elastic` functions.
#'
#' \code{\link{connect}}
#' The function \code{\link{connect}} is used before doing anything else to set
#' the connection details to your remote or local elasticsearch store. The
#' details created by \code{\link{connect}} are written to your options for the
#' current session, and are used by \code{elastic} functions.
#'
#' \bold{Search:}
#'
#' The main way to search Elasticsearch is via the \code{\link{Search}} function. E.g.:
#'
#' \code{Search(index="twitter")}
#' \code{Search()}
#'
#' @section Security:
#'
#' Elasticsearch is insecure out of the box! If you are running Elasticsearch
#' locally on your own machine, no worries, but if you install on a server with
#' a public IP address, take the necessary precautions. There are a few options:
#' locally on your own machine without exposing a port to the outside world, no
#' worries, but if you install on a server with a public IP address, take the
#' necessary precautions. There are a few options:
#'
#' \itemize{
#' \item Shield \url{https://www.elastic.co/products/shield} - This is a paid
Expand All @@ -55,5 +60,6 @@
#'
#' @docType package
#' @aliases elastic-package
#' @author Scott Chamberlain \email{myrmecocystus@@gmail.com}
#' @name elastic
NULL
40 changes: 24 additions & 16 deletions man/elastic.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,51 @@ This package gives you access to local or remote Elasticsearch databases.
\section{Quick start}{


If you're connecting to a Elasticsearch server already running, skip ahead to \bold{Search}.
Install Elasticsearch (on OSX)
\itemize{
\item Download zip or tar file from Elasticsearch see here for download:
\url{http://www.elasticsearch.org/overview/elkdownloads/}
\item Unzip it: `unzip` or `untar`
\item Move it: `sudo mv /path/to/elasticsearch-1.1.1 /usr/local` (replace version with
your version)
\item Navigate to /usr/local: `cd /usr/local`
\item Add shortcut: `sudo ln -s elasticsearch-1.1.1 elasticsearch` (replace version with
your version)
\item Unzip it: \code{untar elasticsearch-1.5.2.tar.gz}
\item Move it: \code{sudo mv /path/to/elasticsearch-1.5.2 /usr/local}
(replace version with your version)
\item Navigate to /usr/local: \code{cd /usr/local}
\item Add shortcut: \code{sudo ln -s elasticsearch-1.5.2 elasticsearch}
(replace version with your verioon)
}
For help on other platforms, see
\url{http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_installation.html}
\bold{Start Elasticsearch}
\itemize{
\item Navigate to elasticsearch: `cd /usr/local/elasticsearch`
\item Start elasticsearch: `bin/elasticsearch`
\item Navigate to elasticsearch: \code{cd /usr/local/elasticsearch}
\item Start elasticsearch: \code{bin/elasticsearch}
}
\bold{Initialization:}
The function \code{\link{connect}} is used before doing anything else to set the connection details to
your remote or local elasticsearch store. The details created by \code{\link{connect}} are written
to your options for the current session, and are used by `elastic` functions.

\code{\link{connect}}
The function \code{\link{connect}} is used before doing anything else to set
the connection details to your remote or local elasticsearch store. The
details created by \code{\link{connect}} are written to your options for the
current session, and are used by \code{elastic} functions.
\bold{Search:}
The main way to search Elasticsearch is via the \code{\link{Search}} function. E.g.:
\code{Search(index="twitter")}
\code{Search()}
}
\section{Security}{
Elasticsearch is insecure out of the box! If you are running Elasticsearch
locally on your own machine, no worries, but if you install on a server with
a public IP address, take the necessary precautions. There are a few options:
locally on your own machine without exposing a port to the outside world, no
worries, but if you install on a server with a public IP address, take the
necessary precautions. There are a few options:
\itemize{
\item Shield \url{https://www.elastic.co/products/shield} - This is a paid
Expand All @@ -66,4 +71,7 @@ a public IP address, take the necessary precautions. There are a few options:
\url{http://recology.info/2015/02/secure-elasticsearch/}
}
}
\author{
Scott Chamberlain \email{myrmecocystus@gmail.com}
}

0 comments on commit 2686db7

Please sign in to comment.