com.atlassian.confluence.search.lucene.filter
Class AttachmentTypeFilter
java.lang.Object
org.apache.lucene.search.Filter
com.atlassian.confluence.search.lucene.filter.AttachmentTypeFilter
public class AttachmentTypeFilter
- extends org.apache.lucene.search.Filter
Filters content that is of, or not of given attachment type(s).
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 |
AttachmentTypeFilter
public AttachmentTypeFilter(Set<Attachment.Type> attachmentTypes,
boolean negate)
- Filter attachment according to given types.
- Parameters:
negate
- if true, will remove attachments of the given types.
if false, filter will remove attachments not of the given types.
AttachmentTypeFilter
public AttachmentTypeFilter(Set<Attachment.Type> attachmentTypes)
- See Also:
AttachmentTypeFilter(Set, boolean)
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.