FAQs
Specific
Enabling ACLs to be written to the ElasticSearch index
- Go to http://repository.searchtechnologies.com/artifactory/simple/community-public/com/searchtechnologies/aspire/app-publish-to-elasticsearch/
- You have to use your aspire credentials to access the repository
- Select the aspire version you are using and download the jar file "app-publish-to-elasticsearch-[aspire version].jar".
- Open the jar with a compressor utility (rar or zip)
- Go to: \config\groovy
- Unpack "aspireToElasticsearchBulk.groovy" file.
- Open the file with an editor app.
- Remove comment from the code from line #136 to #170 and save the file.
- Copy the file in a path accessible by the distribution. Is recommendable use a folder under the same distribution.
- Then when you configure ElasticSearch publisher in aspire, set "Groovy File Path" property with the path of the file. ie. \aspireToElasticsearchBulkHetrix.groovy
How do I modify the Groovyscript file that maps the Aspire object to the ElasticSearch index?
It is common for search engineers to need to customize the mapping of items within the Aspire object to the fields within a search index. Here is how to do this.
- Go to http://repository.searchtechnologies.com/artifactory/simple/community-public/com/searchtechnologies/aspire/app-publish-to-elasticsearch/
- You have to use your aspire credentials to access the repository
- Select the aspire version you are using and download the jar file "app-publish-to-elasticsearch-[aspire version].jar".
- Open the jar with a compressor utility (rar or zip)
- Go to: \config\groovy
- Unpack "aspireToElasticsearchBulk.groovy" file.
- Open the file with an editor app.
- Make the required edits to the groovyscrip to do the specific mapping
- Copy the file in a path accessible by the distribution. Is recommendable use a folder under the same distribution.
- Then when you configure ElasticSearch publisher in aspire, set "Groovy File Path" property with the path of the file. ie. \aspireToElasticsearchBulkHetrix.groovy
Changes for Publishing content with ACLs for document level security
Most of the connectors have the ability to retrieve the security metadata (ACLs) assigned to documents within the repository. In order to support document filtering based on these ACLs two things need to happen.
- The ACLs need to be written to the search index
- The ACLs in the index need to used as a filter criteria associated with an identified user doing the search
This article deals with the first process. The second process is accomplished using the ElasticSearch security plug-in.
By following the instructions below, the ACLs retrieved by the connector in your content source, will be written to the ElasticSearch index.