Hi,

I have implemented a facet search, where users essentially select what should 
not be included. I do this by constructing an fq filter where I match for the 
deselected items that I then negate:
            $fq = "{!tag=dt}!($fq)";
            $criteria->addParam('fq', $fq);

Now in some cases the field the user is deselecting is actually an empty string.

For example go to the below address and open the "legal value" section. there 
is an option "none" there, which is actually an empty string.
http://search.un-informed.org/search?q=malaria&=&tm=any&s=Search

The field itself is just an untokenized string. Of course I could just turn an 
empty string into "none" at index time, but I am wondering how to do it in 
general :)

I tried using just "" or ["" TO ""] to match for empty strings, but this 
matches everything and due to the negation removes everything.

regards,
Lukas Kahwe Smith
m...@pooteeweet.org



Reply via email to