Commit Graph

3743 Commits

Author SHA1 Message Date
Mathieu Darse
652f8be213 Move boolean logic in is own namespace 2015-11-03 18:42:56 +01:00
Mathieu Darse
e86918de4b Merge native keys, flag & fields syntaxes together (PHRAS-685)
- « IN » syntax was removed
- Tests where updated with new serialized representations (IN is replaced by MATCHES)
- Removed tests of native fields with IN syntax
- 4 tests (lines 77, 80, 83 and 86 in queries.csv) are not passing but
they were not really part of specified functionality. They need some work eventually.
2015-10-12 19:50:23 +02:00
Mathieu Darse
fbac292430 Remove old database/collection/type/id grammar pieces 2015-10-12 18:02:35 +02:00
Mathieu Darse
95753167c8 InExpression → FieldMatchExpression (PHRAS-688) 2015-10-12 17:04:02 +02:00
Mathieu Darse
6abfd70e80 Move query build logic for native keys into Key class (PHRAS-688) 2015-10-12 16:42:04 +02:00
Mathieu Darse
d23514c5d0 Move key-value related AST to dedicated namespace (PHRAS-688) 2015-10-12 14:27:32 +02:00
Mathieu Darse
e4ec73c58b Same grammar path for native keys than « IN » expressions
- Replace Database/Collection/Type/RecordIdentifier specific AST with a generic KeyValueExpression
- « IN » queries in regular fields are still using InExpression right now
- Add some tests for « type:XXXX » queries
2015-10-06 18:41:51 +02:00
Benoît Burnichon
6b6433e404 Change Api version to 2.0.0 2015-09-30 18:12:44 +02:00
Benoît Burnichon
8d263bb694 Merge pull request #1515 from bburnichon/api-hashmap-PHRAS-746
array_filter keeps keys. Makes BC break in API.

Fixes PHRAS-746
2015-09-30 15:37:04 +02:00
Thibaud Fabre
5bf08210aa Enable application logging from API calls 2015-09-29 18:16:12 +02:00
Benoît Burnichon
58d691fe19 array_filter keeps keys.
array_values always returns a 0-indexed array.

fixes PHRAS-746
2015-09-29 18:05:47 +02:00
Thibaud Fabre
c680d97938 Use rotating file handler instead of syslog 2015-09-29 16:47:56 +02:00
Thibaud Fabre
6348f71dea Merge pull request #1506 from aztech-dev/logging
Logging
2015-09-29 15:49:44 +02:00
Benoît Burnichon
eebba1d2a5 Merge pull request #1499 from mdarse/PHRAS-368-thesaurus-event-handling
Handle thesaurus events & update index
2015-09-28 09:52:09 +02:00
Benoît Burnichon
51c9533947 Merge pull request #1425 from aztech-dev/api-collections-4.0
Add API get collection route
2015-09-28 09:50:59 +02:00
Thibaud Fabre
da9ec3908c Fix typos and use method to fetch appbox 2015-09-25 18:06:32 +02:00
Jean-Yves Gaulier
e36eaae2c1 PHRAS-742 #time 10m
fix missing argument when indexing with thesaurus
2015-09-24 16:04:32 +02:00
Thibaud Fabre
9669305745 Remove LSP violations 2015-09-22 13:16:11 +02:00
Thibaud Fabre
7f97445b51 Log error in exception handler 2015-09-22 12:53:56 +02:00
Thibaud Fabre
10ca1a87c0 Add syslog logger 2015-09-22 12:42:18 +02:00
jygaulier
03e582df29 Merge pull request #1505 from jygaulier/PHRAS-737_index-after-subdef-creation
PHRAS-737 #time 10m
2015-09-21 20:00:26 +02:00
Jean-Yves Gaulier
37e94e0fe3 PHRAS-737 #time 10m
subdef creation raises the "to index" jeton
2015-09-21 19:54:27 +02:00
Jean-Yves Gaulier
5947468eaa PHRAS-716 #time 10m 2015-09-21 16:31:55 +02:00
Jean-Yves Gaulier
a02b3961bf PHRAS-716 #time 1d
fix : operation list by databox
2015-09-21 15:58:43 +02:00
Jean-Yves Gaulier
5146881076 PHRAS-716 #time 3d
fix : admin/base progress bar (indexation)
fix : reindex button
fix : indexation does not skip records between fetches
2015-09-17 11:03:42 +02:00
Nicolas Maillat
15e632b44e Merge pull request #1502 from mdarse/ar-731-status-search-dsl
PHRAS-731 Add status match DSL
2015-09-15 09:22:17 +02:00
Mathieu Darse
8b87e94ff2 Add status match DSL 2015-09-14 19:25:44 +02:00
Mathieu Darse
760ca11c60 Fix event dispatch 2015-09-08 15:12:40 +02:00
Mathieu Darse
8262e245de Handle thesaurus events & update index 2015-09-08 14:45:12 +02:00
Benoît Burnichon
a41df40d49 Merge pull request #1497 from mdarse/fix-691-cross-field-query
PHRAS-691
2015-09-08 10:52:07 +02:00
Mathieu Darse
03cddfadc9 Fix freetext after IN query
"Foo IN Bar AND Baz" causes AST construction to fail.
2015-09-07 17:35:03 +02:00
Mathieu Darse
a3efd78055 Fix cross field queries (see PHRAS-691) 2015-09-07 16:05:10 +02:00
Benoît Burnichon
9357740817 Merge pull request #1495 from jygaulier/PHRAS-676_facet-on-type
PHRAS-676
2015-09-04 15:29:34 +02:00
Jean-Yves Gaulier
e8f61a443b PHRAS-676 #time 3h
new : returns facet on "type" (image, video, ...)
new : query on pseudo-field "type", ex:  "type:image"
2015-09-04 14:34:25 +02:00
Benoît Burnichon
f5d505b234 Merge pull request #1492 from jygaulier/PHRAS-672_display-query-errors
PHRAS-672
2015-09-03 17:46:21 +02:00
Jean-Yves Gaulier
231a4dc067 PHRAS-608 #time 10m
a record of type "video" can be used (elected) as cover via "create story" api
2015-09-03 17:42:25 +02:00
Jean-Yves Gaulier
d7554dfd2a PHRAS-672 #time 5h
query errors (bad syntax, bad field, ...) are displayed on the "no result page"
todo : i18n of messages
2015-09-03 16:26:17 +02:00
jygaulier
2643d697c2 Merge pull request #1489 from jygaulier/PHRAS-374_create-new-subdefs
PHRAS-374 #time 3h
2015-09-02 15:58:30 +02:00
Jean-Yves Gaulier
12912a309a PHRAS-374 #time 3h
fix : console build-subdefs can build non existing subdefs, ex. after adding a new subdef name in admin.
2015-09-02 13:49:31 +02:00
Mathieu Darse
1fa0b511b1 Remove performance degradation with some subfields 2015-08-31 19:18:10 +02:00
Mathieu Darse
a51fe87f11 Highlight using raw field data too 2015-08-31 19:17:46 +02:00
Mathieu Darse
f0dad09f51 Fix « field to highlight » list fetching 2015-08-31 19:12:25 +02:00
Benoît Burnichon
fc215f79c1 Merge pull request #1484 from jygaulier/PHRAS-683_statusbit-creation
PHRAS-683
2015-08-31 11:34:16 +02:00
Benoît Burnichon
411beaeb7e Merge pull request #1480 from mdarse/optimise-text-query
Wrap text and concept queries with a single filtered query
2015-08-31 11:33:07 +02:00
Jean-Yves Gaulier
c4deee33eb PHRAS-683 #time 2h
fix : admin / creating a new sb is ok
2015-08-27 17:44:18 +02:00
Mathieu Darse
ed0affa921 buildConceptQueriesForFields() replaces buildConceptQueries() 2015-08-27 17:35:34 +02:00
Mathieu Darse
f4db1081fd Optimize highlight speed 2015-08-27 17:01:20 +02:00
Benoît Burnichon
3a36410dd6 Merge pull request #1479 from jygaulier/PHRAS-669_default-sort
PHRAS-669
2015-08-27 12:11:40 +02:00
Mathieu Darse
064c5e01a6 Wrap text and concept queries with a single filtered query 2015-08-26 19:29:26 +02:00
Mathieu Darse
d6a44c8a52 Lower-level API to build concept queries
Removes wrapPrivateFieldConceptQueries().
The goal is to wrap text and concept queries with a single call to wrapPrivateFieldQueries().
2015-08-26 19:29:26 +02:00