[opencms-dev] Search-related errors in log after publishing

Stephan Hartmann hartmann at metamesh.de
Fri Apr 11 13:42:24 CEST 2014


Hi Paul,

I'd suggest disabling the index creation (e.g. set it to rebuild manual or
change the index resources temporarily), publishing again, then rebuild the
index completely new.

HTH,
Stephan



2014-04-11 9:34 GMT+02:00 Paul-Inge Flakstad <flakstad at npolar.no>:

> 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
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140411/e1d02870/attachment.htm>


More information about the opencms-dev mailing list