Commit Graph

76 Commits

Author SHA1 Message Date
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
Mathieu Darse
171eec6dcb Proper date fields lazy-loading 2015-03-30 17:41:12 +02:00
Mathieu Darse
99e62f7530 QueryParser -> QueryCompiler 2015-03-30 16:17:40 +02: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
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
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
Mathieu Darse
0ec75c85b3 Add collection facet 2015-03-12 19:47:31 +01:00
Benoît Burnichon
118bb2f03c Some fixup for ES instance 2015-03-11 15:22:20 +01:00
Mathieu Darse
3599b05950 Some tidying / cleanup 2015-03-10 12:02:24 +01:00
Nicolas Le Goff
4f66588600 Add dynamic facets query 2015-02-26 12:28:22 +01:00
Mathieu Darse
a84602f896 Move concept injection into query parser 2015-02-25 16:12:58 +01:00
Mathieu Darse
efef09e435 We don't always want to explicitly restrict caption fields 2015-02-25 16:12:39 +01:00
Mathieu Darse
fe7e63b3d7 QuotedTextNode don't inherit anymore from TextNode
- Quoted text do not hit the thesaurus anymore
- getTextNodes() was misleading, renamed to getTermNodes()
2015-02-25 12:22:52 +01:00
Nicolas Le Goff
add59cb2f7 Set default sort to relevance if sort option is not provided 2015-02-20 17:27:00 +01:00
Nicolas Le Goff
111755fa9b Refactor status display 2015-02-19 15:14:23 +01:00
Mathieu Darse
47e9605aab Merge pull request #28 from mdarse/reindexing-events
Record lifecycle events and handling
2015-02-19 15:03:43 +01:00
Mathieu Darse
3f440d2184 Throw on legacy search engine indexing requests 2015-02-18 11:55:21 +01:00
Nicolas Le Goff
b4a2796200 Reduce call to ACL's 2015-02-11 20:20:02 +01:00
Nicolas Le Goff
a01bf29c5b Add elasticsearch reindex events 2015-01-26 16:04:23 +01:00
Mathieu Darse
189bdf3402 Merge pull request #13 from nlegoff/fix-sort
Fix elastic search sort query
2015-01-20 18:56:11 +01:00
Mathieu Darse
dc2c9f8c7f Refactor thesaurus query build
- Look for text nodes and infer the concepts behind term using thesaurus
- Use value objects for thesaurus terms and concepts
- Pass a QueryContext holding allowed fields and locales informations when building the Elasticsearch query
- Change type hinting and name of query building method on nodes
- Remove unused method Node#isFullTextOnly()
- Move getFieldsStructure from RecordIndexer to RecordHelper for reusing field structure in SearchEngine
2015-01-20 15:05:15 +01:00
Mathieu Darse
f283bf01d1 WIP Improve thesaurus relevency by filtering low score 2015-01-20 14:44:00 +01:00
Nicolas Le Goff
9788a2a812 Fix elastic search sort query 2015-01-05 12:46:31 +01:00
Nicolas Le Goff
a0b3cb3a20 Fix acl filter query 2015-01-02 11:20:17 +01:00
Nicolas Le Goff
7cc204f2ba Apply ACL restriction filters for a search query 2014-12-30 19:32:46 +01:00
Nicolas Le Goff
15a03f647d Update according to @mdarse comments 2014-12-04 11:48:09 +01:00
Nicolas Le Goff
392ff21d51 Clean 2014-12-04 11:48:08 +01:00
Nicolas Le Goff
d666880ada Use ES hydrator to pouplate record from ES query 2014-12-04 11:48:05 +01:00
Mathieu Darse
d1a4f05547 Merge branch 'hoa-compiler' into elastic-indexer
Conflicts:
	lib/Alchemy/Phrasea/SearchEngine/Elastic/ElasticSearchEngine.php
2014-12-04 11:43:17 +01:00
Mathieu Darse
e53e92da63 Plug new parser on search engine 2014-12-03 19:35:10 +01:00
Damien Alexandre
f2e3458567 Tests are running \o/ + sorting should be better 2014-11-21 19:05:38 +01:00
Damien Alexandre
f5f575dcad Improve pertinency in results matching a partial path 2014-11-07 18:24:54 +01:00
Damien Alexandre
a69ba34393 Improve query fields path by boosting some signals
Also remove paths with very low score
2014-11-07 12:07:04 +01:00
Mathieu Darse
532f240ffd Parse tree visitor to build ES query 2014-11-06 19:11:06 +01:00
Mathieu Darse
3ec520ed11 New query parser between Hoa compiler and search engine 2014-11-06 18:37:53 +01:00
Mathieu Darse
3266d8d9ac WIP on PP grammar 2014-10-22 11:15:56 +02:00
Damien Alexandre
e88a219cb6 Increase the number of aggr for debug 2014-10-14 19:33:16 +02:00
Damien Alexandre
f196155049 Fix PHRAS-322, add result debug informations (aggregations) 2014-10-14 18:51:02 +02:00
Damien Alexandre
3438295ca3 Remove serializer from dependencies and fix index time display 2014-10-14 16:27:41 +02:00
Damien Alexandre
437f90fd66 Rewrite the way we handle base_id, can now works with more than 1 2014-10-14 14:54:50 +02:00
Damien Alexandre
52843f6ff1 Fix multi base search with fixed filters 2014-10-14 11:26:07 +02:00
Damien Alexandre
403c83b462 Fix indexing single record on post upload 2014-10-13 19:17:20 +02:00
Damien Alexandre
eb7914816d WIP on singleRecord indexer and fix error on path 2014-10-13 19:05:09 +02:00
Damien Alexandre
52978e6239 More path to query 2014-10-13 17:07:32 +02:00
Damien Alexandre
d693e1fe4a Add record_type story or record and fix the filter 2014-10-07 18:06:09 +02:00