public interface PostQueryFilter
IndexedDataFactory, or because
the checks are context-dependent.
The implementation class can be configured for each IndexConfiguration by calling
GeneratedLuceneIndex.setPostQueryFilterClassName(String). No PostQueryFilter is set by default.
Implementations must provide a public no-arg constructor.
For each check (=call to filterItems), a new object of the implementation is instantiated. Implementations may rely on this, for example by using instance fields in a non-thread-safe manner.
Performance Warning: If a PostQueryFilter is installed, any search has to instantiate and access all found items (not only those in the requested search range). This may seriously affect search performance.
| Modifier and Type | Method and Description |
|---|---|
void |
filterItems(SessionContext ctx,
LuceneIndex index,
Item[] items)
Check whether the given items are visible.
|
void filterItems(SessionContext ctx, LuceneIndex index, Item[] items)
JaloSession.index - the index which the result items belong toitems - all items found be a searchCopyright © 2017 SAP SE. All Rights Reserved.