-
Notifications
You must be signed in to change notification settings - Fork 7
/
CHANGELOG
81 lines (62 loc) · 2.91 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
JayPS Search CHANGELOG
July 22, 2014 : version 1.2
===========================
* Add possibility to search in specific field(s)
July 21, 2014 : version 1.1
===========================
* A setup can be configured to modify scoring depending on the nature of the fields.
eg. a boost can be provided if the field is the title.
See config/config.php
* API changed, split() method is deprecated, use wordScoring() instead.
The new method takes the word and its config as params.
* A 'prepare_field' callback can be provided to prepare the value for a specific field, or for all the fields in general config.
November 6th, 2013: version 1.0
==============================
* Now support 'relation->field' syntax to index fields from relations (has_one, has_many, many_many and belongs_to)
* Add method force_reindex() on observed model to force its indexation
* Prevent errors with order_by if no keywords is used during search
* During a search, if all provided keywords are ignored (example: too shorts), return no results
* Bugfix: jayps_search_score + multiple relations
* Add option 'jayps_no_group_by' to be able to use Model::query()->count()
* Add property 'field_date_indexation' in behaviour configuration
* Compability with Novius-OS Chiba 2
* Check for "keywords" in complexe "where" clauses
* Novius-OS migration to create the table
* Support for multiple 'keywords' fields in where clause
* Add option 'jayps_search_exact_match' to order results with exact matches first (search with joker '*')
Thanks to Victor Albert and Pascal Viney
February 12th, 2013: version 0.6
==============================
* PHP 5.3 compatibility
February 3rd, 2013: version 0.5
==============================
* Add Orm_Behaviour_Searchable::init_relations() to delay the creation of relations
February 2nd, 2013: version 0.4
==============================
* Migrate application to Novius-OS 0.2
* Change mooc_ordre to mooc_ordre
ALTER TABLE `jayps_search_word_occurence` CHANGE `mooc_ordre` `mooc_score` TINYINT( 3 ) UNSIGNED NOT NULL;
* Add option 'jayps_search_score' to 'order_by' to order results by revelance. Example:
$pages = \Nos\Page\Model_Page::find('all', array(
'where' => array(
array('keywords', 'key1 key2'),
),
'order_by' => array('jayps_search_score', 'page_title'),
));
December 20, 2012: version 0.3
==============================
* Support search by string (keywords separated by spaces)
* Use of configuration: $_has_many no longer needs to be public
December 09, 2012: version 0.2
==============================
* Add "search" with the ORM: find() supports 'keywords' in where()
* Delete keywords when deleting items
* MyISAM support (INSERT DELAYED, syntaxe of create_table.sql).
* Better UTF-8 support (use of mb_* functions)
* Improved 'debug' option
Todo:
-----
* Find a way to avoid to require $_has_many to be public
December 01, 2012: version 0.1
==============================
Initial version