« Return to Thread: DisMax query parser syntax for the fq parameter

Re: DisMax query parser syntax for the fq parameter

by Erik Hatcher :: Rate this Message:

Reply to Author | View in Thread


On Jul 9, 2009, at 1:02 PM, gistolero@... wrote:

> I am using the dismax query parser syntax for the fq param:
>
> .../select?qt=dismax&rows=30&q.alt=*:*&qf=content&fq={!dismax  
> qf=contentKeyword^1.0 mm=0%}Foo&fq=+date:[2009-03-11T00:00:00Z TO  
> 2009-07-09T16:41:50Z]&fl=id,date,content
>
>
> Now, I want to add one more field to the qf parameter:
>
> ...&fq={!dismax qf=titleKeyword^1.8 contentKeyword^1.0 mm=0%}Foo&...

The issue is that qf needs to have spaces in it, but the local params  
can't deal with that.  So what you can do is fq={!dismax qf=$fqqf  
mm=0%}Foo&fqqf=titleKeyword^1.8+contentKeyword^1.0 - hope that works  
(just typing that without trying it).

        Erik

 « Return to Thread: DisMax query parser syntax for the fq parameter