com.atlassian.confluence.search.lucene.filter
Class SpaceFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by com.atlassian.confluence.search.lucene.filter.SpaceFilter

public class SpaceFilter
extends org.apache.lucene.search.Filter

Filters content that is in, or not in given space(s).


Constructor Summary
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)
           
 
Method Summary
 org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceFilter

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.

SpaceFilter

public SpaceFilter(Collection<String> spaceKeys)
Include only content in any of the given spaces.


SpaceFilter

public SpaceFilter(String spaceKey)
Include only content that is in the given space


SpaceFilter

public SpaceFilter(String spaceKey,
                   boolean negate)
See Also:
SpaceFilter(Collection, boolean)
Method Detail

getDocIdSet

public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
                                                     org.apache.lucene.util.Bits acceptDocs)
                                              throws IOException
Specified by:
getDocIdSet in class org.apache.lucene.search.Filter
Throws:
IOException


Copyright © 2003–2015 Atlassian. All rights reserved.