Hi Solr folks, Below is the info related to the bug I reported. Thanks for taking a look. Happy holidays! --H.Wu
---------- ERROR MESSAGE: ---------- Failed to search for document id: 123456/2022080916.txt Error from server at http://xxx.xxx.xxx:8983/solr/documents: Error from server at null: org.apache.solr.search.SyntaxError: Cannot parse '+(search:item search:date search:dte search:report search:subj:cedation search:0154 search:20220808) -id:123456/2022080916.txt': Encountered " ":" ": "" at line 1, column 62. Was expecting one of: <AND> ... <OR> ... <NOT> ... "+" ... "-" ... ...... at org.yyy.data.service.solr.proxy.SolrProxyService.query (ssssss.java:90) at ...... (******.java:51) at ...... (aaaaaa.java:163) ---------- SOLR FIELD DATA: ---------- "search":["......\nsubj:cedation report date 20220809\n ......\n <contains many lines in the format of name:value>\n ...... "], "cedation report date 20220809"] -----Original Message----- From: Mikhail Khludnev <m...@apache.org> Sent: Wednesday, November 23, 2022 7:40 AM To: users@solr.apache.org Subject: [External] Re: Seeking tips about MoreLikeThis exceptions Hello, I can only speculate that some doc ids has a colon in value. In this can you need to either escape it with backslash or use more explicit syntax described in Solr Local Params topic. But I might be wrong. Can you provide a problem query and/or stacktrace? On Tue, Nov 22, 2022 at 9:09 PM Wu, Hansen [USA] <wu_han...@bah.com.invalid> wrote: > Hello Solr folks, > I have a Web Service app, which uses CloudSolrClient to connect to a > solr server to query for similar documents against field search in a > collection through MoreLikeThis function by given docId. The content > in the search field is copied from original text of a document. > The Web Service app works fine with most documents. But whenever a > document contains colon, e.g. "subj:cedation", it throws out > exceptions, complaining about ":". Have you folks ever seen such > problems? Any tips to resolve the issue? > > In my dev env, I have a newer version of solr installed, which uses > HttpSolrClient to do the same query. The problem didn't happen. I was > wondering whether the issues only happen with old versions of solr or not. > > I wish to get ideas from solr community. > Thanks a lot in advance. > > Hansen Wu > Associate | Lead Data Scientist > Booz | Allen | Hamilton > > Email: wu_han...@bah.com<mailto:wu_han...@bah.com> > > > -- Sincerely yours Mikhail Khludnev