link if you are using Aspire for Elasticsearch
The following tutorial gets you started with Aspire in 20 minutes or less. This tutorial is for Aspire 3 (Alder). This tutorial will take you through installing Aspire simply to It will give you you install Admin user interfaceThere is another quick start tutorial to learn how to build Aspire distributions from scratch using Maven prototypes and Maven component repositories. Quick Start with Distribution Archetype
Additionally, there are also connector wish ; those are each
You must be registered to access the binaries download page. Go to How to Access Aspire , to check the Aspire Registration process.
Anchor | ||||
---|---|---|---|---|
|
Code Block | ||
---|---|---|
| ||
> mongo
MongoDB shell version: 3.2.4
connecting to: test
> |
Error
If a "NETWORK Failed to connect to 127.0.0.1:27017" error occurs, then it is not running.
Start it by executing:
For Windows:
Open a terminal and CD to your MongoDB installation folder and execute:
Code Block | ||
---|---|---|
| ||
C:\Program Files\MongoDB\Server\3.2\bin> mongod |
For Linux:
Code Block | ||
---|---|---|
| ||
$ sudo service mongod start |
Anchor | ||||
---|---|---|---|---|
|
This tutorial assumes the user has already set up his environment, if not please refer to Environment Setup
Download and unpack https://wiki.searchtechnologies.com/binaries/. Select the most recent Aspire binary (aspire-distribution-X.X.zip). For purposes of this tutorial, we'll use "aspire-quick-start" as the directory name to which you unpack Aspire.
Note: This is the best way to evaluate Aspire with or without premium connectors. The preferred method if you are actually building a distribution is to use the Distribution Archetype, which requires also downloading a Maven client.
The download will create a directory structure similar to that described in Aspire Directory Structure.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<repositories> <defaultVersion>3.2</defaultVersion> <repository type="distribution"> <directory>bundles/aspire</directory> </repository> <repository type="maven"> <remoteRepositories> <remoteRepository> <id>stPublic</id> <url>http<url>https://repository.searchtechnologies.com/artifactory/public/</url> <user>YOUR-REGISTERED-USERNAME</user> <password>YOUR-REGISTERED-PASSWORD</password> </remoteRepository> </remoteRepositories> </repository> </repositories> |
Tip |
---|
If you encounter Parsing Error: org.xml.sax.SAXParseException: Content is not allowed in prolog This error is caused by the presence of a byte-order mark (BOM) at the start of your XML file. You can see the BOM using "od -c <filename>". Remove the BOM by copying and pasting the entire file contents to a new file in a text editor (since the BOM does not copy to the clipboard). |
6. After you've entered your
user nameusername and password,
saveSave and close the file. Make sure you save it so it remains
aan .xml file
!
You may also need to edit the settings if you are running MongoDB on a separate machine.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<!-- noSql database provider for the 3.2 connector framework -->
<noSQLConnectionProvider sslEnabled="false" sslInvalidHostNameAllowed="false">
<implementation>com.searchtechnologies.aspire:aspire-mongodb-provider</implementation>
<servers>localhost:27017</servers>
</noSQLConnecitonProvider> |
Excerpt Include | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
First, make sure you have access to the internet so that Aspire can download components from our Maven repository.
To start Aspire, follow these steps:
Code Block | ||
---|---|---|
| ||
> |
aspire.bat |
Linux
or OS XCode Block | ||
---|---|---|
| ||
$ aspire.sh |
OS X (this command must be executed from Aspire home directory)
Code Block | ||
---|---|---|
| ||
$ |
bin/aspire.sh |
Info |
---|
The "startup" is a batch script (on Windows) or a shell script (on Unix) that can be modified as necessary if you want to assign more memory or need to set other JVM system properties. |
Aspire may take a few minutes to load all of the necessary components. You will see feedback to the command prompt during the startup.
For more information on how to start, stop, install as service, etc. Visit: Launch Control
Error
If you are unable to start Aspire and an error occurs, try accessing a URL via the browser and logging in with your registered username/password. For example:
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
For details on using the Aspire Content Source Management page, please refer to
AspireAnchor |
---|
|
To specify exactly what File System folder to crawl, we will need to create a new "Content Source".
To create a new content source:
Step 7b
Info |
---|
If you want to disable the content source just clear the the Enable checkbox. This is useful if the folder will be under maintenance and no crawls are wanted during that period of time. |
In the
"General
"tab in the Content Source Configuration window, specify basic information for the content source:
After selecting a Scheduled, specify the details, if applicable:
Info |
---|
You can add more schedules by clicking in the Add New option. Note that you can separately schedule full crawls, incremental crawls, and user-group cache (used for group expansion with document-level security) downloads. |
Note |
---|
Real Time and Cache Groups crawl will be available depending of the connector. |
In the
"Connector
"tab, specify the connection information to crawl the File System folder.
In the
"Workflow
"tab, specify the workflow steps for the jobs that come out of the crawl. Drag and drop rules to determine which steps should an item follow after being crawled.
ThisThese rules could be where to publish the document or transformations needed on the data before sending it to a search engine.
See Workflow for more information.
After completing this these steps, click on the Save then and Done and and you'll be sent back to the Home Page page.
Anchor |
---|
Info |
---|
You can add more schedules by clicking in the Add New option, and rearrange the order of the schedules. |
Info |
---|
If you want to disable the content source just unselect the the "Enable" checkbox. This is useful if the folder will be under maintenance and no crawls are wanted during that period of time. |
Note |
---|
Real Time and Cache Groups crawl will be available depending of the connector. |
|
Step 8: Initiate the Full Crawl
Now that the content source is set up, you will see a box (called a 'card') on the crawl can be initiatedmain page which shows your new content source. You can use the buttons in this box to initiate a crawl.
If Important: If there are errors, you will get a clickable "Error" flag that will take you to a detailed error message page.
Because you are publishing the results to a file, you can see the published jobs in the file you specified when installing the "Publish To File" component. Typically this will be in the "logs" directory, in the "publishToFile.jobs" file (which can be usually be found under the "Publish_To_File" sub-directory).
Congratulations! You
Congratulations!!
You have completed the 20-minute quick start. We hope it was a fun experience.
Or,
you couldgo to the Aspire console window (where you started Aspire with "bin\startup") and
type "shutdown" and then press theCheers!
The Aspire Development Team