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
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
Mathieu Darse
9d6a428208
Remove concept queries wrapping method
2015-08-26 19:29:26 +02:00
Mathieu Darse
e058814638
Test TextNode with private fields and concepts on private fields
2015-08-26 19:29:26 +02:00
Benoît Burnichon
b1bdd73662
Merge pull request #1478 from mdarse/fix-concept-query-builder
...
Fix concept query builder & private field wrapping
2015-08-26 18:07:58 +02:00
Benoît Burnichon
065084818b
Merge pull request #1474 from mdarse/facet-values-size-wording
...
Simpler facet handling in ES structure
2015-08-26 18:06:09 +02:00
Jean-Yves Gaulier
09fde387d7
#PHRAS-669 #time 1d
...
fix: the default sort field/direction (defined as relevance/desc for es) is applied at startup & reset button.
add : default direction
todo in 4.0.1 : allow to change in config/admin ?
2015-08-26 17:15:43 +02:00
Mathieu Darse
c596914ab9
Fix concept query builder & private field wrapping
...
Concept queries on private fields where adding a « must » clause to
restrict match on certain collections only. Boolean queries do not
enforce one « should » clause match at least once a « must » clause is
added to it.
To make queries on private fields more robust & performants, these are
now wrapped in a filtered query with a collection filter.
2015-08-26 15:21:02 +02:00
jygaulier
9eac874d71
Merge pull request #1477 from jygaulier/PHRAS-230_adv-search-fields
...
#PHRAS-230 #time 2h
2015-08-25 18:03:53 +02:00
Jean-Yves Gaulier
2b1774d994
#PHRAS-230 #time 2h
...
fix: the field(s) selected in adv-search are applied to whole query.
nb : may return error message if query + filter is nonsense, ex:
Query="foo IN Title" + Filter="Keywords"
2015-08-25 16:29:47 +02:00
Jean-Yves Gaulier
854a180b0c
#PHRAS-568 #time 5m
...
- copy fix from 3.8
2015-08-24 18:56:27 +02:00
Mathieu Darse
7e8a4a53a3
Simpler facet handling in ES structure
...
- Single property for facet settings in Field, we can’t have a limit
with disabled faceting.
- Fixes bug when fields having incompatible limit but are still merged together.
- Use constants for special limit values (i.e. no limit)
2015-08-24 16:07:53 +02:00
Mathieu Darse
d26330a17f
Fix date validation, range query & equality operator
2015-08-24 11:26:46 +02:00
Benoît Burnichon
453cb0453d
Merge pull request #1472 from jygaulier/PHRAS-668_NBR-FACETS
...
PHRAS-668
2015-08-20 11:24:10 +02:00
Jean-Yves Gaulier
72bb1877a7
#PHRAS-668 #time 1d
...
- fix: facets number (admin/field) is now used by prod.
- add: query/es : removed useless & pack clauses on status masks -> shortest (fastest ?) query
2015-08-20 11:08:55 +02:00
Jean-Yves Gaulier
01dd0ad88a
#PHRAS-610 #time 1m
...
cs to force travis rebuild...
2015-08-18 18:45:00 +02:00
Jean-Yves Gaulier
ef7de07b1a
#PHRAS-610 #time 10h
2015-08-18 16:50:55 +02:00
Jean-Yves Gaulier
41758fe341
#PHRAS-622 #time 5m
...
cs to fix errors in phpstorm
2015-08-17 15:18:33 +02:00
Jean-Yves Gaulier
3ac83408fc
#PHRAS-610 #time 2d
...
WIP
2015-08-17 15:18:33 +02:00
Jean-Yves Gaulier
d984938614
#PHRAS-622 #time 3h
...
add 'lenient' to prevent es errors when parsing invalid dates
cs
2015-07-29 16:39:19 +02:00
Mathieu Darse
5bbd4bfe33
Fix values lookup on thesaurus hydrator
2015-07-24 18:13:18 +02:00
Benoît Burnichon
81cce5efa2
Merge pull request #1456 from mdarse/fix-regular-text-search
...
Fix query builds to only hit compatible fields
2015-07-24 17:05:50 +02:00
Mathieu Darse
3569d47467
Fix query builds to only hit compatible fields
2015-07-24 15:28:21 +02:00
Benoît Burnichon
3a8e147db5
Merge pull request #1455 from mdarse/fix-number-field-search
...
Remove unused QueryContext#getRawFields()
2015-07-24 12:49:52 +02:00
Benoît Burnichon
7e76236a06
Merge pull request #1453 from mdarse/invalid-field-query
...
Handle queries with invalid fields
2015-07-24 11:26:57 +02:00
Benoît Burnichon
b558cf9de3
Merge pull request #1452 from mdarse/fix-number-field-search
...
Fix number field search
2015-07-23 22:11:54 +02:00
Mathieu Darse
afbb0e3696
Handle queries with invalid fields
...
They lead to zero result instead of all results from elasticsearch.
2015-07-23 19:11:12 +02:00
Mathieu Darse
af129601e7
Remove unused QueryContext#getRawFields()
2015-07-23 19:03:34 +02:00
Mathieu Darse
a59c42980c
Fix facets on non string fields & fix raw with "in" query
2015-07-23 18:41:10 +02:00
Mathieu Darse
a31442368b
Fix number field search
...
Search with non numeric content will not hit number field (it breaks elasticsearch and is useless anyway)
- Rename QueryHelper::buildPrivateFieldQueries() to wrapPrivateFieldQuery().
- Signature changed too, the third parameter is dropped an QueryContext is replaced by an array of Field.
- Query builder closure is now passed an array of Field, not of index field names.
- Remove Field::toConceptPathIndexFieldArray() because method name was beyond understanding (and also because it wasn't needed anymore)
- Various AST node types have changed due to previous API changes
2015-07-23 17:39:11 +02:00
Florian BLOUET
1671590c1c
fix query counter display in seconds
2015-07-23 14:33:43 +02:00
Benoît Burnichon
0367b9afac
Merge pull request #1445 from jygaulier/PHRAS-606_story-thumbnails
...
PHRAS-606
2015-07-21 20:23:08 +02:00