Fix search2?
This commit is contained in:
parent
370447d355
commit
46eacc94da
1 changed files with 15 additions and 3 deletions
|
@ -73,9 +73,21 @@ def cherche(**kwargs):
|
||||||
if field_relevant("generique"):
|
if field_relevant("generique"):
|
||||||
#print("Filtre generique", kwargs['generique'])
|
#print("Filtre generique", kwargs['generique'])
|
||||||
dsl = dsl.query(
|
dsl = dsl.query(
|
||||||
"match",
|
"multi_match",
|
||||||
_all={"query": kwargs["generique"],
|
query = kwargs["generique"],
|
||||||
"fuzziness": "auto"})
|
fuzziness = "auto",
|
||||||
|
fields = [
|
||||||
|
'sujet^3',
|
||||||
|
'encadrants',
|
||||||
|
'type_stage',
|
||||||
|
'niveau_scol',
|
||||||
|
'structure',
|
||||||
|
'date_*',
|
||||||
|
"lieux.*^2",
|
||||||
|
"auteur.nom^2",
|
||||||
|
"thematiques^2",
|
||||||
|
"matieres"
|
||||||
|
])
|
||||||
use_dsl = True
|
use_dsl = True
|
||||||
|
|
||||||
# Sujet -> Recherche dan les noms de sujets et les thématiques
|
# Sujet -> Recherche dan les noms de sujets et les thématiques
|
||||||
|
|
Loading…
Reference in a new issue