-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSCrawler override my own index mapping fscrawler_mapping_content
after started
#1797
Comments
I looked at this today and actually this is documented (see https://fscrawler.readthedocs.io/en/latest/admin/fs/elasticsearch.html#mappings):
Could you try this and confirm that this is fixing your issue? |
|
No. But here's my take on this. I think I should add a CLI option like --setup which would only send the templates for a given job but not start it. May be --loop 0 would do this. Would that work for you in the meantime? I would like to implement a better user experience. |
I think if user could put the customer templates in a specified directory would be a better user experience. Then FSCrawler should read the templates from both user's directory and the default directory. Is it? |
I used to edit the default file at The old way where local modifications would be combined with defaults would seem best to me. |
@aaltonenp Would the solution posted here would work for you? Basically, create an index template and disable fscrawler index templates? |
@dadoonet It might once I figure out how to add the normalizer. I let fscrawler run once to create the templates and then try to modify them. In the I don't know much about Index & Component Templates and how they draw the settings together. Do I need to define the normalizer in the |
You need to define the |
Ok thanks. Although looks like I can get away using the built-in |
I'm having a similar problem with the current docker build. I use an ingest pipeline with a grok processor to match patterns in the filenames and use those to create custom fields. Some of those fields are date types with custom date formats. I cannot figure out a streamlined way to do this that isn't totally hackish. Perhaps have the ability to create mappings when the index is initially created would be helpful. |
The document said that
If you want to define your own index settings and mapping to set analyzers for example, you can update the needed component template before starting the FSCrawler.
But,
_component_template/fscrawler_mapping_content
will be override after FSCrawler started.Originally posted by @bobjiang1988 in #469 (comment)
The text was updated successfully, but these errors were encountered: