kunstmaan/node-search-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kunstmaan/node-search-bundle

最新稳定版本:7.3.0

Composer 安装命令:

composer require kunstmaan/node-search-bundle

包简介

This bundle uses the KunstmaanSearchBundle to search through Nodes from the KunstmaanNodeBundle

README 文档

README

Build Status Total Downloads Latest Stable Version Analytics

This bundle uses the KunstmaanSearchBundle to search through Nodes from the KunstmaanNodeBundle

Installation

composer.json

 "require": { "kunstmaan/node-search-bundle": "*" },

AppKernel.php:

 public function registerBundles() { $bundles = array( // ... new Kunstmaan\NodeSearchBundle\KunstmaanNodeSearchBundle(), // ... );

Configuration

SearchPage

Extend the AbstractSearchPage and add your new class as a possible child to a page in your website :

 /**  * @return array  */ public function getPossibleChildTypes() { return array( array( 'name' => 'Search page', 'class'=> "Acme\DemoBundle\Entity\SearchPage" ) ); }

Custom mapping

You may configure the index mapping via Symfony config. For example:

# config.yml kunstmaan_node_search: mapping: average_score: name: average_score type: float index: not_analyzed tags: name: tags type: string index: analyzed 

Please notice that this does not index any data.

Adding data to index

Pages can implement HasCustomSearchDataInterface to dynamically add more data to the document while indexing. For more complex scenarios a service can listen on the kunstmaan_node_search.onIndexNode event.

Documentation

Find more documentation on how it works here

统计信息

  • 总下载量: 77.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 15
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固