Hi Mikhail,
Thank you for your suggestions.
Happy Thanksgiving Day!
--H.Wu

-----Original Message-----
From: Mikhail Khludnev <[email protected]> 
Sent: Thursday, November 24, 2022 2:33 AM
To: [email protected]
Subject: Re: [External] Re: Seeking tips about MoreLikeThis exceptions

For me it doesn't seem like MoreLikeThis, but it can fixed with escaping '\', I 
believe  search:subj\:cedation

On Wed, Nov 23, 2022 at 11:08 PM Wu, Hansen [USA] <[email protected]>
wrote:

> 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 
> https://urldefense.com/v3/__http://xxx.xxx.xxx:8983/solr/documents__;!!May37g!ICxqmf0VKbK0xEC4nt4o6-ZmdyXpWjOONYBV2QFRU5dwU2kdooGoF3vCgcudXyIMNcszDC99no0$
>  : 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 <[email protected]>
> Sent: Wednesday, November 23, 2022 7:40 AM
> To: [email protected]
> 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] 
> <[email protected]
> >
> 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: [email protected]<mailto:[email protected]>
> >
> >
> >
>
> --
> Sincerely yours
> Mikhail Khludnev
>


--
Sincerely yours
Mikhail Khludnev

Reply via email to