I think you need a space, not a comma, in the qf parameter. It's
designed to allow for boosts, like qf=features^2.0 make^1.0
Erik
On Aug 24, 2009, at 1:13 PM, darniz wrote:
Hello
i created a custom request handler and i want it to do a search on
features
and make field by default. i added the following decleration in my
solrconfig.xml file
<requestHandler name="/def-features-make" class="solr.SearchHandler">
<!-- default values for query parameters -->
<lst name="defaults">
<int name="rows">12</int>
<str name="echoParams">explicit</str>
<str name="fl">*</str>
<str name="sort">model desc</str>
<str name="qf">features,make</str>
</lst>
</requestHandler>
as you can see in the qf i defined features and make to be the default
search fields, the issue is that if i give
http://localhost:8983/solr/def-features-make/?q=antenna&version=2.2&start=0&rows=10&indent=on
it gets me all the document which have antenna in the featuers list.
but when i give
http://localhost:8983/solr/def-features-make/?q=Ford&version=2.2&start=0&rows=10&indent=on
i am expecting to see all documents whose make is Ford. but it
returns no
documents
Please let me know if i am doing something wrong here.
Thanks
--
View this message in context:
http://www.nabble.com/defining-qf-in-your-own-request-handler-tp25119913p25119913.html
Sent from the Solr - User mailing list archive at Nabble.com.