Package org.apache.maven.index.examples
Class BasicUsageExample
java.lang.Object
org.apache.maven.index.examples.BasicUsageExample
Collection of some use cases.
-
Constructor Summary
ConstructorDescriptionBasicUsageExample
(org.apache.maven.index.Indexer indexer, org.apache.maven.index.updater.IndexUpdater indexUpdater, Map<String, org.apache.maven.index.context.IndexCreator> indexCreators) -
Method Summary
Modifier and TypeMethodDescriptionvoid
perform()
void
searchAndDump
(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q) void
searchGroupedAndDump
(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g) void
searchGroupedAndDumpFlat
(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g)
-
Constructor Details
-
BasicUsageExample
-
-
Method Details
-
perform
public void perform() throws IOException, org.eclipse.aether.version.InvalidVersionSpecificationException- Throws:
IOException
org.eclipse.aether.version.InvalidVersionSpecificationException
-
searchAndDump
public void searchAndDump(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q) throws IOException - Throws:
IOException
-
searchGroupedAndDumpFlat
public void searchGroupedAndDumpFlat(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g) throws IOException - Throws:
IOException
-
searchGroupedAndDump
public void searchGroupedAndDump(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g) throws IOException - Throws:
IOException
-