Class SubstringBytesRefFilter

  • All Implemented Interfaces:
    Predicate<org.apache.lucene.util.BytesRef>

    public class SubstringBytesRefFilter
    extends Object
    implements Predicate<org.apache.lucene.util.BytesRef>
    An implementation of Predicate which returns true if the BytesRef contains a given substring.
    • Constructor Detail

      • SubstringBytesRefFilter

        public SubstringBytesRefFilter​(String contains,
                                       boolean ignoreCase)
    • Method Detail

      • substring

        public String substring()
      • 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>