lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: how to use "q=string" in solrconfig.xml `?
Date Mon, 14 Jun 2010 19:51:45 GMT

: 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


View raw message