Commit Graph

394 Commits

Author SHA1 Message Date
Mathieu Darse
c6075fcc1a Thesaurus prefixes in field structure
Also fixes candidates collected from all string fields
2015-04-22 20:46:37 +02:00
Mathieu Darse
033faa1b9a Use mapping type constants 2015-04-15 18:28:12 +02:00
Mathieu Darse
c813eee73f Add equality expressions 2015-04-15 18:28:12 +02:00
Mathieu Darse
4785fbc8ed Fix indexing issue with date fields
- Date and number types sanitization
- Remove `RecordIndexer` dependency on `ElasticSearchEngine`
- Move some sanitization from `RecordIndexer` to `RecordHelper`
2015-04-15 18:28:12 +02:00
Mathieu Darse
fcc3f1ba24 Fix range query field 2015-04-15 18:28:12 +02:00
Mathieu Darse
34a88d9ac6 Simpler range AST constructors 2015-04-15 18:23:36 +02:00
Mathieu Darse
b3f9dd4ca2 Implement inequality in query visitor & fix IN expressions 2015-04-15 18:23:36 +02:00
Benoît Burnichon
6d4fcbbe9a Refactor SearchEngineController 2015-04-13 17:44:44 +02:00
Benoît Burnichon
e5c1cab623 Merge pull request #1347 from mdarse/facets-strict-match
Strict facet matching
2015-04-10 17:29:46 +02:00
Mathieu Darse
38465a591f Strict facet matching
Clicking on a facet value on the left pane now return the expected result count.

