Grails的全文检索插件

Searchable Plugin

The Searchable Plugin aims to provide rich search features to Grails applications with minimum effort, and still give you power and flexibility when you need it.

It is built on the fantastic Compass Search Engine Framework and Lucene and has the same license as Grails (Apache 2).

The roadmap and issues are tracked in JIRA.

    Intially the plugin will focus on exposing Groovy domain models.

    Support for Java domain classes is on the roadmap but until then, if your Grails application uses Java domain classes, using Compass's native annotations or XML mapping config and setting up Compass yourself may be a better fit at this stage.

Features

The plugin:

    * Detects searchable classes and maps them to the search index
    * Performs a bulk index of all searchable class instances in the database
    * Automatically synchronises any changes made through GORM/hibernate with the index 数据挖掘论坛
    * Adds domain class methods for easy class-based searching and index management
    * Provides a {{SearchableService}} for easy application-wide searching and index management
    * Provides a {{SearchableController}} for testing queries and demonstrating the Searchable Plugin API
    * Provides a configuration mechanism to enable/disable features and override default behavoir if necessary

Quick start

Install the plugin

grails install-plugin searchable

Define Searchable classes

Add a static searchable property in the domain classes you need to be searchable, for example:

/**
 * A blog post
 */
class Post {
    static searchable = true             // maps and indexes Post instances with default rules
    static hasMany = [comments: Comment] // Comment could also be "searchable" In order to get a many to one mapping to index correctly additional steps are required.  Following this link http://www.nabble.com/Searchable-plugin-problem-td17573290.html 数据挖掘论坛
    User author                          // User could also be "searchable"
    String category, title, post
    Date postDate
}

(_There are more ways to map your classes to the search index, but this is enough for now._)

Try it!

Fire up your app… _during startup the plugin will build the search index all for searchable class instances in your database_.

Navigate to http://localhost:8080/YOUR-APP-NAME-HERE/searchable, and try a few queries. Here's a screenshot from my own app:
上一页12 下一页
[数据挖掘专家] [数据挖掘研究院] [数据挖掘论坛] [数据挖掘实验室]
上一篇:J2EE Search的增删查改及检索初步实现
下一篇:Lucene 基础指南(Java版)
最新评论共有 0 位网友发表了评论 , 查看所有评论
发表评论( 不能超过250字,需审核,请自觉遵守互联网相关政策法规。 )
匿名?
数据挖掘网站导航 数据挖掘论坛导航
  • 数据挖掘工具
  • 数据挖掘论坛
  • DataCruncher - Cognos
  • MineSet - MathSoft
  • Intelligent Miner - GainSmarts
  • Sqlserver - SAS - Clementine
  • CART - Weka - WizSoft
  • NeuroShell - ModelQuest
  • data mining tools - Darwin
  • 数据挖掘交友
  • 数据挖掘博客
  • 数据挖掘工具
  • 数据挖掘资源
  • 数据挖掘技术算法
  • 数据挖掘相关期刊、会议
  • 研究院联盟合作专区
  • 数据挖掘基础与相关技术
  • 数据挖掘厂商与就业
  • 数据挖掘研究者乐园
  • 知名厂商数据挖掘工具资料
  • 国内数据挖掘实验室
  • Foreign Data Mining Lab
  • 热点关注
  • Larbin网站爬虫简明使用说明
  • 全文检索引擎Lucene源码分析-analysis包
  • Nutch爬虫工作流程及文件格式详细分析
  • Lucene 基础指南(Java版)
  • 关于lucene 结构及内层的研究(一)
  • 实现NUTCH中文分词的代码修改方法
  • 利用Lucene搜索Java源代码
  • Lucene In Action ch 5 笔记 --高级搜索技
  • 第三节 Lucene索引文件格式分析
  • 如何使用Lucene进行全文检索(一)
  • 论坛最新话题
  • Foundations of Statistical Natural Langu
  • Game Theory meet Data Mining: A Recent P
  • System Building: How does it help or hin
  • 数据挖掘与Clementine培训
  • 新手报到
  • 求 SASEM 客户流失预测分析
  • 数据挖掘工程师/搜索研究院—北京——无线
  • 数据挖掘入门介绍(如何着手数据挖掘)
  • Information Overload Survey Results
  • The INEX 2005 Workshop on Element Retrie
  • 相关资讯
  • 什么是luncene
  • 什么是nutch
  • 让Nutch支持中文分词
  • 关于lucene 结构及内层的研究(一)
  • Lucene In Action ch 5 笔记 --高级搜索技
  • 第三节 Lucene索引文件格式分析
  • 第二节 Lucene系统结构分析
  • 第一节 全文检索系统与Lucene简介
  • Lucene的查询语法!
  • 第四节 Lucene索引构建逻辑模块分析
  • 数据挖掘实验室资料
  • 数据挖掘博客地址
  • 数据挖掘实验室网站地址
  • Prepare for Medicare audits by using dat
  • 注册成为SAS用户与爱好者俱乐部会员
  • 水南梅
  • 明日烟
  • 新人报道
  • 下载
  • 厦门服务器托管,450元/月—0592-5177319 高
  • 买空间送域名--0592-5177319 高静