Thanks a lot..this is, more or less, what i was looking for.

However, is there a way to pre-configure the dismax query parser, with
parameters like qf, pf, boost etc., in solr-config.xml, rather than doing so
at query time. So my actual query would look like - <
http://localhost:8983/solr/select?q=<http://localhost:8983/solr/select?q=*:*&fq=%7B%21dismax%20qf=%22name%22%7Dipod&debugQuery=true>
query&fq={!dismaxL}CA&debugQuery=true<http://localhost:8983/solr/select?q=*:*&fq=%7B%21dismax%20qf=%22name%22%7Dipod&debugQuery=true>>,
where dismaxL refers to a query parser defined in solrconfig, with all the
necessary parameters. The q parameter would then use the default dismax
parser defined for the handler and fq would use dismaxL.

Regards,
Chris

On Thu, Jul 17, 2008 at 5:15 AM, Erik Hatcher <[EMAIL PROTECTED]>
wrote:

> On Jul 16, 2008, at 7:38 PM, Ryan McKinley wrote:
>
>> (assuming you are using 1.3-dev), you could use the dismax query parser
>> syntax for the fq param.  I think it is something like:
>> fq=<!dismax>your query
>>
>
> The latest committed syntax is:
>
>   {!dismax qf="...."}your query
>
> For example, with the sample data: <
> http://localhost:8983/solr/select?q=*:*&fq={!dismax%20qf=%22name%22}ipod&debugQuery=true<http://localhost:8983/solr/select?q=*:*&fq=%7B%21dismax%20qf=%22name%22%7Dipod&debugQuery=true>
> >
>
>  I can't find the syntax now (Yonik?)
>>
>> but I don't know how you could pull out the qf,pf,etc fields for the fq
>> portion vs the q portion.
>>
>
> You can add parameters like the qf above, within the {!dismax ... } area.
>
>        Erik
>
>


-- 
Bill Cosby  - "Advertising is the most fun you can have with your clothes
on."

Reply via email to