On Sat, Mar 12, 2016 at 11:00 AM, Steven White <swhite4...@gmail.com> wrote:
> Hi folks
>
> I need to search for terms in a field that will be AND'ed with user's real
> search terms, such as:
>
>     user-real-search-terms AND FooField:(a OR b OR c OR d OR e OR ...)
>
> The list of terms in the field FooField can be as large as 1000 items, but
> will average around 100.


Stay away from BooleanQuery for this - it's trappy as it has a limit
(1024 by default) after which it will start throwing an exception.
Use {!terms f=FooField}a,b,c,d,e

When embedding in another query, it may be easiest/convenient to use a
separate parameter for your term list:
q=user-real-search-terms AND {!terms f=FooField v=$biglist)
&biglist=a,b,c,d,e


-Yonik

Reply via email to