Améliorations recherche

This commit is contained in:
François Pelletier 2025-01-02 23:04:35 -05:00
parent 731d9bce6d
commit ad0c34fcff
10 changed files with 317 additions and 305 deletions

View file

@ -1,4 +1,4 @@
import utils.config as config
from import_data.utils import config
wordpress_names = config.WORDPRESS_NAMES.split(",")
@ -13,5 +13,5 @@ reseau_social_data = [{"nom": "LinkedIn",
{"nom": "FacebookBusiness",
"repertoires": ["posts"]},
{"nom": "Podcast",
"repertoires": ["shownotes", "audio"]}
"repertoires": ["shownotes", "audio", "feeds"]}
]

View file

@ -6,10 +6,10 @@ load_dotenv()
client = typesense.Client({
'nodes': [{
'host': 'localhost',
'port': '8108',
'protocol': 'http'
'host': os.getenv('TYPESENSE_HOST','localhost'),
'port': os.getenv('TYPESENSE_PORT','8108'),
'protocol': os.getenv('TYPESENSE_PROTOCOL','http'),
}],
'api_key': os.getenv('TYPESENSE_API_KEY'),
'connection_timeout_seconds': 2
'connection_timeout_seconds': 10
})