lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Pablo Mora <>
Subject Highlight, Dismax and local params
Date Mon, 18 Apr 2011 11:50:07 GMT

I think I have found something extrange with local params and edismax. If I do querys like

      "q":"{!edismax qf=$tipoDeno^5 pf=$tipoDeno^30 ps=5 qs=1}construcciones garcía",

The highlighting section of the response looks like:

      "domicilio":["P45 FOO BAR"],
      "deno":["V00T06 <em>FOO BAR</em>"]},
      "domicilio":["P45 BLAH BLAH"],
      "deno":["V00T00 BLAH BLAH"]},

But if I repeat the query with:

 "q":"{!edismax qf='$tipoDeno^5 ANOTHER_FIELD' pf=$tipoDeno^30 ps=5 qs=1} construcciones garcía"
 tipoDeno = deno

The debug show:

"parsedquery":"+((DisjunctionMaxQuery((deno:construcciones)) DisjunctionMaxQuery((deno:garcia)))~2)",
    "parsedquery_toString":"+(((deno:construcciones) (deno:garcia))~2)",

And there is no reference to "anotherField" field and the highlight of the field deno dissapear
in the response.

      "domicilio":["P45 FOO BAR"],
      "domicilio":["P45 BLAH BLAH"],

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message