You really don't do that in solrconfig.xml.

This seems like an XY problem. You're trying
to solve some particular use-case and accessing the
terms in solrconfig.xml. You've already found the ability
to configure edismax as your defType and apply boosts
to particular fields...

Best,
Erick

On Thu, Apr 14, 2016 at 11:53 AM, John Bickerstaff
<j...@johnbickerstaff.com> wrote:
> Maybe I'm overdoing it...
>
> It seems to me that qf= text contentType^1000 would do this for me more
> easily - as it appears to assume the incoming search terms...
>
> However, I'd still like to know the simplest way to reference the search
> terms in the XML - or possibly get a URL that points the way.
>
> Thanks.
>
> On Thu, Apr 14, 2016 at 12:34 PM, John Bickerstaff <j...@johnbickerstaff.com
>> wrote:
>
>> I have the following (essentially hard-coded) line in the Solr Admin Query
>> UI
>>
>> =====
>> bq: contentType:(searchTerm1 searchTerm2 searchTerm2)^1000
>> =====
>>
>> The "searchTerm" entries represent whatever the user typed into the search
>> box.  This can be one or more words.  Usually less than 5.
>>
>> I want to put the search parameters I've built in the Admin UI into a
>> requestHandler.
>>
>> I think that means I need a like like this in the searchHandler in
>> solrconfig.xml
>>
>> =====
>> <str name="bq">contentType:(magic_reference_to_incoming_search)^1000</str>
>> -->
>> =====
>>
>> Am I oversimplifying?
>>
>> How can I accurately reference the incoming search terms as a "variable"
>> or parameter in the requestHandler XML?
>>
>> Is it as simple as $q?  Something more complex?
>>
>> Is there any choice besides the somewhat arcane local params?  If not,
>> what is the simplest, most straightforward way to reference incoming query
>> terms using local params?
>>
>> Thanks...
>>

Reply via email to