: The presence of the {!tag} entry changes the filter query generated by
: the {!field...} tag. Note below that in one case the filter query is a
: phrase query, and in the other it's parsed with one term against the
: specified field and the other against the default field.

I think you are missunderstanding the way the localparams logic works.

when localparams are at the begining of the param, they apply to the 
entire string value

when local params are "embedded" in a query being parsed by the 
LuceneQParser, it applies them using the same scoping as other query 
operators.... 

:       fq: "{!tag=name_name}{!field f=name}United States"

that says "parse this entire query string using the default parser,, using 
"tag=name_name" on the result.  then he LuceneQParser gets the string 
"{!field f=name}United States" and it parses "United" using the "field" 
Qparser, and "Stats" using itself.

:       fq: "{!field f=name}United States"

that says "parse this entire query string using the "field" parser.

I think what you want is...

        fq: "{!field f=name tag=name_name}United States"

or more explicitly w/o shortcut...

        fq: "{!tag=name_name type=field f=name}United States"


-Hoss
http://www.lucidworks.com/

Reply via email to