public class ResultsByQueryReport extends Report
ResultsByQueryReport
implements a report, which returns the
result pages that were selected the most for a given query. This report
operates on the daily statistics nodes.Constructor and Description |
---|
ResultsByQueryReport(String dataPath,
String query)
Creates a new report.
|
ResultsByQueryReport(String dataPath,
String query,
boolean traversalOk)
Creates a new report.
|
Modifier and Type | Method and Description |
---|---|
Iterator |
getResult(Session session)
Runs the report and returns a result iterator over
Object[]
instances. |
int |
getSize() |
void |
setSize(int size) |
public ResultsByQueryReport(String dataPath, String query)
dataPath
- the path prefix to the data.query
- the user query.public Iterator getResult(Session session) throws RepositoryException
Object[]
instances.
Returns result rows with the following objects:
String
path of a result pathLong
count (how many times this result was picked)getResult
in class Report
session
- 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 results to return.Copyright © 2010 - 2020 Adobe. All Rights Reserved