This commit implement a new "raw" matcher. It can be used like
`r"some raw value"`. It operate on the the `.raw` multi-field and skips all
analysis.
Escaping `"` is supported by prepending a backslash `\"`. You can also escape
the escaping character `\` by doubling it (`\\`).

Adds a new `ContextAbleInterface` to differenciate matcher supporting an
optional context from those who can't.

Fixes an issue with `QueryContext::narrowToFields()` ignoring passed fields.
2015-04-09 20:32:13 +02:00
Jean-Yves Gaulier
56fa78e0ef wip : removed Sphinx and Phrasea search engines 2015-04-08 18:37:11 +02:00
Nicolas Maillat
8a977db621 Audio sample rate may not be an integer. 2015-04-02 18:52:41 +02:00
Benoît Burnichon
7af53aaef4 Merge pull request #1328 from mdarse/qp-ina-oreo
Parsing of INA/OREO queries
2015-03-30 17:53:15 +02:00
Benoît Burnichon
8008271964 Merge pull request #1330 from mdarse/array-unique-php55
Proper date fields lazy-loading
2015-03-30 17:47:18 +02:00
Mathieu Darse
171eec6dcb Proper date fields lazy-loading 2015-03-30 17:41:12 +02:00
Mathieu Darse
a9a1d44447 Fix term/text/context nodes merging 2015-03-30 16:30:12 +02:00
Mathieu Darse
fc6b61e159 Fix quoted text node generation 2015-03-30 16:30:12 +02:00
Mathieu Darse
99e62f7530 QueryParser -> QueryCompiler 2015-03-30 16:17:40 +02:00
Mathieu Darse
470804659b Use a single transliterator to do ASCII folding
Move in string utilities too.
2015-03-30 14:46:43 +02:00
Benoît Burnichon
a814208a6b Merge pull request #1315 from mdarse/cross-fields-multi-word-query
Working cross-fields queries with multiple words (without operators)
2015-03-24 18:42:13 +01:00
Mathieu Darse
771aa5b765 Working cross-fields queries with multiple words (without operators)
- Index the full content of a record in a (private_)content_all field
- Handle all fields wide search as a special-case (drastically simplify queries)
- QueryContext doesn't take all allowed fields anymore, but whether private
fields are allowed or not. Since private fields are namespaced, field level
restriction is not needed anymore.
2015-03-24 17:52:30 +01:00
Mathieu Darse
f2f29c4290 Command to update index mapping 2015-03-23 19:12:59 +01:00
Mathieu Darse
a3dae412f1 Index MIME type 2015-03-19 19:00:56 +01:00
Benoît Burnichon
31d5237b5d Merge pull request #1303 from bburnichon/feature/use-phpunit4
use phpunit4
2015-03-19 16:57:00 +01:00
Benoît Burnichon
5d651fc782 Merge pull request #1308 from mdarse/facets-smart-escaping
Smart facet value escaping (the return)
2015-03-19 16:46:44 +01:00
Mathieu Darse
679106d226 Fix typos and check-in Escaper 2015-03-19 16:41:53 +01:00
Benoît Burnichon
8508c81e2d Merge pull request #1305 from mdarse/facets-smart-escaping
Smart facet value escaping
2015-03-19 15:35:57 +01:00
Mathieu Darse
59d2c86a2a Clean ElasticSearchEngine 2015-03-19 13:44:24 +01:00
Mathieu Darse
b1a03ae566 Smart facet value escaping 2015-03-19 13:42:04 +01:00
Mathieu Darse
67dcd09a39 Add "collection:" query support 2015-03-17 19:45:24 +01:00
Mathieu Darse
d766dccfff Remove useless dynamic search dispatch 2015-03-17 19:45:24 +01:00
Mathieu Darse
4419b1b3a7 Refactor facets handling 2015-03-17 19:45:14 +01:00
Benoît Burnichon
cdc7f743d5 Remove staticExpects to work with PHPUnit ~4.5 2015-03-17 13:08:27 +01:00
Benoît Burnichon
6c825f4582 Add logger to Elastic SearchEngine 2015-03-16 13:52:28 +01:00
Benoît Burnichon
ef4b61229e SearchEngineOptions returns filtered array collection
PHPUnit 3.7 hangs out on comparing objects with different keys.
Change test method to compare a single object.
2015-03-13 11:13:04 +01:00
Nicolas Le Goff
973d7f68a2 Fix subdef path indexing 2015-03-12 20:10:13 +01:00
Nicolas Le Goff
315e780fb9 Merge pull request #1298 from mdarse/facet-collections
Add collection facet
2015-03-12 19:49:05 +01:00
Mathieu Darse
0ec75c85b3 Add collection facet 2015-03-12 19:47:31 +01:00
Mathieu Darse
03a4029614 Lower min score since new multi field raised TF 2015-03-12 19:14:22 +01:00
Mathieu Darse
71c7fd8adb Enhance thesaurus strict mode 2015-03-12 19:13:13 +01:00
Nicolas Le Goff
c5a94e6eed Merge pull request #1267 from bburnichon/feature/insight-fixes
[WIP] Insight fixes
2015-03-12 17:13:12 +01:00
Nicolas Le Goff
d80e39270d Merge pull request #1295 from jygaulier/MINOR-FIX-1
minor fix
2015-03-12 17:12:44 +01:00
Nicolas Le Goff
0da5d16aeb Merge pull request #1294 from mdarse/candidates-empty
Handle case when cterms XML doesn't exist yet
2015-03-12 17:12:39 +01:00
Jean-Yves Gaulier
ff83ee8cb0 minor fix 2015-03-12 17:08:39 +01:00
Mathieu Darse
fc3c81f350 Handle case when cterms XML doesn't exist yet 2015-03-12 16:41:25 +01:00
Benoît Burnichon
135b2fcaff Remove now useless dependency 2015-03-12 15:08:25 +01:00
Nicolas Le Goff
743dda54b6 Merge pull request #1291 from mdarse/query-and-operator
Use conjonction for coalesced words in text nodes
2015-03-12 13:28:13 +01:00
Mathieu Darse
99e61d6368 Use conjonction for coalesced words in text nodes 2015-03-12 11:41:19 +01:00
Nicolas Le Goff
ae26a9563f Merge pull request #1285 from mdarse/es-bulk-throw-error
Throw on failing bulk operation item
2015-03-11 21:11:17 +01:00
Mathieu Darse
3974e24888 Fix indexing issue after first candidate term in a new field 2015-03-11 17:10:20 +01:00