add similarity results for persons search

This commit is contained in:
Mat
2018-11-06 15:12:13 +01:00
parent 9d8d330eb3
commit 7be2d408f9
5 changed files with 252 additions and 2 deletions

View File

@@ -11,6 +11,17 @@ services:
tags:
- { name: chill.search, alias: 'person_regular' }
Chill\PersonBundle\Search\SimilarityPersonSearch:
arguments:
- "@doctrine.orm.entity_manager"
- "@security.token_storage"
- "@chill.main.security.authorization.helper"
- "@chill_main.paginator_factory"
calls:
- ['setContainer', ["@service_container"]]
tags:
- { name: chill.search, alias: 'person_similarity' }
Chill\PersonBundle\Search\SimilarPersonMatcher:
arguments:
$em: '@Doctrine\ORM\EntityManagerInterface'

View File

@@ -68,4 +68,5 @@ Reset: 'Remise à zéro'
'Person details': 'Détails de la personne'
Create an accompanying period: Create an accompanying period
'Create': Create
'Create': Create
Similar persons: Similar persons

View File

@@ -201,3 +201,4 @@ Aggregate by age: Aggréger par âge
Calculate age in relation to this date: Calculer l'âge par rapport à cette date
Group people by country of birth: Aggréger les personnes par pays de naissance
Similar persons: Personnes similaires

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
<h2>{{ 'Person search results'|trans }}</h2>
<h2>{{ title|default('Person search results')|trans }}</h2>
<p>
{{ '%total% persons matching the search pattern:'|transchoice( total, { '%total%' : total}) }}