lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Custom post filter with support for 'OR' queries
Date Sun, 05 May 2019 16:34:45 GMT
Can you detail you actual querying need here?    You’re down into some trenches with PostFilter,
which is designed purely as an AND-like filtering mechanism, and contrary to ORing with it,
generally speaking.  

Let’s see the real data and need to see what’s the best way to tackle it.  

Also, with nesting qparsers, the curly brackets need to fully enclose the query, not leaving
the expression to outside the brackets ambiguously.    Use {!myparser v=$my_q} where &my_q=the


> On May 5, 2019, at 11:07, alexpusch <> wrote:
> Hi, 
> I'm trying to write my own custom post filter. I'm following the following
> guide -
> My implementation works for a simple query:
> {!myFilter}query
> But I need to perform OR queries in addition to my post filter:
> field:value OR {!myFilter}query
> I'm getting the follow error: 
> java.lang.UnsupportedOperationException: Query {!cache=false cost=100} does
> not implement createWeight
> As I only want this queryParser to only run on results on a post filter
> manner, I presume I do not need or can implement createWeight.
> Can a post filter be applied like this? Or should I look for a different
> approach?
> --
> Sent from:

View raw message