Lucene Spatial and embedded server

Hello!

Quote from docs:

Since v 3.0, this module is provided in-bundle with the main distribution (Community and Enterprise Editions)

Im using embedded server 3.0.26, which maven dependency i have to use?

now im using

    <dependency>
        <groupId>com.orientechnologies</groupId>
        <artifactId>orientdb-lucene</artifactId>
        <version>3.0.26</version>
    </dependency>

but code from docs

CREATE PROPERTY Restaurant.location EMBEDDED OPoint

throws exception:

java.lang.IllegalArgumentException: No enum constant com.orientechnologies.orient.core.metadata.schema.OType.OPOINT

What additional dependencies should I use?

Hi @arch7tect

the lucene plugin should automatically create the embeddable class for you.
Are you building a single executable jar?

If yes you should append also the services files, which loads the spatial services

See here

http://orientdb.com/docs/3.0.x/gettingstarted/Tutorial-Installation.html#building-a-single-executable-jar-with-orientdb

Let me know if this helps

Hi @wolf4ood!
Thanks so much for your advice. But it does not solve my problem.
For test purposes, I use a simple main function.
Content of my META-INF/services:

My pom.xml:

In the end, I figured out my problem. The spatial manager is initialized only when the database is created. Accordingly, neither the already created database nor the imported demodb (and it is a little confusing) had spatial types.