sgrouples / sbt-solr-plugin

Sbt plugin to start solr with a task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solr plugin for sbt

Allows to start solr from sbt in a separate jvm

Usage:

  1. Add solr to project/plugins.sbt:
addSbtPlugin("me.sgrouples" % "solr-plugin" % "0.4.1")

also add repository to project/plugins.sbt:

resolvers += "sgrouples custom builds" at "https://raw.github.com/sgrouples/mvn-repo/master/"
  1. Enable pluing for your project

build.sbt:

enablePlugins(SolrPlugin)
  1. Put configuration in src/main/resources/solr/

  2. Start solr

solrStart

Tasks:

solrStart - start solr solrStop - stop solr

Configuration

solrPort := 8983 to run on

solrConfigHome := src/main/resources/solr folder where solr configuration lives

solrRunFolder := target/solr working directory where solr will run

solrContext := /solr http context

About

Sbt plugin to start solr with a task

License:Apache License 2.0


Languages

Language:Scala 100.0%