-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCHANGELOG
More file actions
19 lines (12 loc) · 1.23 KB
/
CHANGELOG
File metadata and controls
19 lines (12 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
*SVN*
* Improved compatibility with Rails' pagination feature, <tt>Model::fulltext_search</tt> now takes a <tt>:count</tt> parameter which will return the number of matches for your query instead of retrieving the actual documents and instantiating the results.
* Added compatibility with Rails' STI feature. The base class of an inherited model is stored in the type_base attribute, so please reindex your STI models after applying this update. After that, the following is possible (presuming <tt>CommentNotification</tt> descends from <tt>Notification</tt>):
CommentNotification.fulltext_search('') # Returns all indexed CommentNotification records
Notification.fulltext_search('') # Returns both CommentNotification records and Notification
# records as well as any other indexed child objects
* Force query conditions to support HE's simple format. Queries like these work now:
Article.fulltext_search('mau*') # Matches 'mau' at the beginning of a word
Article.fulltext_search('*ris') # Matches 'ris' at the end of a word
Article.fulltext_search('*^m.*is$*') # Regular expression to match words that begin with 'm' and end in 'is'
*0.1.0*
* Initial release