Is there a possibility to upload and index files via the elasticsearch grails plugin?
The https://github.com/elastic/elasticsearch-mapper-attachments plugin is installed in my elasticsearch server.
The Elasticsearch grails documentation http://noamt.github.io/elasticsearch-grails-plugin/ does not mention a mapping for files.
A domain class could perhaps look like this:
class Document {
String filecontent
static searchable = {
only = ["filecontent"]
filecontent attachment:true
}
}
where filecontent is the base64 encoded file. Actually this works, but I cannot get the highlighting working.
Currently it is not possible to highlight uploaded content with the standard index mapping from elasticsearch-grails-plugin.
I explained a workaround here: https://github.com/noamt/elasticsearch-grails-plugin/issues/131
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments