Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #49 (new improvement)

Opened 10 years ago

Last modified 10 years ago

Improve searching by using Lucene

Reported by: martin Owned by:
Priority: minor Milestone:
Component: behaviour Version:
Keywords: search, query Cc: martin@silef.de

Description

Apache Lucene (http://lucene.apache.org/java/docs/) is a high performance search engine which can be used to index text files but also structured contents of a database. It could also for example the contents of comments. It also performs parsing of queries and allows a lot of custom queries which would be error prone to implement by hand.

Here http://bakery.cakephp.org/articles/view/integrating-zend-framework-lucene-with-your-cake-application is a tutorial on how to integrate it with Cake and gives a good impression on how Lucene works and how the index gets built. It also shows its flexibility on the input data that it uses for indexing.

At http://framework.zend.com/manual/en/zend.search.lucene.html is the documentation of the zend component that is required to get it run.

Change History

comment:1 Changed 10 years ago by martin

  • Cc martin@silef.de added; martin@silef.d removed

comment:2 Changed 10 years ago by sebastian

First of all, a search within the database could be extended to use the build-in function provided by SQL standard as the statement 'LIKE' (http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html). This might be slow, but is supported by the most database backends and does not increase the requirements or dependencies of external libs and components (see #6).

Comments (or also tag names, categories, etc) could be search by the LIKE statement and would be a nice enhancement for the quick search! Therefore, the quick search 'tag' would find tags like 'phtagr' and comments having 'advantage'.

In a later stage, the idea of a Lucene search engine would be a nice plugin for a big big setup of phTagr ;-)

Note: See TracTickets for help on using tickets.