Thanks Mikhail and Alessandro. On Tue, Jun 19, 2018 at 2:37 AM, Mikhail Khludnev <m...@apache.org> wrote:
> you need to index num vals > <https://lucene.apache.org/solr/7_1_0//solr-core/org/ > apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.html> > in the separate field, and then *:* -(V:(A AND B) AND numVals:2) -(V:(A OR > B) AND numVals:1) > > > On Tue, Jun 19, 2018 at 9:20 AM Wei <weiwan...@gmail.com> wrote: > > > Hi, > > > > I have a multi-value field, and there is a limited set of values for the > > field: A, B, C, D. > > Is there a way to filter out documents that has only A or B values in the > > multi-value field? > > > > Basically I want to exclude document that has: > > > > A > > > > B > > > > A B > > > > and get documents that has: > > > > > > C > > > > D > > > > C D > > > > A C > > > > B C > > > > A D > > > > B D > > > > A B C > > > > A B D > > > > A C D > > > > B C D > > > > A B C D > > > > > > Thanks, > > > > Wei > > > > > -- > Sincerely yours > Mikhail Khludnev >