Great! But thats not working for the KeywordAnalyzer isnt it? ODocument metadata = new ODocument(); metadata.field("analyzer", "org.apache.lucene.analysis.core.KeywordAnalyzer"); vertexType.createIndex(indexName, "FULLTEXT", null, metadata, "LUCENE", new String[] {fieldName});
java.lang.NoSuchMethodException: org.apache.lucene.analysis.core.KeywordAnalyzer.<init>(org.apache.lucene.util.Version) at java.lang.Class.getConstructor0(Class.java:2730) at java.lang.Class.getConstructor(Class.java:1676) at com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.getAnalyzer(OLuceneIndexManagerAbstract.java:326) at com.orientechnologies.lucene.manager.OLuceneFullTextIndexManager.createIndexWriter(OLuceneFullTextIndexManager.java:53) at com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.reOpen(OLuceneIndexManagerAbstract.java:126) at com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.initIndex(OLuceneIndexManagerAbstract.java:114) at com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.createIndex(OLuceneIndexManagerAbstract.java:99) 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:1154) at com.orientechnologies.orient.core.metadata.schema.OClassAbstractDelegate.createIndex(OClassAbstractDelegate.java:291) 3 more... Am Dienstag, 20. Mai 2014 19:30:55 UTC+2 schrieb Enrico Risa: > > Yes you can use it from the java api > > see the code here: > You can use the ODocument metadata in the createIndex api > > http://pastebin.com/Xrk2qPyT > > > 2014-05-20 19:19 GMT+02:00 Montrazul <tigge...@googlemail.com<javascript:> > >: > >> Hi, >> >> here: Full Text >> Index<https://github.com/orientechnologies/orientdb-lucene/wiki/Full-Text-Index> >> is >> written how to create an index in orientdb using lucene. >> There is also an example how to configure the analyzer to be used by >> lucene: >> >> create index City.name on City (name) FULLTEXT ENGINE LUCENE METADATA >> {"analyzer":"org.apache.lucene.analysis.en.EnglishAnalyzer"} >> >> >> Could you also add an example how to configure Lucene using the java-api? >> I would like to use KeywordAnalyzer instead of the StandardAnalyzer. >> >> Best regards! >> >> -- >> >> --- >> 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 orient-databa...@googlegroups.com <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 orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.