The server is trying to run a deleteByQuery command. The slashes in the query are interpreted as regular expressions by the Lucene Query Parser (see https://lucene.apache.org/core/8_7_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Regexp_Searches ). You end up with a "dangling" query term value (documents/app/story-#1--1738484939824) that has no field assigned, hence the Exception. You need to escape the value (or put them in quotes) as you don't want it to be interpreted as a regex.
Best Matthias On Fri, Feb 7, 2025 at 6:55 AM Manish Kumar <kuma.man...@hcltech.com.invalid> wrote: > Classification: Confidential > > Hi team, > > I am using solr-cloud 8.11.1 with zookeeper and querying below highlighted > query from another microservices and got below exceptions, due to that our > entire solr data disappeared from solr collection. > > ERROR (zkCallback-12-thread-3) [c: my-app s:shard1 r:core_node12 x: my-app > _shard1_replica_n11] o.a.s.u.PeerSync PeerSync: core= my-app > _shard1_replica_n11 url=http://solr-0.solrcluster:8983/solr Error > applying updates from [ > http://solr-8.solrcluster:8983/solr/platform-x_shard1_replica_n2/]< > http://solr-8.solrcluster:8983/solr/platform-x_shard1_replica_n2/%5d>, > update=[3, -1822933767918977024, name:story-#1--1738484939824 AND > documentpath:/content/documents/app/story-#1--1738484939824] => > org.apache.solr.common.SolrException: no field name specified in query and > no default specified via 'df' param > at > org.apache.solr.parser.SolrQueryParserBase.checkNullField(SolrQueryParserBase.java:1012) > org.apache.solr.common.SolrException: no field name specified in query and > no default specified via 'df' param > at > org.apache.solr.parser.SolrQueryParserBase.checkNullField(SolrQueryParserBase.java:1012) > ~[?:?] > at > org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:1066) > ~[?:?] > at > org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:832) > ~[?:?] > at org.apache.solr.parser.QueryParser.Term(QueryParser.java:421) > ~[?:?] > at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:278) > ~[?:?] > at org.apache.solr.parser.QueryParser.Query(QueryParser.java:222) > ~[?:?] > at > org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:131) > ~[?:?] > at > org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:270) > ~[?:?] > at > org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:49) ~[?:?] > at org.apache.solr.search.QParser.getQuery(QParser.java:174) ~[?:?] > at > org.apache.solr.update.DirectUpdateHandler2.getQuery(DirectUpdateHandler2.java:458) > ~[?:?] > at > org.apache.solr.update.DirectUpdateHandler2.deleteByQuery(DirectUpdateHandler2.java:494) > ~[?:?] > > I need your support to resolve this issue, will be highly appreciated. > Best Regards, > > Manish Kumar > > > ::DISCLAIMER:: > ________________________________ > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. E-mail transmission is not > guaranteed to be secure or error-free as information could be intercepted, > corrupted, lost, destroyed, arrive late or incomplete, or may contain > viruses in transmission. The e mail and its contents (with or without > referred errors) shall therefore not attach any liability on the originator > or HCL or its affiliates. Views or opinions, if any, presented in this > email are solely those of the author and may not necessarily reflect the > views or opinions of HCL or its affiliates. Any form of reproduction, > dissemination, copying, disclosure, modification, distribution and / or > publication of this message without the prior written consent of authorized > representative of HCL is strictly prohibited. If you have received this > email in error please delete it and notify the sender immediately. Before > opening any email and/or attachments, please check them for viruses and > other defects. > ________________________________ >