Thanks Shawn and all for the insight.  This was very helpful.

Steve

On Thu, May 14, 2015 at 10:19 AM, Shawn Heisey <apa...@elyograg.org> wrote:

> On 5/14/2015 6:33 AM, Steven White wrote:
> > I don't follow.  Can you give me an example on how and when to use "uf"?
>
> The uf parameter controls which fields are allowed in the query string.
> If you have "uf=f1 f2" then "q=f3:foo" won't work the way you would
> expect.  If f3 is in the qf parameter, then it will still be used by the
> parser.
>
> I tried the equivalent of q=f3:foo on my own index with uf set to fields
> that did not include that field.  When a field is disallowed, but used
> in the query, there is no error message.  Instead, the data is
> interpreted as raw input, so that example would work like "q=f3\:foo"
> instead.  The colon becomes part of the actual query text.
>
> Testing shows that uf does *NOT* affect filter queries, only the main
> query.  I think this is because filter queries default to the lucene
> parser, not the parser specified in defType.
>
> Thanks,
> Shawn
>
>

Reply via email to