Commit Graph

59 Commits

Author SHA1 Message Date
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
Damien Alexandre
3e5e802bf9 Only sort on score by default 2014-10-07 17:03:45 +02:00
Damien Alexandre
73b85e3953 PHRAS-233 Set record flag status, fix base id filters 2014-10-07 15:57:09 +02:00
Damien Alexandre
12a22b105e Restore the true filters on status and all 2014-10-07 12:46:59 +02:00
Damien Alexandre
a246231e09 Add score of the terms search as boost for the record search 2014-10-06 17:30:46 +02:00
Damien Alexandre
f495045125 Make the search works without paths too 2014-10-06 16:24:48 +02:00
Damien Alexandre
fe2e694216 Add stopwatch listener to monitor populate time 2014-10-06 15:49:33 +02:00
Damien Alexandre
48928b60c2 PHRAS-302 Add concept path to records 2014-10-06 13:56:51 +02:00
Damien Alexandre
4a09e9d52c The thesaurus is only asked on fulltext search only mode 2014-09-23 19:20:14 +02:00
Damien Alexandre
5c1a08285a Fix grammar to accept accents and other query complexities 2014-09-23 18:16:41 +02:00
Damien Alexandre
22627d328e Start querying the thesaurus, bring back synomyns and paths 2014-09-23 15:23:44 +02:00
Damien Alexandre
1b8ae26c64 Improve jison script, run the update parser 2014-09-22 16:58:50 +02:00
Damien Alexandre
4a051e4e42 Plug the query parsed with the query params and execute 2014-09-22 13:18:32 +02:00
Damien Alexandre
35be34db50 Merge remote-tracking branch 'origin/master' into elastic-indexer 2014-09-22 11:59:11 +02:00
Mathieu Darse
de8e9e3bfc Refactor search engine provider 2014-09-10 16:45:22 +02:00
Damien Alexandre
d532d5fb72 Refactoring, add a RecordIndexer, more indexing logic, ping @mdarse 2014-09-09 12:05:37 +02:00
Damien Alexandre
525f80a435 Fix the type filter to use the real _type! 2014-09-08 18:51:23 +02:00
Damien Alexandre
f9a0dd4152 Configure elasticsearch logger in dev environment 2014-09-08 18:11:42 +02:00