com.atlassian.confluence.search.lucene.filter
Class SpaceFilter
java.lang.Object
org.apache.lucene.search.Filter
com.atlassian.confluence.search.lucene.filter.SpaceFilter
- All Implemented Interfaces:
- java.io.Serializable
public class SpaceFilter
- extends org.apache.lucene.search.Filter
Filters content that is in, or not in given space(s).
Also returns content that don't belong to spaces (say personal information documents).
- See Also:
- Serialized Form
Constructor Summary |
SpaceFilter(java.util.Collection<java.lang.String> spaceKeys)
Include only content in any of the given spaces. |
SpaceFilter(java.util.Collection<java.lang.String> spaceKeys,
boolean negate)
Filter content according to given spaces. |
SpaceFilter(java.lang.String spaceKey)
Include only content that is in the given space |
SpaceFilter(java.lang.String spaceKey,
boolean negate)
|
Method Summary |
java.util.BitSet |
bits(org.apache.lucene.index.IndexReader reader)
|
Methods inherited from class org.apache.lucene.search.Filter |
getDocIdSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpaceFilter
public SpaceFilter(java.util.Collection<java.lang.String> spaceKeys,
boolean negate)
- Filter content according to given spaces.
- Parameters:
negate
- if true, will remove content in the given spaces.
if false, filter will remove content not in the given spaces.
SpaceFilter
public SpaceFilter(java.util.Collection<java.lang.String> spaceKeys)
- Include only content in any of the given spaces.
SpaceFilter
public SpaceFilter(java.lang.String spaceKey)
- Include only content that is in the given space
SpaceFilter
public SpaceFilter(java.lang.String spaceKey,
boolean negate)
- See Also:
SpaceFilter(Collection, boolean)
bits
public java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Overrides:
bits
in class org.apache.lucene.search.Filter
- Throws:
java.io.IOException
Copyright © 2003-2011 Atlassian. All Rights Reserved.