public class IncludeExclude extends Object
include
is evaluated first and then the exclude
.Modifier and Type | Class and Description |
---|---|
static class |
IncludeExclude.LongFilter |
static class |
IncludeExclude.OrdinalsFilter |
static class |
IncludeExclude.Parser |
static class |
IncludeExclude.StringFilter |
Constructor and Description |
---|
IncludeExclude(org.apache.lucene.util.automaton.RegExp include,
org.apache.lucene.util.automaton.RegExp exclude) |
IncludeExclude(SortedSet<org.apache.lucene.util.BytesRef> includeValues,
SortedSet<org.apache.lucene.util.BytesRef> excludeValues) |
Modifier and Type | Method and Description |
---|---|
IncludeExclude.LongFilter |
convertToDoubleFilter() |
IncludeExclude.LongFilter |
convertToLongFilter() |
IncludeExclude.OrdinalsFilter |
convertToOrdinalsFilter() |
IncludeExclude.StringFilter |
convertToStringFilter() |
boolean |
isRegexBased() |
public IncludeExclude(org.apache.lucene.util.automaton.RegExp include, org.apache.lucene.util.automaton.RegExp exclude)
include
- The regular expression pattern for the terms to be includedexclude
- The regular expression pattern for the terms to be excludedpublic boolean isRegexBased()
public IncludeExclude.StringFilter convertToStringFilter()
public IncludeExclude.OrdinalsFilter convertToOrdinalsFilter()
public IncludeExclude.LongFilter convertToLongFilter()
public IncludeExclude.LongFilter convertToDoubleFilter()
Copyright © 2009–2017. All rights reserved.