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
(Indexer indexer, IndexUpdater indexUpdater, Map<String, IndexCreator> indexCreators) -
Method Summary
Modifier and TypeMethodDescriptionvoid
perform()
void
searchAndDump
(Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q) void
searchGroupedAndDump
(Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, Grouping g) void
searchGroupedAndDumpFlat
(Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, Grouping g)
-
Constructor Details
-
BasicUsageExample
@Inject public BasicUsageExample(Indexer indexer, IndexUpdater indexUpdater, Map<String, IndexCreator> indexCreators)
-
-
Method Details
-
perform
public void perform() throws IOException, org.eclipse.aether.version.InvalidVersionSpecificationException- Throws:
IOException
org.eclipse.aether.version.InvalidVersionSpecificationException
-
searchAndDump
public void searchAndDump(Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q) throws IOException - Throws:
IOException
-
searchGroupedAndDumpFlat
public void searchGroupedAndDumpFlat(Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, Grouping g) throws IOException - Throws:
IOException
-
searchGroupedAndDump
public void searchGroupedAndDump(Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, Grouping g) throws IOException - Throws:
IOException
-