Elasticsearch Grails Plugin: How to index files?

Ginkgochris

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.

Ginkgochris

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How does Grails process static files without resources plugin?

From Dev

How to load and index files with parquet format to elasticsearch?

From Dev

NoNodeAvailableException when installing elasticsearch plugin in grails

From Dev

ElasticSearch plugin causing server to stop in Grails 3.1.6

From Dev

ElasticSearch plugin causing server to stop in Grails 3.1.6

From Dev

Elasticsearch how to index text files using the command line

From Dev

Elasticsearch how to index text files using the command line

From Dev

How to customize grails field plugin

From Dev

How to update already run database migration files using Grails DBMigration plugin?

From Dev

Index log files using Elasticsearch

From Dev

How to set Response Headers with Grails CacheHeaders Plugin?

From Dev

How to deploy a grails binary plugin to artifactory with jenkins?

From Dev

How to publish a Grails plugin locally and to a remote repo

From Dev

How to install custom Grails plugin from .zip?

From Dev

how used Grails Spring Security Plugin (Requestmap)

From Dev

How to define a url range for a Grails plugin

From Dev

How to install Grails fields plugin scaffolding templates

From Dev

How to configure quartz plugin in grails 3?

From Dev

Grails Elastic Search Plugin SEVERE: Unexpected transforming call sites grails elasticsearch

From Dev

How to run elasticsearch with transport mode in grails

From Dev

How to run elasticsearch with transport mode in grails

From Dev

URLs within CSS files broken with Grails resources plugin 1.2.7

From Dev

Grails - How to define the starting index page URL

From Dev

How to get the latest changes in custom Grails plugin from artifactory without deleting the plugin from .grails folder?

From Dev

How to deal with Elasticsearch index delay

From Dev

How to index a .PDF file in ElasticSearch

From Dev

How to add subdocument to an ElasticSearch index

From Dev

How to boost index type in elasticsearch?

From Dev

how to index a file with elasticsearch 5.5.1

Related Related

  1. 1

    How does Grails process static files without resources plugin?

  2. 2

    How to load and index files with parquet format to elasticsearch?

  3. 3

    NoNodeAvailableException when installing elasticsearch plugin in grails

  4. 4

    ElasticSearch plugin causing server to stop in Grails 3.1.6

  5. 5

    ElasticSearch plugin causing server to stop in Grails 3.1.6

  6. 6

    Elasticsearch how to index text files using the command line

  7. 7

    Elasticsearch how to index text files using the command line

  8. 8

    How to customize grails field plugin

  9. 9

    How to update already run database migration files using Grails DBMigration plugin?

  10. 10

    Index log files using Elasticsearch

  11. 11

    How to set Response Headers with Grails CacheHeaders Plugin?

  12. 12

    How to deploy a grails binary plugin to artifactory with jenkins?

  13. 13

    How to publish a Grails plugin locally and to a remote repo

  14. 14

    How to install custom Grails plugin from .zip?

  15. 15

    how used Grails Spring Security Plugin (Requestmap)

  16. 16

    How to define a url range for a Grails plugin

  17. 17

    How to install Grails fields plugin scaffolding templates

  18. 18

    How to configure quartz plugin in grails 3?

  19. 19

    Grails Elastic Search Plugin SEVERE: Unexpected transforming call sites grails elasticsearch

  20. 20

    How to run elasticsearch with transport mode in grails

  21. 21

    How to run elasticsearch with transport mode in grails

  22. 22

    URLs within CSS files broken with Grails resources plugin 1.2.7

  23. 23

    Grails - How to define the starting index page URL

  24. 24

    How to get the latest changes in custom Grails plugin from artifactory without deleting the plugin from .grails folder?

  25. 25

    How to deal with Elasticsearch index delay

  26. 26

    How to index a .PDF file in ElasticSearch

  27. 27

    How to add subdocument to an ElasticSearch index

  28. 28

    How to boost index type in elasticsearch?

  29. 29

    how to index a file with elasticsearch 5.5.1

HotTag

Archive