Thank! Migrating on 1.7-SNAPSHOT helped. But there is one more question.
I've tried to create lucene index with KeywordAnalyzer. Index creation
command:
create index name_LUCENE_INDEX on Location (name) FULLTEXT ENGINE LUCENE
METADATA {"analyzer":"org.apache.lucene.analysis.core.KeywordAnalyzer"}
But there was error thrown.
2014-05-15 16:42:20:590 INFO OrientDB Server v1.7-SNAPSHOT is active.
[OServer]java.lang.NoSuchMethodException:
org.apache.lucene.analysis.core.Keywor
dAnalyzer.<init>(org.apache.lucene.util.Version)
at java.lang.Class.getConstructor0(Class.java:2810)
at java.lang.Class.getConstructor(Class.java:1718)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.getAnalyzer(OLuceneIndexManagerAbstract.java:323)
at
com.orientechnologies.lucene.manager.OLuceneFullTextIndexManager.createIndexWriter(OLuceneFullTextIndexManager.java:53)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.reOpen(OLuceneIndexManagerAbstract.java:123)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.initIndex(OLuceneIndexManagerAbstract.java:112)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.createIndex(OLuceneIndexManagerAbstract.java:97)
at
com.orientechnologies.lucene.OLuceneIndexEngine.create(OLuceneIndexEngine.java:60)
at
com.orientechnologies.orient.core.index.OIndexAbstract.create(OIndexAbstract.java:219)
at
com.orientechnologies.orient.core.index.OIndexMultiValues.create(OIndexMultiValues.java:235)
at
com.orientechnologies.lucene.index.OLuceneFullTextIndex.create(OLuceneFullTextIndex.java:45)
at
com.orientechnologies.lucene.index.OLuceneFullTextIndex.create(OLuceneFullTextIndex.java:32)
at
com.orientechnologies.orient.core.index.OIndexManagerShared.createIndex(OIndexManagerShared.java:143)
at
com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex(OIndexManagerProxy.java:75)
at
com.orientechnologies.orient.core.metadata.schema.OClassImpl.createIndex(OClassImpl.java:1136)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateIndex.execute(OCommandExecutorSQLCreateIndex.java:235)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:60)
at
com.orientechnologies.orient.core.storage.OStorageEmbedded.executeCommand(OStorageEmbedded.java:96)
at
com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:85)
at
com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:59)
at
com.orientechnologies.orient.server.network.protocol.http.command.post.OServerCommandPostCommand.execute(OServerCommandPostCommand.java:73)
at
com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:153)
at
com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:549)
at
com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)
2014-05-15 16:43:49:392 INFO - Rebuilding index
GeoLocationSpike.name_en_LUCENE_INDEX... [OIndexRebuildOutputListener]
2014-05-15 16:43:49:438 INFO --> OK, indexed 0 items in 46 ms
[OIndexRebuildOutputListener]
2014-05-15 16:43:49:445 SEVE Internal server error:
com.orientechnologies.orient.core.index.OIndexException: Error on
rebuilding the index for clusters: [location]
--> java.lang.NullPointerException
[ONetworkProtocolHttpDb]java.lang.NoSuchMethodException:
org.apache.lucene.analysis.core.KeywordAnalyzer.<init>(org
.apache.lucene.util.Version)
at java.lang.Class.getConstructor0(Class.java:2810)
at java.lang.Class.getConstructor(Class.java:1718)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.getAnalyzer(OLuceneIndexManagerAbstract.java:323)
at
com.orientechnologies.lucene.manager.OLuceneFullTextIndexManager.createIndexWriter(OLuceneFullTextIndexManager.java:53)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.reOpen(OLuceneIndexManagerAbstract.java:123)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.initIndex(OLuceneIndexManagerAbstract.java:112)
at
com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.createIndex(OLuceneIndexManagerAbstract.java:97)
at
com.orientechnologies.lucene.OLuceneIndexEngine.create(OLuceneIndexEngine.java:60)
at
com.orientechnologies.orient.core.index.OIndexAbstract.create(OIndexAbstract.java:219)
at
com.orientechnologies.orient.core.index.OIndexMultiValues.create(OIndexMultiValues.java:235)
at
com.orientechnologies.lucene.index.OLuceneFullTextIndex.create(OLuceneFullTextIndex.java:45)
at
com.orientechnologies.lucene.index.OLuceneFullTextIndex.create(OLuceneFullTextIndex.java:32)
at
com.orientechnologies.orient.core.index.OIndexManagerShared.createIndex(OIndexManagerShared.java:143)
at
com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex(OIndexManagerProxy.java:75)
at
com.orientechnologies.orient.core.metadata.schema.OClassImpl.createIndex(OClassImpl.java:1136)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateIndex.execute(OCommandExecutorSQLCreateIndex.java:235)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:60)
at
com.orientechnologies.orient.core.storage.OStorageEmbedded.executeCommand(OStorageEmbedded.java:96)
at
com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:85)
at
com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:59)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1100)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:350)
at
com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:160)
at
com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)
четверг, 15 мая 2014 г., 14:15:52 UTC+3 пользователь Enrico Risa написал:
>
> Yes for now it's working only with remote i know.
> Because i've made it as a Plugin and if you do not have the server, it
> doesn't work.
> I know how to fix it, i will do it shortly
>
> 2014-05-15 13:11 GMT+02:00 Montrazul <[email protected]<javascript:>
> >:
>
>> No, unfortuantely the latest 1.7-SNAPSHOT (last modified Thu May 15
>> 04:58:24 CDT 2014)
>> still does not work with lucene in plocal mode.
>>
>> Am Donnerstag, 15. Mai 2014 12:55:11 UTC+2 schrieb Enrico Risa:
>>>
>>> Hi Vladimir
>>> it does't work with OrientDB 1.7-rc2
>>> you have to download the latest snapshot from here
>>> https://oss.sonatype.org/content/repositories/snapshots/com/
>>> orientechnologies/orientdb-community/1.7-SNAPSHOT/
>>>
>>>
>>> 2014-05-15 12:44 GMT+02:00 Vladimir Ziankevich <[email protected]>:
>>>
>>>> Hi all!
>>>> I have some problems with setting up lucene plugin.
>>>>
>>>> I ve installed OrientDB 1.7-rc2.
>>>> I followed steps described on this page https://github.com/
>>>> orientechnologies/orientdb-lucene/wiki
>>>> downloaded the latest plugin lucene-1.7-SNAPSHOT-plugin.jar, put it in
>>>> the 'plugins' directory.
>>>> But on the starting of database I receive the next error:
>>>>
>>>> java.lang.IllegalArgumentException: No enum constant
>>>> com.orientechnologies.orient.core.metadata.schema.OType.LUCENE
>>>> [ONetworkProtocolHttpDb]
>>>> 2014-05-15 13:01:08:635 INFO Installing dynamic plugin
>>>> 'studio-1.7-rc2.zip'... [OServerPluginManager]Error on installing dynamic
>>>> plugin 'lucene-index'
>>>> null
>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>> NativeMethodAccessorImpl.java:57)
>>>> -> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>> DelegatingMethodAccessorImpl.java:43)
>>>> -> java.lang.reflect.Method.invoke(Method.java:606)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> startPluginClass(OServerPluginManager.java:327)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> installDynamicPlugin(OServerPluginManager.java:242)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> updatePlugin(OServerPluginManager.java:187)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> updatePlugins(OServerPluginManager.java:140)
>>>> -> com.orientechnologies.orient.server.plugin.
>>>> OServerPluginManager.access$000(OServerPluginManager.java:54)
>>>> -> com.orientechnologies.orient.server.plugin.
>>>> OServerPluginManager$1.run(OServerPluginManager.java:87)
>>>> -> java.util.TimerThread.mainLoop(Timer.java:555)
>>>> -> java.util.TimerThread.run(Timer.java:505)
>>>> Could not initialize class com.orientechnologies.lucene.
>>>> OLuceneIndexFactory
>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>> NativeMethodAccessorImpl.java:57)
>>>> -> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>> DelegatingMethodAccessorImpl.java:43)
>>>> -> java.lang.reflect.Method.invoke(Method.java:606)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> startPluginClass(OServerPluginManager.java:327)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> installDynamicPlugin(OServerPluginManager.java:242)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> updatePlugin(OServerPluginManager.java:187)
>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginManager.
>>>> updatePlugins(OServerPluginManager.java:140)
>>>> -> com.orientechnologies.orient.server.plugin.
>>>> OServerPluginManager.access$000(OServerPluginManager.java:54)
>>>> -> com.orientechnologies.orient.server.plugin.
>>>> OServerPluginManager$1.run(OServerPluginManager.java:87)
>>>> -> java.util.TimerThread.mainLoop(Timer.java:555)
>>>> -> java.util.TimerThread.run(Timer.java:505)
>>>>
>>>>
>>>> четверг, 24 апреля 2014 г., 19:14:14 UTC+3 пользователь Enrico Risa
>>>> написал:
>>>>
>>>>> Hi All,
>>>>>
>>>>> a new module for OrientDB is available. The first integration OrientDB
>>>>> / Lucene is out.
>>>>> The integration for now is focused on Full Text Index and Spatial
>>>>> Index.
>>>>>
>>>>> You can find the Docs here https://github.com/orient
>>>>> echnologies/orientdb-lucene/wiki on how
>>>>> to install and use the module.
>>>>>
>>>>> Give it a try,
>>>>> contributions are welcome.
>>>>>
>>>>> Best Regards
>>>>> Enrico
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "OrientDB" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.