<commit_before>Dropbox River for Elasticsearch
===============================

Welcome to the Dropbox River Plugin for [Elasticsearch](http://www.elasticsearch.org/)

This river plugin helps to index documents from your dropbox account.

*WARNING*: You need to have the [Attachment Plugin](https://github.com/elasticsearch/elasticsearch-mapper-attachments).


Versions
--------

<table>
	<thead>
		<tr>
			<td>Dropbox River Plugin</td>
			<td>ElasticSearch</td>
			<td>Attachment Plugin</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>master (0.2.0)</td>
			<td>0.21.0.Beta1-SNAPSHOT</td>
			<td>1.6.0</td>
		</tr>
		<tr>
			<td>0.1.0</td>
			<td>0.20.4</td>
			<td>1.6.0</td>
		</tr>
	</tbody>
</table>


Build Status
------------

Thanks to cloudbees for the [build status](https://buildhive.cloudbees.com/job/dadoonet/job/dropbox/) : 
![build status](https://buildhive.cloudbees.com/job/dadoonet/job/dropbox/badge/icon "Build status")

Getting Started
===============

Installation
------------

Just type :

```sh
$ bin/plugin -install fr.pilato.elasticsearch.river/dropbox/0.1.0
```

This will do the job...

```
-> Installing fr.pilato.elasticsearch.river/dropbox/0.1.0...
Trying http://download.elasticsearch.org/fr.pilato.elasticsearch.river/dropbox/dropbox-0.1.0.zip...
Trying http://search.maven.org/remotecontent?filepath=fr/pilato/elasticsearch/river/dropbox/0.1.0/dropbox-0.1.0.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/fr/pilato/elasticsearch/river/dropbox/0.1.0/dropbox-0.1.0.zip...
Downloading ......DONE
Installed dropbox
```


Get Dropbox credentials (token and secret)
------------------------------------------

First, you need to create your own application in [Dropbox Developers](https://www.dropbox.com/developers/apps).

Note your `AppKey` and your `AppSecret`.

You need then to get an Authorization from the user for this new Application.

Just open the `_dropbox` REST Endpoint with your `AppKey` and `AppSecret` parameters: http://localhost:9200/_dropbox/oauth/AppKey/AppSecret
<commit_msg>Add documentation about Dropbox App type<commit_after>Dropbox River for Elasticsearch
===============================

Welcome to the Dropbox River Plugin for [Elasticsearch](http://www.elasticsearch.org/)

This river plugin helps to index documents from your dropbox account.

*WARNING*: You need to have the [Attachment Plugin](https://github.com/elasticsearch/elasticsearch-mapper-attachments).


Versions
--------

<table>
	<thead>
		<tr>
			<td>Dropbox River Plugin</td>
			<td>ElasticSearch</td>
			<td>Attachment Plugin</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>master (0.2.0)</td>
			<td>0.21.0.Beta1-SNAPSHOT</td>
			<td>1.6.0</td>
		</tr>
		<tr>
			<td>0.1.0</td>
			<td>0.20.4</td>
			<td>1.6.0</td>
		</tr>
	</tbody>
</table>


Build Status
------------

Thanks to cloudbees for the [build status](https://buildhive.cloudbees.com/job/dadoonet/job/dropbox/) : 
![build status](https://buildhive.cloudbees.com/job/dadoonet/job/dropbox/badge/icon "Build status")

Getting Started
===============

Installation
------------

Just type :

```sh
$ bin/plugin -install fr.pilato.elasticsearch.river/dropbox/0.1.0
```

This will do the job...

```
-> Installing fr.pilato.elasticsearch.river/dropbox/0.1.0...
Trying http://download.elasticsearch.org/fr.pilato.elasticsearch.river/dropbox/dropbox-0.1.0.zip...
Trying http://search.maven.org/remotecontent?filepath=fr/pilato/elasticsearch/river/dropbox/0.1.0/dropbox-0.1.0.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/fr/pilato/elasticsearch/river/dropbox/0.1.0/dropbox-0.1.0.zip...
Downloading ......DONE
Installed dropbox
```


Get Dropbox credentials (token and secret)
------------------------------------------

First, you need to create your own application in [Dropbox Developers](https://www.dropbox.com/developers/apps).

If you create a **Full Dropbox** application, you will have access to all folders.

If you create a **App folder** application, you will only have access to *your app* folder files. You will get `Dropbox HTTP Error 403 : {"error": "Forbidden"}` errors when accessing to other folders.

Note your `AppKey` and your `AppSecret`.

You need then to get an Authorization from the user for this new Application.

Just open the `_dropbox` REST Endpoint with your `AppKey` and `AppSecret` parameters: http://localhost:9200/_dropbox/oauth/AppKey/AppSecret

{'fraction_non_alphanumeric': 0.1956668923493568, 'fraction_numerical': 0.02143985556307831, 'mean_word_length': 3.4767676767676767, 'pattern_counts': {'":': 1, '<': 63, '<?xml version=': 0, '>': 65, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '455390', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1516, 'n_words': 343}