public class ExtractKeywordsReport extends Report
ExtractKeywordsReport implements a report, which extracts
keywords from the statistical query and result data. The algorithm works
as follows:
n most popular queries for a given period.| Constructor and Description |
|---|
ExtractKeywordsReport(String queryDataPath,
String resultDataPath)
Creates a new report.
|
ExtractKeywordsReport(String queryDataPath,
String resultDataPath,
boolean traversalOk)
Creates a new report.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPeriod() |
Iterator |
getResult(Session session)
Runs the report and returns a result iterator over
Object[]
instances. |
int |
getSize() |
void |
setPeriod(int period) |
void |
setSize(int size) |
public ExtractKeywordsReport(String queryDataPath, String resultDataPath)
queryDataPath - the path where query data is stored.resultDataPath - the path where result data is stored.public ExtractKeywordsReport(String queryDataPath, String resultDataPath, boolean traversalOk)
queryDataPath - the path where query data is stored.resultDataPath - the path where result data is stored.traversalOk - set to true to put "traveral ok" option in the statistics querypublic Iterator getResult(Session session) throws RepositoryException
Object[]
instances.
Returns result rows with the following objects:
String of a pageLong count (how may times the page was selected as a result)List of Strings (the keywords)getResult in class Reportsession - the session giving access to the workspace.Object[] results.RepositoryException - if an error occurs while reading from the
repository.public int getSize()
public void setSize(int size)
size - the maximum number of queries to analyze.public int getPeriod()
public void setPeriod(int period)
period - the report period in number of days.Copyright © 2010 - 2020 Adobe. All Rights Reserved