Hi,

I don't think dismax recognizes AND OR.
Special characters for dismax are + - and quotes.

In your example, ampersand may causing you trouble. Due to URL encode stuff... 
Ahmet

On Sunday, January 29, 2017 12:17 AM, Jarosław Grązka 
<jaroslaw.gra...@gmail.com> wrote:



Hi,

Reading Solr documentation about dismax query
https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser i
understood dismax query parser can interpret following special chars:
AND,OR,+,-,quotes (for phrases) and should ignore all others like
||,NOT,&&,~,^ etc and treat them as simple strings.

But when i try query as follows:
{
  "limit" : 10,
  params:{
      defType:"dismax",
      q:"Difference && Java",
      q.op:"OR",
      qf:"body",
      indent: "on"
  }
}
This && opeartors works as AND.

I also got exceptions for this query:
{
  "limit" : 10,
  params:{
      defType:"dismax",
      q:"Difference && Java NOT",
      q.op:"OR",
      qf:"body",
      indent: "on"
  }
}

Did i misunderstand something? Shouldnt it treat 'NOT' as just String?

Reply via email to