[opencms-dev] Search-related errors in log after publishing
Paul-Inge Flakstad
flakstad at npolar.no
Fri Apr 11 09:34:38 CEST 2014
Hi,
I keep getting a lot of errors like in the example below shortly after publishing (below, the resource /sites/np/no/nyheter/2012/2012-05-02-albedo.html had just been published), I assume as OpenCms is updating the search index.
What I can't figure out, is *why* the error is triggered. However it looks like it has something to do with the temporary file (and/or some system-generated fuzzy query):
Cannot parse 'path:/sites/np/no/nyheter/2012/~2012-05-02-albedo.html*'
(Note the leading ~ character in the file name => temp file.)
and
Minimum similarity for a FuzzyQuery has to be between 0.0f and 1.0f !
Does anyone know what's going on here?
My OpenCms version is 8.5.2.
Cheers,
Paul
Example error message:
11 Apr 2014 09:13:42,973 ERROR [ache.solr.common.SolrException: 161] org.apache.solr.common.SolrException: Error parsing Lucene query
at org.apache.solr.search.QueryParsing.parseQuery(QueryParsing.java:101)
at org.apache.solr.search.QueryParsing.parseQuery(QueryParsing.java:79)
at org.apache.solr.update.DirectUpdateHandler2.deleteByQuery(DirectUpdateHandler2.java:317)
at org.apache.solr.update.processor.RunUpdateProcessor.processDelete(RunUpdateProcessorFactory.java:71)
at org.apache.solr.handler.XMLLoader.processDelete(XMLLoader.java:270)
at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:201)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:142)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:293)
at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:278)
at org.opencms.search.solr.CmsSolrIndexWriter.deleteDocuments(CmsSolrIndexWriter.java:156)
at org.opencms.search.CmsVfsIndexer.deleteResource(CmsVfsIndexer.java:301)
at org.opencms.search.CmsVfsIndexer.deleteResources(CmsVfsIndexer.java:91)
at org.opencms.search.CmsSearchManager.updateIndexIncremental(CmsSearchManager.java:2701)
at org.opencms.search.CmsSearchManager.updateIndexOffline(CmsSearchManager.java:2782)
at org.opencms.search.CmsSearchManager$CmsSearchOfflineIndexWorkThread.run(CmsSearchManager.java:578)
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse 'path:/sites/np/no/nyheter/2012/~2012-05-02-albedo.html*': Minimum similarity for a FuzzyQuery has to be between 0.0f and 1.0f !
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
at org.apache.solr.search.QueryParsing.parseQuery(QueryParsing.java:91)
... 19 more
Caused by: org.apache.lucene.queryParser.ParseException: Minimum similarity for a FuzzyQuery has to be between 0.0f and 1.0f !
at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1432)
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:1234)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
... 20 more
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140411/f0e4ca12/attachment.htm>
More information about the opencms-dev
mailing list