|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Filter
org.torweg.pulse.util.search.SitemapNodeUniqueContentFilter
public class SitemapNodeUniqueContentFilter
a Filter providing unique Contents during full text
search.
The actual filtering is heavily influenced by
org.apache.lucene.search.DuplicateFilter of the
LuceneTM contrib package.
SitemapNode, Serialized Form| Constructor Summary | |
|---|---|
SitemapNodeUniqueContentFilter()
default constructor. |
|
| Method Summary | |
|---|---|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader)
does the actual filtering. |
org.apache.lucene.search.Filter |
getFilter()
factory method to create a cachable version of SitemapNodeUniqueContentFilter. |
| Methods inherited from class org.apache.lucene.search.Filter |
|---|
bits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SitemapNodeUniqueContentFilter()
| Method Detail |
|---|
@Factory public final org.apache.lucene.search.Filter getFilter()
SitemapNodeUniqueContentFilter.
Factory
public final org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
It creates a DocIdBitSet which is
IndexReader.maxDoc() wide with bits set for all non duplicates.
getDocIdSet in class org.apache.lucene.search.Filterreader - the index reader
java.io.IOException - on errors accessing the indexFilter.getDocIdSet(org.apache.lucene.index.IndexReader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||