Hi Jack,

I don't follow.  Can you give me an example on how and when to use "uf"?

Thanks,

Steve

On Thu, May 14, 2015 at 8:15 AM, Jack Krupansky <jack.krupan...@gmail.com>
wrote:

> The uf parameter applies to the user query string, the q parameter - the q
> parameter may only references fields from uf in the q string. The qf
> parameter specifies fields to be queried behind the scenes and is not seen
> by the user. The term user refers to the person who is specifying the text
> that goes into the q parameter, not the client app that is forming the
> overall Solr query request.
>
>
> -- Jack Krupansky
>
> On Thu, May 14, 2015 at 7:49 AM, Steven White <swhite4...@gmail.com>
> 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
> >
>

Reply via email to