: this ist my request to solr. and i cannot change this.:
: http://host/solr/select/?q=string
: 
: i cannot change this =( so i have a new termsComponent. i want to use
: q=string as default for terms.prefix=string.
: 
: can i do somethin like this: ?
: 
: <lst name="defaults">
:      <bool name="terms">true</bool>   
:      <str name="terms.fl">suggest</str>
:      <str name="terms.sort">index</str>
:      <str name="terms.prefix">${???}</str>
: </lst>

in general: no.  for things that are QParsers there is a "local var" 
feature that can be used -- but the term.prefix isn't parsed as a query, 
so it doesn't work that way.

your best bet is to add a server side rule (using something like 
mod_rewrite) that adds a term.prefix param using the value of the q param



-Hoss

Reply via email to