Re: Custom post filter with support for 'OR' queries

2019-05-06 Thread Mikhail Khludnev
This case isn't worth to bother with custom code. Deriving terms in analysis usually works fine. This might be addressed with https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html#reversed-wildcard-filter or https://lucene.apache.org/solr/guide/6_6/tokenizers.html#Tokenizers-PathHierar

Re: Custom post filter with support for 'OR' queries

2019-05-05 Thread alexpusch
Thanks for the quick reply. The real data is an representation of an HTML element "body div.class1 div.b.a", My goal is to match documents by css selector i.e ".class1 .a.b" The field I'm querying on is a tokenzied texts field. The post filter takes the doc value of the field (which is not tokeni

Re: Custom post filter with support for 'OR' queries

2019-05-05 Thread Erik Hatcher
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, wi

Custom post filter with support for 'OR' queries

2019-05-05 Thread alexpusch
Hi, I'm trying to write my own custom post filter. I'm following the following guide - http://qaware.blogspot.com/2014/11/how-to-write-postfilter-for-solr-49.html My implementation works for a simple query: {!myFilter}query But I need to perform OR queries in addition to my post filter: field:v