lucene-solr-user mailing list archives

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

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


"params":{
      "hl.requireFieldMatch":"true",
      "hl.fragsize":"200",
      "json.wrf":"callback0",
      "indent":"on",
      "hl.fl":"domicilio,deno",
      "wt":"json",
      "hl":"true",
      "rows":"5",
      "fl":"oidEmpresa,codNif,codTpoEmp,codVidaEmp,denoDef",
      "debugQuery":"on",
      "q":"{!edismax qf=$tipoDeno^5 pf=$tipoDeno^30 ps=5 qs=1}construcciones garcía",
      "tipoDeno":"deno",
      "f.domicilio.hl.alternateField":"domicilioDef",
      "fq":"-codTpoNif:F"}},

The highlighting section of the response looks like:


"highlighting":{
    "75663":{
      "domicilio":["P45 FOO BAR"],
      "deno":["V00T06 <em>FOO BAR</em>"]},
    "76021":{
      "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.


"highlighting":{
    "75663":{
      "domicilio":["P45 FOO BAR"],
    "76021":{
      "domicilio":["P45 BLAH BLAH"],




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