|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FacetIndexingParams
Parameters on how facets are to be written to the index. For example, which fields and terms are used to refer to the indexed posting list.
If non-default parameters were used during indexing, the same parameters must also be passed during faceted search. This requirement is analogous to the requirement during search to know which fields were indexed, and which Analyzer was used on the text.
Method Summary | |
---|---|
int |
drillDownTermText(CategoryPath path,
char[] buffer)
Return the drilldown Term-Text which does not need to do any allocations. |
Iterable<CategoryListParams> |
getAllCategoryListParams()
Return info about all category lists in the index. |
CategoryListParams |
getCategoryListParams(CategoryPath category)
The name of the category-list to put this category in, or null if this category should not be aggregatable. |
char |
getFacetDelimChar()
Get the delimiter character used internally for drill-down terms |
OrdinalPolicy |
getOrdinalPolicy()
Get the policy for indexing category ordinals, used for deciding how "high" to climb in taxonomy from a category when ingesting its ordinals |
int |
getPartitionSize()
Get the partition size. |
PathPolicy |
getPathPolicy()
Get the policy for indexing category paths, used for deciding how "high" to climb in taxonomy from a category when ingesting its category paths. |
Method Detail |
---|
CategoryListParams getCategoryListParams(CategoryPath category)
By default, all categories are written to the same category list, but applications which know in advance that in some situations only parts of the category hierarchy needs to be counted can divide the categories into two or more different category lists.
If null is returned for a category, it means that this category should not appear in any category list, and thus counts for it cannot be aggregated. This category can still be used for drill-down, even though the count for it is not known.
Iterable<CategoryListParams> getAllCategoryListParams()
getCategoryListParams(CategoryPath)
int drillDownTermText(CategoryPath path, char[] buffer)
Note: Make sure buffer
is large enough.
CategoryPath.charsNeededForFullPath()
int getPartitionSize()
PathPolicy getPathPolicy()
OrdinalPolicy getOrdinalPolicy()
char getFacetDelimChar()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |