Commit Graph

635 Commits

Author SHA1 Message Date
Thibaud Fabre
3f1230a86c Add missing include 2016-10-21 09:41:04 +02:00
Thibaud Fabre
899188d970 Export mapping as array to create it 2016-10-19 13:31:17 +02:00
Thibaud Fabre
c133b42716 Refactoring
- Split search engine service registration into sub-methods
- Remove unused properties
- Fix coding style
2016-10-19 13:31:17 +02:00
Thibaud Fabre
f79a78e4c5 Restore merge exceptions and add structure factory method 2016-10-19 13:31:17 +02:00
Thibaud Fabre
f5452eac1e Check for undefined key 2016-10-19 13:31:17 +02:00
Thibaud Fabre
299b24d4fb Update class for mapping type constants 2016-10-19 13:31:17 +02:00
Thibaud Fabre
6e88b97c55 Extract record index and term index from respective indexers 2016-10-19 13:31:16 +02:00
Thibaud Fabre
f2cfe93f8c Finish refactoring mapping creation 2016-10-19 13:29:54 +02:00
Thibaud Fabre
7a71886dc9 Start extracting specialized field mapping classes from mapping 2016-10-19 13:29:54 +02:00
Thibaud Fabre
8fb1cd9944 Coding style and docblocks 2016-10-19 13:29:54 +02:00
Thibaud Fabre
9c2e1cb459 Add stub record index data structure 2016-10-19 13:29:54 +02:00
Thibaud Fabre
246503ee42 Extract index data structure from indexer 2016-10-19 13:29:54 +02:00
Thibaud Fabre
c2f0a5a184 Remove check on facet count 2016-10-19 13:29:53 +02:00
Thibaud Fabre
11d25021cc CS fixes 2016-10-19 06:51:37 +02:00
Thibaud Fabre
79a9411923 Code architecture
- Remove circular dependency between indexer and record indexer
- Restore interface type hints on indexer methods
2016-10-18 21:17:38 +02:00
Jean-Yves Gaulier
cf40c99ea7 PHRAS-714_thesaurus_indexation
- new : if the thesaurus has been modified since it's last indexation, it will be re-indexed as soon a record is to be indexed.
 - nb : after thesaurus modification, the databox MUST be manually re-indexed (which will reindex the thesaurus before)
 - todo : remove useless dialog boxes from thesaurus app (... "this term was..."  "...add with/out reindexing ?..."). To be done in the future app using future routes.
2016-10-12 18:42:16 +02:00
Jean-Yves Gaulier
827e4fe255 PHRAS-842_search-logged-as-es_4.0
- fix : query is logged in a "user" form, before parsing
2016-09-22 15:16:36 +02:00
jygaulier
d558192a74 Merge pull request #1910 from jygaulier/PHRAS-1168_Backport-PHRAS-1094-to-4.0
PHRAS-1168_Backport-PHRAS-1094-to-4.0
2016-07-18 13:32:27 +02:00
Thibaud Fabre
5648f3219c Remove records property from story search results 2016-06-28 13:12:58 +02:00
Jean-Yves Gaulier
b49a5ceda5 PHRAS-1168_Backport-PHRAS-1094-to-4.0
(update php-es lib)
#time 30m
2016-06-16 17:57:04 +02:00
Jean-Yves Gaulier
378cc45a87 PHRAS-1101_THMB-TRAIN-IN-PREVIEW
backport from master
#time 30m
2016-05-12 17:16:47 +02:00
Benoît Burnichon
1e18b3e69f This is a combination of 33 commits.
- Squashed Pull request #1730
- Squashed Pull request #1741
- Squashed Pull request #1742
- Squash merge branch 4.0
- Squashed Pull request #1744
- Squashed Pull request #1746
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed Pull request #1758
- Avoid using imagine/imagine alias as it is causing install issues
- Squashed merge branch 4.0
- Squashed Pull request #1763
- Squashed merge branch 4.0
- Squash of 6 commits
- Squashed merge branch 4.0
- This is a combination of 2 commits.
- Squashed Pull request #1775
- Squashed Pull request #1777
- Squashed Pull request #1779
- Squashed Pull request #1780
- Squashed Pull request #1782
- Adds a Pull request template
- Squased Pull request #1783
- Squash Pull request #1786
- Squashed Pull request #1796
- Squashed merge branch 4.0
- Squash Pull request #1791
- Squashed merge branch 4.0
- Squashed Pull request #1808
- Squashed Pull request #1811
- Squashed Pull request #1809
2016-04-20 16:22:14 +02:00
Benoît Burnichon
cd80e9e1ed Remove unused appbox parameter 2016-03-15 19:11:56 +01:00
Benoît Burnichon
57aab7aa85 Fixup PHPCS 2016-03-15 17:47:13 +01:00
Benoît Burnichon
b8a506d3b2 Improve readability of Thesaurus Helper 2016-03-15 17:31:01 +01:00
Benoît Burnichon
daf2cf6150 replace StringUtils::slugify by a proper instance
Previous implementation had a flaw when using a different separating character. New implementation should be well tested.
2016-03-15 16:59:53 +01:00
Thibaud Fabre
8cef133413 Leave shard refresh interval alone 2016-03-08 17:53:28 +01:00
Benoît Burnichon
b0330d8f56 Added RecordReferenceCollection utility method 2016-03-07 12:30:51 +01:00
Benoît Burnichon
8a907e9bb0 Add touch capability to record_adapter. 2016-02-23 10:40:01 +01:00
Benoît Burnichon
59a334ea32 New search style 2016-02-22 14:07:16 +01:00
Benoît Burnichon
6aa56f24ac Add SearchEngineResultToRecordsConverter 2016-02-22 14:07:16 +01:00
Benoît Burnichon
d93983caeb Add RecordEvent when rotated 2016-02-18 15:28:11 +01:00
Benoît Burnichon
054f78815d group record_adapter fetching in API 2016-02-17 17:07:55 +01:00
Benoît Burnichon
9548e2441f PHPCS in ElasticSearchEngine 2016-02-17 17:07:55 +01:00
Florian BLOUET
cfac4d7ecd wip PHRAS-681 2016-02-17 15:09:30 +01:00
Benoît Burnichon
d0bae320d3 Check type of field before considering it a Date 2016-01-21 13:13:20 +01:00
Thibaud Fabre
c92d5da9fe Merge branch 'clean-boxes' into merge-clean-boxes 2016-01-06 19:53:43 +01:00
Benoît Burnichon
51023c5533 bump copyright year 2016-01-05 13:38:14 +01:00
Jean-Yves Gaulier
e8830e0c3c #PHRAS-882 time 5m
removed filter on dbox, must be done only in task
2015-12-22 18:12:17 +01:00
Jean-Yves Gaulier
9a9ce70aa6 #PHRAS-882 time 3h
the checkbox "can be indexed" works  (only for index-task) : even if the databox is disabled for indexation via the task, real-time indexation & populate command still works
2015-12-22 18:10:39 +01:00
Benoît Burnichon
6eba70030d Fixes some PHPCS 2015-12-22 16:49:41 +01:00
Benoît Burnichon
bc855f200d Index on every record change event 2015-12-22 16:49:40 +01:00
Jean-Yves Gaulier
80f3285737 #PHRAS-874 time 2d
type hinting / cs
events renamed / deleted
n+1 removed for status-bits & technical meta
events added (subdef creation / created)
fix : es indexes after all subdefs are created
2015-12-17 20:07:48 +01:00
Jean-Yves Gaulier
18909462fa #PHRAS-840 time 12h
add : es "technical" fields (_index, _type, _version, ...) to es-record
fix: add etag to thumbnail on es answers, based on document _version
clean : obsolete methods calls changed, cs, ...
2015-12-10 17:58:16 +01:00
Benoît Burnichon
8d148e850b Add check on Available collections before performing a search
PHRAS-825
2015-11-24 11:15:44 +01:00
Benoît Burnichon
663dbef92e Add Facet labels 2015-11-23 16:17:58 +01:00
Benoît Burnichon
88427efa4c Fixup DI of QueryCompiler.
As compiler was not using structure on its own, extract it and replace instantiation by a factory.
2015-11-16 13:08:32 +01:00
Mathieu Darse
3b2d6b05a0 Pass structure to query visitor & enable range generation for regular fields (equal expression) 2015-11-13 20:41:19 +01:00
Nicolas Maillat
ccc5315ad3 Merge pull request #1569 from mdarse/fix-range-expression-private-fields
Fix range expression with private fields
2015-11-13 20:36:43 +01:00
Nicolas Maillat
702a7fce91 Merge pull request #1568 from mdarse/timestamp-query
Convert dates to date ranges on timestamp keys PHRAS-689
2015-11-13 20:35:30 +01:00