elasticsearch-river-subversion

Subversion River plugin for Elasticsearch

Лицензия

Лицензия

Категории

Категории

Subversion Инструменты разработки Контроль версий Search Прикладные библиотеки Elasticsearch
Группа

Группа

com.github.plombard
Идентификатор

Идентификатор

elasticsearch-river-subversion
Последняя версия

Последняя версия

0.3.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

elasticsearch-river-subversion
Subversion River plugin for Elasticsearch
Ссылка на сайт

Ссылка на сайт

https://github.com/plombard/SubversionRiver
Система контроля версий

Система контроля версий

https://github.com/plombard/SubversionRiver.git

Скачать elasticsearch-river-subversion

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.plombard/elasticsearch-river-subversion/ -->
<dependency>
    <groupId>com.github.plombard</groupId>
    <artifactId>elasticsearch-river-subversion</artifactId>
    <version>0.3.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.plombard/elasticsearch-river-subversion/
implementation 'com.github.plombard:elasticsearch-river-subversion:0.3.5'
// https://jarcasting.com/artifacts/com.github.plombard/elasticsearch-river-subversion/
implementation ("com.github.plombard:elasticsearch-river-subversion:0.3.5")
'com.github.plombard:elasticsearch-river-subversion:jar:0.3.5'
<dependency org="com.github.plombard" name="elasticsearch-river-subversion" rev="0.3.5">
  <artifact name="elasticsearch-river-subversion" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.plombard', module='elasticsearch-river-subversion', version='0.3.5')
)
libraryDependencies += "com.github.plombard" % "elasticsearch-river-subversion" % "0.3.5"
[com.github.plombard/elasticsearch-river-subversion "0.3.5"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.elasticsearch : elasticsearch jar 0.90.3
org.tmatesoft.svnkit : svnkit jar 1.7.8
com.google.guava : guava jar 14.0.1
com.google.code.gson : gson jar 2.2.2
com.github.tlrx : elasticsearch-test jar 0.0.9

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

Subversion River for ElasticSearch

Subversion River plugin for ElasticSearch

Getting Started

Installation

Use the elasticsearch plugin manager to install the plugin :

$ /path-to/elasticsearch/bin/plugin --install com.github.plombard/elasticsearch-river-subversion/0.3.5

Creating a Subversion river

Just create a new river of type "svn" and give it at least a repository and a path to index ("/" for the entire repos) :

curl -XPUT 'localhost:9200/_river/mysvnriver/_meta' -d '{
   "type": "svn",
   "svn": {
    "repos": "file:///myRepository",
    "path":  "mySvnModule/trunk"
   }
}'

River parameters

Except "repos" and "path", there are other parameters to the creation of the river :

"login", the user to use to connect to the repository (default "anonymous")

"password", the password to use to connect to the repository (default "password")

"update_rate", in ms, the time interval between every tick of the river (default 900000, so 15 mn)

"type", if you want your subversion information to use another type for the river (default "svn")

"bulk_size", the size of the bulks sent to the indexer (default 200)

"start_revision", in long format, the starting revision for the indexing (default "1L")

Data indexed

For the moment the river indexes only a few metadatas from svn, mainly the file content (I wrote it for full-text searches) : path, name, author, repository, revision, date, size, message and content.

Fields from and origin are respectively the revision and path of origin of the change, like when a tag is created from the trunk.

Please be aware that the mapping did change from the previous version, as the indexing of revisions is now preferred to the indexing of single documents.

Performance

Be very careful not to be too greedy with the bulk size and update rate parameters, as the retrieving of revisions can have a high memory consumption, and the indexing itself is very CPU-intensive.

Credits

These sources borrows heavily from :

Copyright

I put most of the code under Apache 2.0 licence.

Версии библиотеки

Версия
0.3.5