Solr search query with AND, OR, NOT (+,-,!) functionality

In solr, What is the syntax for search various word with various condition (and, or, not)
Word contain like as below

  • With All The Words: Account Manager
  • With The Exact Phrase: Sales executive
  • With At Least One Of The Words: chartered
  • Without The Words: Production Manager

and query is edismax

q=Account Manager “Sales executive” (chartered) NOT Production NOT Manager

Such query possible with edismax query parser?
As in dismax parser only + and – operator work, while standard query parser AND, OR, ||, + and – all operator work.


Source: syntax

Leave a Reply