Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gavin Williams 48 posts 221 karma points
    Feb 08, 2024 @ 09:09
    Gavin Williams
    0

    Umbraco log errors regarding Content Delivery Api after upgrade to v13.1.0

    Since upgrading from v12.3.6 to v13.1.0 we are getting a new error occasionally in the logs:

    Lucene.Net.QueryParsers.Classic.ParseException: Cannot parse '(id: OR __Path:\-1*,,*)': Encountered " <OR> "OR "" at line 1, column 5.
    Was expecting one of:
        <BAREOPER> ...
        "(" ...
        "*" ...
        <QUOTED> ...
        <TERM> ...
        <PREFIXTERM> ...
        <WILDTERM> ...
        <REGEXPTERM> ...
        "[" ...
        "{" ...
        <NUMBER> ...
    
     ---> Lucene.Net.QueryParsers.Classic.ParseException: Encountered " <OR> "OR "" at line 1, column 5.
    Was expecting one of:
        <BAREOPER> ...
        "(" ...
        "*" ...
        <QUOTED> ...
        <TERM> ...
        <PREFIXTERM> ...
        <WILDTERM> ...
        <REGEXPTERM> ...
        "[" ...
        "{" ...
        <NUMBER> ...
    
       at Lucene.Net.QueryParsers.Classic.QueryParser.Jj_consume_token(Int32 kind)
       at Lucene.Net.QueryParsers.Classic.QueryParser.Clause(String field)
       at Lucene.Net.QueryParsers.Classic.QueryParser.Query(String field)
       at Lucene.Net.QueryParsers.Classic.QueryParser.Clause(String field)
       at Lucene.Net.QueryParsers.Classic.QueryParser.Query(String field)
       at Lucene.Net.QueryParsers.Classic.QueryParser.TopLevelQuery(String field)
       at Lucene.Net.QueryParsers.Classic.QueryParserBase.Parse(String query)
       --- End of inner exception stack trace ---
       at Lucene.Net.QueryParsers.Classic.QueryParserBase.Parse(String query)
       at Examine.Lucene.Search.LuceneSearchQueryBase.NativeQuery(String query)
       at Umbraco.Cms.Infrastructure.Examine.DeliveryApiContentIndex.PerformDeleteFromIndex(IEnumerable`1 itemIds, Action`1 onComplete)
       at Examine.BaseIndexProvider.DeleteFromIndex(IEnumerable`1 itemIds)
       at Umbraco.Cms.Infrastructure.Examine.Deferred.DeliveryApiContentIndexDeferredBase.RemoveFromIndex(IReadOnlyCollection`1 ids, IIndex index)
       at Umbraco.Cms.Infrastructure.Examine.Deferred.DeliveryApiContentIndexDeferredBase.RemoveFromIndex(IReadOnlyCollection`1 ids, IIndex index)
       at Umbraco.Cms.Infrastructure.Examine.Deferred.DeliveryApiContentIndexHandleContentChanges.<Execute>b__7_0(CancellationToken _)
       at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.BackgroundProcessing(CancellationToken stoppingToken)
    

    We don't do any Lucene queries from our code, and as per the stack trace, the source of the error is the content delivery api.

    I did rebuild all the lucene indexes after the upgrade. Other than these errors the site is running fine.

  • Marcin-Niznik 5 posts 71 karma points
    Apr 03, 2024 @ 08:38
    Marcin-Niznik
    0

    Same here. Issue appears on content deletion. CMS v 13.2.2

  • Biagio Paruolo 1601 posts 1852 karma points c-trib
    Apr 23, 2024 @ 21:00
    Biagio Paruolo
    0

    Me too.

    The problem is also into Umbraco version 13.1.1

    Lucene.Net.QueryParsers.Classic.ParseException: Cannot parse '(id: OR __Path:-1*,,)': Encountered " "OR "" at line 1, column 5. Was expecting one of: ... "(" ... "" ... ... ... ... ... ... "[" ... "{" ... ...

    ---> Lucene.Net.QueryParsers.Classic.ParseException: Encountered " "OR "" at line 1, column 5. Was expecting one of: ... "(" ... "*" ... ... ... ... ... ... "[" ... "{" ... ...

    at Lucene.Net.QueryParsers.Classic.QueryParser.Jjconsumetoken(Int32 kind) at Lucene.Net.QueryParsers.Classic.QueryParser.Clause(String field) at Lucene.Net.QueryParsers.Classic.QueryParser.Query(String field) at Lucene.Net.QueryParsers.Classic.QueryParser.Clause(String field) at Lucene.Net.QueryParsers.Classic.QueryParser.Query(String field) at Lucene.Net.QueryParsers.Classic.QueryParserBase.Parse(String query) --- End of inner exception stack trace --- at Lucene.Net.QueryParsers.Classic.QueryParserBase.Parse(String query) at Examine.Lucene.Search.LuceneSearchQueryBase.NativeQuery(String query) at Umbraco.Cms.Infrastructure.Examine.DeliveryApiContentIndex.PerformDeleteFromIndex(IEnumerable1 itemIds, Action1 onComplete) at Umbraco.Cms.Infrastructure.Examine.Deferred.DeliveryApiContentIndexHandleContentChanges.Reindex(IContent content, IIndex index) at Umbraco.Cms.Infrastructure.Examine.Deferred.DeliveryApiContentIndexHandleContentChanges.b_70(CancellationToken _) at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.BackgroundProcessing(CancellationToken stoppingToken)

Please Sign in or register to post replies

Write your reply to:

Draft