Files
fdn2/docs/tech/install.memo
T

41 lines
1.9 KiB
Plaintext

modificare ".build.conf" nella root del progetto per impostare i path
modificare l path nello script di crontab in /oth/OSConfig
su mongo se non funzionano i text index:
use admin
db.runCommand({
setParameter: 1,
textSearchEnabled: 1
});
Oppure nel file di configurazione di mongo aggiungere la riga
setParameter=textSearchEnabled=true
INDEX DA CREARE
///// SBAGLIATO db.notizia.ensureIndex({"about.author":"text",titolo:"text",sottotitolo:"text",testo:"text"},{default_language: "italian"})
db.notizia.ensureIndex({"about.author": "text",sottotitolo: "text",testo: "text",titolo: "text"},{weights: {"about.author": 1,sottotitolo: 7,testo: 5,titolo: 10},name: "notiziaDetails"})
db.administrators.ensureIndex({nome:"text",cognome:"text",email:"text"},{default_language: "italian"})
db.mail.ensureIndex({recipient:"text",subject:"text",body:"text"},{default_language: "italian"})
db.users.ensureIndex({nome:"text",cognome:"text",email:"text"},{default_language: "italian"})
db.banner.ensureIndex({customer:"text",link:"text"},{default_language: "italian"})
db.commenti.ensureIndex({titolo:"text",testo:"text"},{default_language: "italian"})
db.notizia.createIndex({"shortenedUrl": 1})
db.notizia.createIndex({"about.data": 1, "status":1, "isAnsa":1,"about.lastEdit": 1})
db.statistics.createIndex({statType:1,deleted:1,date:1})
db.statistics.createIndex({"user.id":1})
db.statistics.createIndex({"stat.type":1,"content.position":1})
db.notizia.ensureIndex({"about.author": "text",sottotitolo: "text",testo: "text",titolo: "text"},{weights: {"about.author": 1,sottotitolo: 7,testo: 5,titolo: 10},name: "notiziaDetails"})
db.article_stats.ensureIndex({ "notizia": 1, "time": 1, "deleted": 1 }, {name: "quick_upsert"})
db.banner_stats.ensureIndex({ "banner": 1, "time": 1, "deleted": 1 }, {name: "quick_upsert"})
db.pageview_stats.ensureIndex({ "time": 1, "page": 1, "deleted": 1, }, {name: "quick_upsert"})