From c5ed12d588be777314ed726a9e632e7bea5ffb9a Mon Sep 17 00:00:00 2001 From: grosser Date: Mon, 29 Dec 2008 12:00:02 +0100 Subject: [PATCH] mode-change on all files... + more documentation --- .gitignore | 2 -- CHANGELOG | 0 MIT-LICENSE | 0 README | 31 +++++++++---------- Rakefile | 0 TESTING | 0 TODO | 0 init.rb | 0 install.rb | 0 lib/estraier_admin.rb | 0 lib/search_do.rb | 0 lib/search_do/backends.rb | 0 lib/search_do/backends/hyper_estraier.rb | 0 .../hyper_estraier/estraier_pure_extention.rb | 0 lib/search_do/dirty_tracking.rb | 0 lib/search_do/dirty_tracking/bridge.rb | 0 lib/search_do/dirty_tracking/self_made.rb | 0 lib/search_do/indexer.rb | 0 lib/search_do/utils.rb | 0 lib/vendor/estraierpure.rb | 0 lib/vendor/overview | 0 rails/init.rb | 0 recipes/mode_maintenance.rb | 0 spec/backends/hyper_estraier_spec.rb | 0 spec/backends/result_document_spec.rb | 0 spec/dirty_tracking/bridge_spec.rb | 0 spec/estraier_admin_spec.rb | 0 spec/fixtures/stories.yml | 0 spec/indexer_spec.rb | 0 spec/search_do_spec.rb | 0 spec/setup_test_model.rb | 0 spec/spec_helper.rb | 0 tasks/acts_as_searchable_tasks.rake | 0 test/abstract_unit.rb | 0 test/acts_as_searchable_test.rb | 0 test/database.yml | 0 test/fixtures/article.rb | 0 test/fixtures/articles.yml | 0 test/fixtures/comment.rb | 0 test/fixtures/comments.yml | 0 test/fixtures/notification.rb | 0 test/fixtures/notifications.yml | 0 test/schema.rb | 0 43 files changed, 14 insertions(+), 19 deletions(-) delete mode 100644 .gitignore mode change 100644 => 100755 CHANGELOG mode change 100644 => 100755 MIT-LICENSE mode change 100644 => 100755 README mode change 100644 => 100755 Rakefile mode change 100644 => 100755 TESTING mode change 100644 => 100755 TODO mode change 100644 => 100755 init.rb mode change 100644 => 100755 install.rb mode change 100644 => 100755 lib/estraier_admin.rb mode change 100644 => 100755 lib/search_do.rb mode change 100644 => 100755 lib/search_do/backends.rb mode change 100644 => 100755 lib/search_do/backends/hyper_estraier.rb mode change 100644 => 100755 lib/search_do/backends/hyper_estraier/estraier_pure_extention.rb mode change 100644 => 100755 lib/search_do/dirty_tracking.rb mode change 100644 => 100755 lib/search_do/dirty_tracking/bridge.rb mode change 100644 => 100755 lib/search_do/dirty_tracking/self_made.rb mode change 100644 => 100755 lib/search_do/indexer.rb mode change 100644 => 100755 lib/search_do/utils.rb mode change 100644 => 100755 lib/vendor/estraierpure.rb mode change 100644 => 100755 lib/vendor/overview mode change 100644 => 100755 rails/init.rb mode change 100644 => 100755 recipes/mode_maintenance.rb mode change 100644 => 100755 spec/backends/hyper_estraier_spec.rb mode change 100644 => 100755 spec/backends/result_document_spec.rb mode change 100644 => 100755 spec/dirty_tracking/bridge_spec.rb mode change 100644 => 100755 spec/estraier_admin_spec.rb mode change 100644 => 100755 spec/fixtures/stories.yml mode change 100644 => 100755 spec/indexer_spec.rb mode change 100644 => 100755 spec/search_do_spec.rb mode change 100644 => 100755 spec/setup_test_model.rb mode change 100644 => 100755 spec/spec_helper.rb mode change 100644 => 100755 tasks/acts_as_searchable_tasks.rake mode change 100644 => 100755 test/abstract_unit.rb mode change 100644 => 100755 test/acts_as_searchable_test.rb mode change 100644 => 100755 test/database.yml mode change 100644 => 100755 test/fixtures/article.rb mode change 100644 => 100755 test/fixtures/articles.yml mode change 100644 => 100755 test/fixtures/comment.rb mode change 100644 => 100755 test/fixtures/comments.yml mode change 100644 => 100755 test/fixtures/notification.rb mode change 100644 => 100755 test/fixtures/notifications.yml mode change 100644 => 100755 test/schema.rb diff --git a/.gitignore b/.gitignore deleted file mode 100644 index df5cb88..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -log/* -*.svn diff --git a/CHANGELOG b/CHANGELOG old mode 100644 new mode 100755 diff --git a/MIT-LICENSE b/MIT-LICENSE old mode 100644 new mode 100755 diff --git a/README b/README old mode 100644 new mode 100755 index 77535ea..bc42eda --- a/README +++ b/README @@ -1,16 +1,14 @@ = search_do - -Library for fulltext search integration with active record using multiple backends. - -Supports: -Hyper Estraier (http://hyperestraier.sourceforge.net/) an ActiveRecord model. +* Library for fulltext search integration with active record. +* Build to support multiple search Backends +* acts_as_searchable Successor == Pre-requisites A working Hyper Estraier instance, setup instructions: -* http://hyperestraier.sourceforge.net/nguide-en.html -* http://pragmatig.wordpress.com/2008/05/06/getting-started-with-acts_as_searchable-on-ubuntu/ +* Setup Instructions: http://pragmatig.wordpress.com/2008/05/06/getting-started-with-acts_as_searchable-on-ubuntu/ +* In-depth Documentation: http://hyperestraier.sourceforge.net/nguide-en.html * rake search:node:create MODEL=User RAILS_ENV=production - for every model/environment you use @@ -30,7 +28,6 @@ A working Hyper Estraier instance, setup instructions: :attributes => {:name=>nil,:city=>nil,:country=>nil,:age=>nil} ) attr_accessor :html_snippet #add this to get html snippets on your results (see below) - attr_accessor :snippet #add this to get pure-snippets(not recommended) on your results end #SEARCH @@ -41,7 +38,7 @@ A working Hyper Estraier instance, setup instructions: - sorted by age ASC @results = User.paginate_by_fulltext_search('hello',:attributes=>{:website=>'www',:age=>1},:order=>'age ASC',:page=>1,:per_page=>20) - (Same can be done without pagination magic: User.fulltext_search) + (Same can be done without pagination: User.fulltext_search) #SNIPPETS Each record found with a fulltext-search (not a attribute-only search) contains a snippet @@ -50,17 +47,17 @@ A working Hyper Estraier instance, setup instructions: User.fulltext_search('hello') => user.html_snippet == "id like to say hello to my fellow students" NOTE: html_snippet will not contain HTML except for the , so there is no need to escape it. - -== Bugtracking -* fork and request pull -* send a message http://github.com/moro + +== Hyperestraier Features + - Phrase search, regular expressions, attribute search, and similarity search + - Snippet retrival + - UTF8 support + - Web interface + - Built in P2P clustering of index servers == Origin Original is written by scoop see * http://github.com/scoop/acts_as_searchable/tree/master -* http://poocs.net/2006/4/6/introducing-acts-as-searchable - -Another fork is maintained by MOROHASHI Kyosuke -* http://github.com/moro/search_do/tree/master +* http://poocs.net/2006/4/6/introducing-acts-as-searchable \ No newline at end of file diff --git a/Rakefile b/Rakefile old mode 100644 new mode 100755 diff --git a/TESTING b/TESTING old mode 100644 new mode 100755 diff --git a/TODO b/TODO old mode 100644 new mode 100755 diff --git a/init.rb b/init.rb old mode 100644 new mode 100755 diff --git a/install.rb b/install.rb old mode 100644 new mode 100755 diff --git a/lib/estraier_admin.rb b/lib/estraier_admin.rb old mode 100644 new mode 100755 diff --git a/lib/search_do.rb b/lib/search_do.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/backends.rb b/lib/search_do/backends.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/backends/hyper_estraier.rb b/lib/search_do/backends/hyper_estraier.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/backends/hyper_estraier/estraier_pure_extention.rb b/lib/search_do/backends/hyper_estraier/estraier_pure_extention.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/dirty_tracking.rb b/lib/search_do/dirty_tracking.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/dirty_tracking/bridge.rb b/lib/search_do/dirty_tracking/bridge.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/dirty_tracking/self_made.rb b/lib/search_do/dirty_tracking/self_made.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/indexer.rb b/lib/search_do/indexer.rb old mode 100644 new mode 100755 diff --git a/lib/search_do/utils.rb b/lib/search_do/utils.rb old mode 100644 new mode 100755 diff --git a/lib/vendor/estraierpure.rb b/lib/vendor/estraierpure.rb old mode 100644 new mode 100755 diff --git a/lib/vendor/overview b/lib/vendor/overview old mode 100644 new mode 100755 diff --git a/rails/init.rb b/rails/init.rb old mode 100644 new mode 100755 diff --git a/recipes/mode_maintenance.rb b/recipes/mode_maintenance.rb old mode 100644 new mode 100755 diff --git a/spec/backends/hyper_estraier_spec.rb b/spec/backends/hyper_estraier_spec.rb old mode 100644 new mode 100755 diff --git a/spec/backends/result_document_spec.rb b/spec/backends/result_document_spec.rb old mode 100644 new mode 100755 diff --git a/spec/dirty_tracking/bridge_spec.rb b/spec/dirty_tracking/bridge_spec.rb old mode 100644 new mode 100755 diff --git a/spec/estraier_admin_spec.rb b/spec/estraier_admin_spec.rb old mode 100644 new mode 100755 diff --git a/spec/fixtures/stories.yml b/spec/fixtures/stories.yml old mode 100644 new mode 100755 diff --git a/spec/indexer_spec.rb b/spec/indexer_spec.rb old mode 100644 new mode 100755 diff --git a/spec/search_do_spec.rb b/spec/search_do_spec.rb old mode 100644 new mode 100755 diff --git a/spec/setup_test_model.rb b/spec/setup_test_model.rb old mode 100644 new mode 100755 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb old mode 100644 new mode 100755 diff --git a/tasks/acts_as_searchable_tasks.rake b/tasks/acts_as_searchable_tasks.rake old mode 100644 new mode 100755 diff --git a/test/abstract_unit.rb b/test/abstract_unit.rb old mode 100644 new mode 100755 diff --git a/test/acts_as_searchable_test.rb b/test/acts_as_searchable_test.rb old mode 100644 new mode 100755 diff --git a/test/database.yml b/test/database.yml old mode 100644 new mode 100755 diff --git a/test/fixtures/article.rb b/test/fixtures/article.rb old mode 100644 new mode 100755 diff --git a/test/fixtures/articles.yml b/test/fixtures/articles.yml old mode 100644 new mode 100755 diff --git a/test/fixtures/comment.rb b/test/fixtures/comment.rb old mode 100644 new mode 100755 diff --git a/test/fixtures/comments.yml b/test/fixtures/comments.yml old mode 100644 new mode 100755 diff --git a/test/fixtures/notification.rb b/test/fixtures/notification.rb old mode 100644 new mode 100755 diff --git a/test/fixtures/notifications.yml b/test/fixtures/notifications.yml old mode 100644 new mode 100755 diff --git a/test/schema.rb b/test/schema.rb old mode 100644 new mode 100755