Hi Emir, Like I replied to Jack, I don't get it. I need to see some concrete examples.
Thanks Steve On Thu, May 14, 2015 at 8:30 AM, Emir Arnautovic < emir.arnauto...@sematext.com> wrote: > Hi Steve, > No - you should use qf to limit search to fields you want. If you do not > plan to allow users to explicitly state fields they want to search, you > don't have to use uf parameter. So, drop uf, and set qf to F3. > > Thanks, > Emir > > > On 14.05.2015 14:09, Steven White wrote: > >> Hi Emir, >> >> Are you saying I should remove "qf" if I want to use "uf"? I just tried >> that and got exception: >> >> java.lang.RuntimeException at >> >> org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.<init>(ExtendedDismaxQParser.java:1497) >> at >> >> org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:270) >> at >> >> org.apache.solr.search.ExtendedDismaxQParser.<init>(ExtendedDismaxQParser.java:132) >> at >> >> org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:37) >> at org.apache.solr.search.QParser.getParser(QParser.java:315) at >> >> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:156) >> at >> >> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:196) >> at >> >> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143) >> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1984) at >> >> Thanks >> >> Steve >> >> On Thu, May 14, 2015 at 8:00 AM, Emir Arnautovic < >> emir.arnauto...@sematext.com> wrote: >> >> Hi Steve, >>> You use qf to limit search on some fields. >>> >>> Thanks, >>> Emir >>> >>> >>> On 14.05.2015 13:49, Steven White wrote: >>> >>> Hi Everyone, >>>> >>>> I'm trying to utilize "uf" but it doesn't work. My reading of it per: >>>> >>>> >>>> https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser >>>> is I can use it to limit into which fields a search is performed. E.g.: >>>> If >>>> my index has F1, F2, F3, F4, and I set "uf" to F3, than I should get >>>> hits >>>> on F3 only. >>>> >>>> Here is my request handler: >>>> >>>> <requestHandler name="/select_group_a" class="solr.SearchHandler"> >>>> <lst name="defaults"> >>>> <str name="echoParams">explicit</str> >>>> <int name="rows">20</int> >>>> <str name="defType">edismax</str> >>>> <str name="qf">F1 F2 F3 F4</str> >>>> <str name="uf">F3</str> >>>> <str name="fl">type,id,score</str> >>>> <str name="wt">xml</str> >>>> <str name="indent">true</str> >>>> </lst> >>>> </requestHandler> >>>> >>>> I also tried passing "uf" on the URL and it too didn't work. I'm >>>> getting >>>> hits on terms that are in other fields. >>>> >>>> Is my usage of "uf" wrong? >>>> >>>> Thanks >>>> >>>> Steve >>>> >>>> >>>> -- >>> Monitoring * Alerting * Anomaly Detection * Centralized Log Management >>> Solr & Elasticsearch Support * http://sematext.com/ >>> >>> >>> > -- > Monitoring * Alerting * Anomaly Detection * Centralized Log Management > Solr & Elasticsearch Support * http://sematext.com/ > >