# **Configuring SearchBlox**
Before installing a network crawler, install SearchBlox successfully, then create a **Custom Collection**.
# **Installing the Network Crawler**
Contact [[email protected]](🔗) to get the download link for SearchBlox-network-crawler.
Download the latest version of SearchBlox-network-crawler. Extract the downloaded zip to /opt/searchblox-network in Linux, and C: /searchblox-network in Windows.
# **Configuring SMB**
The extracted folder will contain a folder named /conf, which contains all the configurations needed for the crawler.
**Config.yml** This is the configuration file that is used to map SearchBlox to the network crawler. Edit the file in your favorite editor.
_apikey_: This is the API Key of your SearchBlox instance. You can find it in the Admin tab of the SearchBlox instance.
_colname_: Name of the collection which you created.
_colid_: The Collection ID of the collection you created. It can be found in the Collections tab near the collection name from the SearchBlox instance.
_url_: The URL of SearchBlox instance.
**Windowsshare.yml** Enter the details of the domain server, authentication domain, username, password, folder path, disallow path, allowed format and recrawl interval in C:/searchblox-network/conf/Windowsshare.yml. You can also enter details of more than one server, or more than one path in same server, in Windowsshare.yml file.
You can find the details in the content of the file as shown here.
# **Starting the Crawler**
The crawler can be started with start.sh in Linux and start.bat in Windows. The crawler starts in the background, but you can see the logs in the logs folder.
You can only run one network crawler at a time. If you need to run the crawler for different paths or different servers, enter the details in the same network crawler in the Windowsshare.yml file.
To re-run the crawler in another collection, delete sb_network index using a tool that can communicate with Elasticsearch.
If plain passwords are not allowed in your server, enable the plain password using the following line in start.bat of the network connector: **-Djcifs.smb.client.disablePlainTextPasswords=false**
# **Searching Securely Using SearchBlox**
Enable Active Directory secure search under Search → Security settings as shown in the following. Secure Search can be used based on Active Directory configuration by enabling the checkbox for Secured Search and entering the required settings.
Select Enable Secured Search
Enter the Active Directory details
|Column Title||Column Title|
|**LDAP URL**||LDAP URL that specifies base search for the entries|
|**Search Base**||Search Base for the active directory|
|**Password**||Password for the username|
|**Filter-Type**||Filter type could be default or document|
|**Enable document filter**||Enable this option to filter search results based on users|
Test the connection.
Log in using AD credentials here: [http://localhost:8080/searchblox/search/login_securesearch.jsp](🔗)
Perform secure search.
These instructions are applicable for versions 8.5 and onwards. For versions prior to 8.5, go to ../webapps/searchblox/WEB-INF/secured.yml and enter your credentials as shown in the following.
If you need to filter search results based on users, then enter _true_ for document-filter.
Restart the server once changes are made.
For help with configuration details, contact the system administrator.
Navigate to the following URL and log in with username and password. Then search the accessible files. [http://localhost:8080/searchblox/search/login_securesearch.jsp](🔗)
# **Admin Access to File Share**
If the SMB file share is available on another server on the same network and requires permission, run the SearchBlox server service with Admin access and enter your credentials. Running as Admin account or account with access to files only will help successfully index files from the share.
Make sure to run the network crawler service as Admin in a similar manner.
## How to increase memory in Network Connector
**For Windows** Go to <network_crawler_installationPath>/start.bat and allocate more RAM by making changes in the following line rem set JAVA_OPTS=%JAVA_OPTS% -Xms1G -Xmx1G instead of 1G, enter 2G or 3G.
**For Linux** Go to <network_crawler_installationPath>/start.sh uncomment the following line and allocate more memory. JAVA_OPTS="$JAVA_OPTS -Xms1G -Xmx1G"
## Delete sb_network to rerun the crawler in another collection.
To rerun the network crawler in another collection, delete the sb_network index using a tool that can communicate with Elasticsearch. Go to [http://localhost:9200/_cat/indices](🔗) and check whether you can view the sb_network index.
Kibana can also be used with Elasticsearch. Click [here](🔗) to learn how to start and run Kibana.
Start Kibana and access Dev Tools from the lefthand menu. To delete an index, use the DELETE command as shown here: DELETE sb_network
Look for the "acknowledged": "true" message.
Check [http://localhost:9200/_cat/indices](🔗); **sb_network **index should not be available among the indices.
Rerun the crawler after making necessary changes to your config.yml.