public class SpaceFilter
extends org.apache.lucene.search.Filter
Constructor and Description |
---|
SpaceFilter(Collection<String> spaceKeys)
Include only content in any of the given spaces.
|
SpaceFilter(Collection<String> spaceKeys,
boolean negate)
Filter content according to given spaces.
|
SpaceFilter(String spaceKey)
Include only content that is in the given space
|
SpaceFilter(String spaceKey,
boolean negate) |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.search.Filter |
createFilter(Collection<String> spaceKeys,
boolean negate) |
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
org.apache.lucene.util.Bits acceptDocs) |
public SpaceFilter(Collection<String> spaceKeys, boolean negate)
negate
- if true, will remove content in the given spaces.
if false, filter will remove content not in the given spaces.public SpaceFilter(Collection<String> spaceKeys)
public SpaceFilter(String spaceKey)
public SpaceFilter(String spaceKey, boolean negate)
SpaceFilter(Collection, boolean)
public static org.apache.lucene.search.Filter createFilter(Collection<String> spaceKeys, boolean negate)
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs) throws IOException
getDocIdSet
in class org.apache.lucene.search.Filter
IOException
Copyright © 2003–2021 Atlassian. All rights reserved.