Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
dritter-sap edited this page May 13, 2020 · 18 revisions

Welcome to the orientdb-lucene wiki!

OrientDB > v2.1

From OrientDB versions greater than 2.1 and onwards, orientdb-lucene is not a separate project anymore, but part of the OrientDB server, and thus does not require further installation.

How to use orientdb-lucene

Orientdb-lucene for now supports two types of index

  1. Full Text index
  2. Spatial Index

OrientDB v[1.7,2.1] (old versions)

orientdb-lucene is compatible with OrientDB >= 1.7 (also 1.7-SNAPSHOT latest) up to v2.1.

How to install orientdb-lucene

Server Mode

Starting from OrientDB 2.0, Lucene plugin is part of the OrientDB distribution.

Go to the releases page, pick up a release and put the jar in your OrientDB installation under the plugins directory. Restart the server and start using Lucene. If the plugin is correctly installed, you will se a in the server log: INFO Lucene index plugin installed and active. Lucene version: LUCENE_47 [OLuceneIndexPlugin]

OR

Clone this project and run mvn assembly:assembly and copy the jar (orientdb-lucene-version-dist.jar) from target folder into the 'lib' directory of your OrientDB installation

Embedded Mode

Add the Sonatype Nexus Snapshots into your pom

<repositories>
        <repository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
</repositories>

Then add the orientdb-lucene dependency

<dependency>
     <groupId>com.orientechnologies</groupId>
     <artifactId>orientdb-lucene</artifactId>
      <version>${version}</version>
</dependency>