Commit Graph

126 Commits

Author SHA1 Message Date
Jean-Yves Gaulier
20839f1dd7 return facets following the order defined in conf. 2020-02-17 20:17:08 +01:00
jygaulier
a2b2658c04 Merge branch 'master' into PHRAS-2831_port-truncation_4.1 2019-11-19 17:34:45 +01:00
Jean-Yves Gaulier
3145049247 PHRAS-2831_port-truncation_4.1
copy elastic/truncation code from 4.0
nb: from already exists
2019-11-19 16:45:46 +01:00
Harrys Ravalomanana
5e4da5f28f PHRAS-2805 #comment Port41 of Facet-case-sensibility 2019-11-14 15:02:04 +04:00
Harrys Ravalomanana
ce67d5f62d PHRAS-2785 #comment Port41 of PHRAS-2758 #time 1h 2019-10-08 16:40:07 +04:00
aynsix
20076df3f8 port to 4.1 date with time on phraseanet 2019-08-15 15:23:03 +04:00
aina-esokia
47d974a466 PHRAS-2497 #comment port to 4.1 Search issue when query mix data from Public and Private field
#time 2h
2019-04-23 12:10:25 +04:00
aina-esokia
eaf8cf076a port to 4.1 search mix type 2019-03-22 12:04:42 +04:00
jygaulier
e2f5afc07b PHRAS-2292_aggregates-as-new-json_MASTER (#2829)
* PHRAS-2292_aggregates-as-new-json_MASTER
wip

* PHRAS-2292_aggregates-as-new-json_MASTER

* PHRAS-2292_aggregates-as-new-json_MASTER
fake commit to test circle (did not run on last commit !)
2018-11-27 10:25:28 +01:00
aina-esokia
2eeb1721e9 port to 4.1 PHRAS-1831 2018-11-05 15:02:55 +04:00
aina-esokia
93ad45dd91 port better agregate to 4.1 2018-05-29 15:25:42 +04:00
Jean-Yves Gaulier
1e64eb7a42 PHRAS-2009_Geo-operator_MASTER
add the "geolocation="lat lon distance" query
2018-05-17 21:13:28 +02:00
Jean-Yves Gaulier
3f785e7ba3 PHRAS-483_SHA-UID_master
add index (not analysed) & search on fields "sha256" and "uuid"
e.g. : uuid:"4d006e01-bc38-4aac-9a5b-2c90ffe3a8a2"
e.g. : sha256:a7f3ec01c4c5efcadc639d494d432006f13b28b9a576afaee4d3b7508c4be074
2018-04-26 17:35:01 +02:00
Mike Ng
071ce25b31 porting PHRAS-1578/PHRAS-1579/PHRAS-1621/PHRAS-1675/PHRAS-1404/PHRAS-1336 to 4.1 2018-01-03 15:26:43 +04:00
jygaulier
a70bf2fc70 PHRAS-1304_AUTO-COMPLETION_MASTER (#2061)
* PHRAS-1304_AUTO-COMPLETION_MASTER
ported from 4.0

* PHRAS-1304_AUTO-COMPLETION_MASTER
fix

* PHRAS-1304_AUTO-COMPLETION_MASTER
fix

* PHRAS-1304_AUTO-COMPLETION_MASTER
bump php version to 5.5.31 (5.5.21 is obsolete in cicleci)

* PHRAS-1304_AUTO-COMPLETION_MASTER
bump php version to 5.5.31 : php.ini moved in circelci

* PHRAS-1304_AUTO-COMPLETION_MASTER
add zmq & date to php for circleci

* PHRAS-1304_AUTO-COMPLETION_MASTER
add zmq

* PHRAS-1304_AUTO-COMPLETION_MASTER
bump amqp

* PHRAS-1304_AUTO-COMPLETION_MASTER
downgrade amqp to 1.2 to test compilation against old librabbit 0.4 (ubuntu)

* PHRAS-1304_AUTO-COMPLETION_MASTER
add amqp.so to php.ini, (re)bump amqp to 1.6

* PHRAS-1304_AUTO-COMPLETION_MASTER
build rabittmq from git

* PHRAS-1304_AUTO-COMPLETION_MASTER
build rabittmq from git again

* PHRAS-1304_AUTO-COMPLETION_MASTER
build rabittmq from git again and again

* PHRAS-1304_AUTO-COMPLETION_MASTER
fix test on media rotation 600*400 -> 400*599 !!!

* PHRAS-1304_AUTO-COMPLETION_MASTER
restore facebook sdk to 4.0.1 due to mistake

* PHRAS-1304_AUTO-COMPLETION_MASTER
deleted unwanted file
2017-02-06 18:26:56 +01:00
Thibaud Fabre
299b24d4fb Update class for mapping type constants 2016-10-19 13:31:17 +02:00
Thibaud Fabre
11d25021cc CS fixes 2016-10-19 06:51:37 +02:00
Benoît Burnichon
d0bae320d3 Check type of field before considering it a Date 2016-01-21 13:13:20 +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
Mathieu Darse
6913d67e9a Convert dates to date ranges on timestamp keys 2015-11-13 19:28:59 +01:00
Mathieu Darse
0cd9933ac6 Handle search with on timestamp
PHRAS-689
2015-11-13 10:28:05 +01:00
Mathieu Darse
c89d48c6f7 BooleanOperator → BooleanExpression 2015-11-10 14:56:50 +01:00
Mathieu Darse
9f923e0409 Refactor AST for match expression 2015-11-10 13:35:12 +01:00
Mathieu Darse
7353945d3c Refactor binary expression handling 2015-11-10 13:19:50 +01:00
Mathieu Darse
9635efc1e3 Refactor children count assertions 2015-11-10 13:11:45 +01:00
Mathieu Darse
407470ab10 Rename key-value expression classes 2015-11-10 13:04:28 +01:00
Mathieu Darse
0bb61bd882 Remove metadata tag validation from query compiler 2015-11-09 19:07:31 +01:00
Mathieu Darse
9d3dfa5653 Manage metadata tags from structure 2015-11-09 19:04:54 +01:00
Mathieu Darse
3d7ab6a292 Move field logic from RangeExpression to FieldKey
- Prevent Demeter’s Law violation
2015-11-06 19:10:26 +01:00
Mathieu Darse
467e530a93 Handle inequality comparisons with technical data. 2015-11-06 10:16:33 +01:00
Mathieu Darse
713442c7b4 Merge metadata & native key expressions
Do not delegates query building to Key instance anymore.
2015-11-06 10:16:33 +01:00
Mathieu Darse
803a9010a5 Pass metadata key as value object 2015-11-06 10:16:31 +01:00
Mathieu Darse
13186209f7 Handle matching on file metadata 2015-11-06 10:14:23 +01:00
Benoît Burnichon
94bf685437 Merge pull request #1525 from mdarse/new-in-syntax
Grammar unification
2015-11-04 21:16:03 +01:00
Mathieu Darse
570808e793 Switch \Exception to search engine’s Exception 2015-11-04 19:30:56 +01:00
Mathieu Darse
387828e9f5 Clean « IN » node type 2015-11-04 16:14:44 +01:00
Mathieu Darse
f3a15fb19f Fix text merging 2015-11-04 12:49:49 +01:00
Mathieu Darse
a666ce75c6 Use equality syntax on facet queries 2015-11-04 11:33:48 +01:00
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
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
Mathieu Darse
4424d43b18 Put flags in ES structure 2015-09-28 20:27:29 +02:00
Mathieu Darse
8b87e94ff2 Add status match DSL 2015-09-14 19:25:44 +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
Mathieu Darse
f0dad09f51 Fix « field to highlight » list fetching 2015-08-31 19:12:25 +02:00