[Dovecot] dovecot fts solr plugin
Thomas Baumann
list.dovecot at tiri.li
Mon Aug 5 15:27:19 EEST 2013
Hello Timo,
I did following (using apache-solr-3.6.2):
wget
"http://hg.dovecot.org/dovecot-2.0/raw-file/3fbfdda3e5d3/src/plugins/fts-s
olr/schema.xml" -O solr/conf/schema.xml
Then I started solr
java -jar start.jar
And and SEVERE Error is thrown, but searching seems to work.
05.08.2013 14:22:29 org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: undefined field text
at
org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:13
30)
at
org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getAnalyzer(IndexSche
ma.java:408)
at
org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.reusableTokenStream(I
ndexSchema.java:383)
at
org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:5
74)
at
org.apache.solr.search.SolrQueryParser.getFieldQuery(SolrQueryParser.java:
206)
at
org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1436)
at
org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1319)
at
org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1245)
at
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1
234)
at
org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
at
org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:79)
at org.apache.solr.search.QParser.getQuery(QParser.java:143)
at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.ja
va:105)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHa
ndler.java:165)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBas
e.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
at
org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.j
ava:59)
at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1182)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.
java:897)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:919)
at java.lang.Thread.run(Thread.java:736)
And for solr-4.3.1 the schema is not useable.
"Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] analyzer/filter: Error loading class
'solr.EnglishPorterFilterFactory'"
**Do you have a Schema for 4.3.1 as well?**
10361d30f8c4ea51ad7c00002ecaff3b 1
10361d30f8c4ea51ad7c00002ecaff3b 2
10361d30f8c4ea51ad7c00002ecaff3b 3
Thanks for your help in advance,
Thomas.
-----Ursprüngliche Nachricht-----
Von: Timo Sirainen [mailto:tss at iki.fi]
Gesendet: Freitag, 2. August 2013 15:03
An: Thomas Baumann
Cc: dovecot at dovecot.org
Betreff: Re: [Dovecot] dovecot fts solr plugin
On 21.7.2013, at 23.11, Thomas Baumann <list.dovecot at tiri.li> wrote:
> (1) doveadm fts fails:
>
> Error message:
> doveadm(tom at tirism.support.tiri.li): Error: fts not enabled for user's
> namespace (null)
..
> protocol imap {
> plugin {
> fts = solr
> fts_solr = break-imap-search url=http://localhost:8983/solr/ } }
> protocol pop3 { plugin {
> fts = solr
> fts_solr = break-imap-search url=http://localhost:8983/solr/ } }
Don't put these inside protocol sections. They need to be enabled
globally.
> (2)
> solr schema has errors
>
> Jul 21, 2013 4:35:46 PM org.apache.solr.common.SolrException log
> SEVERE: org.apache.solr.common.SolrException: undefined field text
I did some Solr schema fixes to v2.2 recently..
More information about the dovecot
mailing list