承接 intracto/elastic-synonym-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

intracto/elastic-synonym-bundle

最新稳定版本:2.0.2

Composer 安装命令:

composer require intracto/elastic-synonym-bundle

包简介

Elasticsearch synonym management using bootstrap 4

README 文档

README

This bundle integrates intracto/elastic-synonym into your application. The views are build using bootstrap 4.

Installation

$ composer require intracto/elastic-synonym-bundle

Prepare your project

See intracto/elastic-synonym to prepare your project for this bundle.

Configuration

# packages/intracto_elastic_synonym.yaml

intracto_elastic_synonym:
  synonym_configs:

    default: # unique config identifier 
      name: Synonyms # user-friendly name
      file: '%env(string:INTRACTO_ELASTIC_SYNONYM_DIR)%synonyms.txt' # absolute path to synonym file [only configs with valid files will be accessible]
      indices: ["index"] # array of all indices (or aliases) that need to be refreshed on change
# .env

###> INTRACTO ELASTIC SYNONYM ###
INTRACTO_ELASTIC_SYNONYM_DIR=/vagrant/.elastic-synonym/
###> INTRACTO ELASTIC SYNONYM ###

Routes

The available actions can be added to your routing manually, or you can include and prefix the default:

# routes/intracto_elastic_synonym.yaml

_intracto_elastic_synonym_bundle:
  resource: '@IntractoElasticSynonymBundle/Resources/config/routes.xml'
  prefix: /elastic

Security

This bundle is supposed to be behind authentication, you may enforce this any way you want.

Override layout

The layout can be overridden by creating the file templates/bundles/IntractoElasticSynonymBundle/base.html.twig. Just make sure to implement {% block intracto_elastic_synonym_content %}{% endblock %}. Example:

{% extends 'base.html.twig' %}
{% trans_default_domain 'IntractoElasticSynonym' %}

{% block title %}{{ 'config.index.title'|trans }}{% endblock %}

{% block body %}
    {% block intracto_elastic_synonym_content %}{% endblock %}
{% endblock %}

统计信息

  • 总下载量: 838
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-15