public class

SpaceFilter

extends Filter
java.lang.Object
   ↳ org.apache.lucene.search.Filter
     ↳ com.atlassian.confluence.search.lucene.filter.SpaceFilter

Class Overview

Filters content that is in, or not in given space(s). Also returns content that don't belong to spaces (say personal information documents).

Summary

Public Constructors
SpaceFilter(Collection<String> spaceKeys, boolean negate)
Filter content according to given spaces.
SpaceFilter(Collection<String> spaceKeys)
Include only content in any of the given spaces.
SpaceFilter(String spaceKey)
Include only content that is in the given space
SpaceFilter(String spaceKey, boolean negate)
Public Methods
BitSet bits(IndexReader reader)
[Expand]
Inherited Methods
From class org.apache.lucene.search.Filter
From class java.lang.Object

Public Constructors

public SpaceFilter (Collection<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.

public SpaceFilter (Collection<String> spaceKeys)

Include only content in any of the given spaces.

public SpaceFilter (String spaceKey)

Include only content that is in the given space

public SpaceFilter (String spaceKey, boolean negate)

Public Methods

public BitSet bits (IndexReader reader)

Throws
IOException