defType didn't work:
http://localhost:8983/solr/db/select?q={!q.op=AND%20df=text%20solr%20sys&fl=id%2Cscore%2Ctitle&wt=xml&indent=true&defType=lucene Gave me error: org.apache.solr.search.SyntaxError: Expected identifier at pos 27 str='{!q.op=AND df=text solr sys' Is my use of defType correct? Steve On Thu, Apr 16, 2015 at 9:15 AM, Shawn Heisey <apa...@elyograg.org> wrote: > On 4/16/2015 7:09 AM, Steven White wrote: > > I cannot use escapeQueryChars method because my app interacts with Solr > via > > REST. > > > > The summary of your email is: client's must escape search string to > prevent > > Solr from failing. > > > > It would be a nice addition to Solr to provide a new query parameter that > > tells it to treat the query text as literal text. Doing so, means you > > remove the burden placed on clients to understand and escape reserved > Solr > > / Lucene tokens. > > That's a good idea, although we might already have that. > > I wonder what happens if you include defType=term with your request? > That works for edismax, it might work for other query parsers, at least > on the q parameter. > > Thanks, > Shawn > >