]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Updated docs for search.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 17 Feb 2010 15:13:31 +0000 (15:13 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 17 Feb 2010 15:13:31 +0000 (15:13 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3944 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/search/README.txt

index 72172e07387dbde44da57af74452b00ca254de0e..fe87f3334b433e41b6636dc686b79645d9faabf5 100644 (file)
@@ -1,5 +1,18 @@
 Full text search developer's reference.
 
+CONTENTS:
+       1.  Overview
+       2.  Search and Custom Plugins
+       3.  Controlling Search Results
+               3.1  Entities Returned
+               3.2  Custom Search
+       4.  Controlling Search Views
+               4.1  Entities
+               4.2  Listing
+               4.3  Layout
+       5.  Hints and Quirks
+
+
 1.  OVERVIEW
 
        * All entities are searched through title and description using
@@ -222,7 +235,7 @@ Full text search developer's reference.
                views/default/search/mysearch/layout.php
 
 
-4.  HINTS
+5.  HINTS AND QUIRKS
 
        * Use search_get_relevant_substring() to extract and highlight 
        relevant substrings for the search_match_title and description.
@@ -241,3 +254,9 @@ Full text search developer's reference.
                        'count' => $count,
                        'entities' => array($entity)
                );
+
+       * MySQL's fulltext engine returns *ZERO* rows if more than 50% of 
+       the rows searched match.
+
+       * The default search hooks for users and groups ignore subtypes.
+       See http://trac.elgg.org/elgg/ticket/1499