On of Solr’s little quirks… Solr does _not_ implement Boolean logic. See: https://lucidworks.com/post/why-not-and-or-and-not/
What you want is something like: ../select/q=*:* -clt_ref_no:“owl-2924-8” Best, Erick > On Nov 15, 2019, at 12:15 PM, rhys J <rhyssha...@gmail.com> wrote: > > I'm trying to exclude results based on the documentation about the boolean > NOT symbol, but I keep getting errors. > > I've tried: > > http://localhost:8983/solr/debt/select?q=clt_ref_no:-”owl-2924-8” > > and > > http://localhost:8983/solr/debt/select?q=clt_ref_no:NOT”owl-2924-8” > > I have tried with and without quotes too. > > Am I not able to use the NOT with a textField? > > Here are the errors I get from the browser: > > "msg":"org.apache.solr.search.SyntaxError: Cannot parse > 'clt_ref_no:-”=owl-2924-8”': Encountered \" \"-\" \"- \"\" at line 1, > column 11.\nWas expecting one of:\n <BAREOPER> ...\n \"(\" ...\n > \"*\" ...\n <QUOTED> ...\n <TERM> ...\n <PREFIXTERM> ...\n > <WILDTERM> ...\n <REGEXPTERM> ...\n \"[\" ...\n \"{\" > ...\n <LPARAMS> ...\n \"filter(\" ...\n <NUMBER> ...\n ", > > Thanks, > > Rhys