On 12/18/25 13:04, Chris Hostetter wrote:

: (Note that output formatter strikes again: this is wrong:
:
: >        "q":"{!parent which=\"*:*  is_child:false\"}(
: > odams.identifier:W0178F2)",

that is *probably* not a problem with solr -- it is typically an
indication that the way you are crafting/sending your HTTP request/url
includes an "un-escaped" "+" character in the URL which Jetty/Solr are
(required) to interpret as an escaped " " (space) character.

hossman@slate:~$ curl -sS 'http://localhost:8983/solr/gettingstarted/select?q=a+b' | grep 
-F '"q"'
       "q":"a b"
hossman@slate:~$ curl -sS 'http://localhost:8983/solr/gettingstarted/select?' 
--form-string 'q=a+b' | grep -F '"q"'
       "q":"a+b"
hossman@slate:~$ curl -sS 'http://localhost:8983/solr/gettingstarted/select?q=a%2Bb' | 
grep -F '"q"'
       "q":"a+b"


Good point, if you do it in a browser it'll automagically escape everything (or at least chrome seems to) but REST client-type apps may or may not.

Take home lesson: don't use '+', use 'AND'.

Thanks,
Dima

Reply via email to