omc / searchyll

GNU General Public License v3.0
48 stars 15 forks source link

Add ability to ignore certain paths #44

Closed alranel closed 4 years ago

alranel commented 5 years ago

This PR introduces a configuration option that allows to ignore certain paths. Wildcards supported:

elasticsearch:
  url: "http://localhost:9200/"     # Required. Supports auth and SSL: https://user:pass@someurl.com
                                    # Can also read URLs stored in environment variable named
                                    # BONSAI_URL and ELASTICSEARCH_URL.
  number_of_shards: 1               # Optional. Default is 1 primary shard.
  number_of_replicas: 1             # Optional. Default is 1 replica.
  index_name: "jekyll"              # Optional. Default is "jekyll".
  default_type: "post"              # Optional. Default type is "post".
  custom_settings: _es_settings.yml # Optional. No default. Relative to your src folder
  custom_mappings: _es_mappings.yml # Optional. No default. Relative to your src folder
  ignore:                           # Optional. No default.
    - /news/*
bfabio commented 4 years ago

@drusellers Could you give us feedback on this one, please?

bfabio commented 4 years ago

@drusellers Thanks for the review, I addressed the issues with the last commit. Let me know if you need me to squash it.

drusellers commented 4 years ago

@drusellers Thanks for the review, I addressed the issues with the last commit. Let me know if you need me to squash it.

@bfabio let's get this rebase on master and I'll get it merged in. :)

bfabio commented 4 years ago

@drusellers Done :+1: