Class RegexBytesRefFilter

java.lang.Object
org.apache.solr.request.RegexBytesRefFilter
All Implemented Interfaces:
Predicate<org.apache.lucene.util.BytesRef>

public class RegexBytesRefFilter extends Object implements Predicate<org.apache.lucene.util.BytesRef>
An implementation of Predicate which returns true if the BytesRef matches the supplied regular expression.
  • Constructor Details

    • RegexBytesRefFilter

      public RegexBytesRefFilter(String regex)
  • Method Details

    • includeString

      protected boolean includeString(String term)
    • test

      public boolean test(org.apache.lucene.util.BytesRef term)
      Specified by:
      test in interface Predicate<org.apache.lucene.util.BytesRef>