sanne.grinovero wrote:
Quote:
Maven: org.apache.lucene:lucene-analyzers-common:5.4.1
Maven: org.apache.lucene:lucene-backward-codecs:5.4.1
Maven: org.apache.lucene:lucene-core:5.4.1
Maven: org.apache.lucene:lucene-facet:5.4.1
Maven: org.apache.lucene:lucene-misc:5.4.1
Maven: org.apache.lucene:lucene-queries:5.4.1
Maven: org.apache.lucene:lucene-queryparser:4.7.2
Maven: org.apache.lucene:lucene-sandbox:4.7.2
Those Apache Lucene libraries need to be all at the same version.
This is maven automatically downloaded,but I changed the pom.xml file will still appear that exception.
This is jar
Maven: antlr:antlr:2.7.7
Maven: com.alibaba:druid:1.0.18
Maven: com.alibaba:jconsole:1.8.0
Maven: com.alibaba:tools:1.8.0
Maven: com.fasterxml:classmate:1.3.0
Maven: com.janeluo:ikanalyzer:2012_u6
Maven: commons-logging:commons-logging:1.2
Maven: dom4j:dom4j:1.6.1
Maven: jakarta-regexp:jakarta-regexp:1.4
Maven: javax.validation:validation-api:1.1.0.Final
Maven: junit:junit:4.12
Maven: log4j:log4j:1.2.17
Maven: mysql:mysql-connector-java:5.1.38
Maven: org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1
Maven: org.apache.lucene:lucene-analyzers-common:5.5.2
Maven: org.apache.lucene:lucene-core:5.5.2
Maven: org.apache.lucene:lucene-facet:5.5.2
Maven: org.apache.lucene:lucene-misc:5.5.2
Maven: org.apache.lucene:lucene-queries:5.5.2
Maven: org.apache.lucene:lucene-queryparser:5.5.2
Maven: org.apache.lucene:lucene-sandbox:5.5.2
Maven: org.apache.lucene:lucene-spatial:5.5.2
Maven: org.aspectj:aspectjweaver:1.8.9
Maven: org.hamcrest:hamcrest-core:1.3
Maven: org.hibernate.common:hibernate-commons-annotations:5.0.1.Final
Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final
Maven: org.hibernate:hibernate-core:5.1.0.Final
Maven: org.hibernate:hibernate-entitymanager:5.1.0.Final
Maven: org.hibernate:hibernate-search-engine:5.6.0.Final
Maven: org.hibernate:hibernate-search-orm:5.6.0.Final
Maven: org.hibernate:hibernate-validator:5.1.0.Final
Maven: org.javassist:javassist:3.20.0-GA
Maven: org.jboss.logging:jboss-logging:3.3.0.Final
Maven: org.jboss:jandex:2.0.0.Final
Maven: org.slf4j:slf4j-api:1.7.21
Maven: org.springframework:spring-aop:4.3.3.RELEASE
Maven: org.springframework:spring-aspects:4.3.3.RELEASE
Maven: org.springframework:spring-beans:4.3.3.RELEASE
Maven: org.springframework:spring-context:4.3.3.RELEASE
Maven: org.springframework:spring-context-support:4.3.3.RELEASE
Maven: org.springframework:spring-core:4.3.3.RELEASE
Maven: org.springframework:spring-expression:4.3.3.RELEASE
Maven: org.springframework:spring-jdbc:4.3.3.RELEASE
Maven: org.springframework:spring-orm:4.3.3.RELEASE
Maven: org.springframework:spring-tx:4.3.3.RELEASE
Maven: org.springframework:spring-web:4.3.3.RELEASE
Maven: org.springframework:spring-webmvc:4.3.3.RELEASE
Maven: xml-apis:xml-apis:1.0.b2
This is Exception:
Exception in thread "Hibernate Search sync consumer thread for index com.entity.Car" java.lang.AbstractMethodError
at org.apache.lucene.analysis.AnalyzerWrapper.createComponents(AnalyzerWrapper.java:101)
at org.apache.lucene.analysis.AnalyzerWrapper.createComponents(AnalyzerWrapper.java:101)
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:176)
at org.apache.lucene.document.Field.tokenStream(Field.java:562)
at org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:628)
at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:365)
at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:321)
at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:234)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:450)
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1477)
at org.hibernate.search.backend.impl.lucene.IndexWriterDelegate.updateDocument(IndexWriterDelegate.java:77)
at org.hibernate.search.backend.impl.lucene.works.UpdateExtWorkExecutor.performWork(UpdateExtWorkExecutor.java:71)
at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.performWork(LuceneBackendQueueTask.java:112)
at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:92)
at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:46)
at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.applyChangesets(SyncWorkProcessor.java:165)
at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.run(SyncWorkProcessor.java:151)
at java.lang.Thread.run(Thread.java:722)
But now I am not using IKAnalyzer for the time being okay,I need to know how to build a cluster,I have been studying for two weeks, but the cluster is still unable to start
At the same time I would also like to ask you about the clusterI will understand the need to configure JMS or JGroup back-end, but I do not know how to configure, and now I already know that you can use ActiveMQ to solve the JMS queue, but I do not Know how to use, i just want to build a very simple cluster, can you help me?
I only knew about the cluster,I do not know how they communicate, how to connect them
hibernate.search.default.directory_provider = filesystem-slave
hibernate.search.default.sourceBase = / mnt / mastervolume / lucenedirs / mastercopy
hibernate.search.default.indexBase = / Users / prod / lucenedirs
hibernate.search.default.refresh = 1800
hibernate.search.default.worker.backend = jms
hibernate.search.default.worker.jms.connection_factory = / ConnectionFactory
hibernate.search.default.worker.jms.queue = queue / hibernatesearch
hibernate.search.default.worker.jms.login = myname
hibernate.search.default.worker.jms.password = wonttellyou
hibernate.search.worker.enlist_in_transaction = true
Now some simple inquiries, many inquiries and index I have been resolved, and now the cluster is one of my goals, I put stackoverflow all the hibernate search on the Q & A are seen, but did not see. I also search in the search engine, but there is no detailed explanation on the hibernate search cluster, just mention hibernate search support cluster only. I also downloaded the code in GitHub, but no way to start,Would you assist me? Just a very simple example just fine.
Thank you very very much