Esempio n. 1
0
func CommitLoop() {
	adCommit()
	zoneInfoCommit()
	dnf.DisplayDocs()
	for {
		time.Sleep(1 * time.Minute)
		adCommit()
		zoneInfoCommit()
		dnf.DisplayDocs()
	}
}
Esempio n. 2
0
func dnf_test_main() {
	//dnf.Init()
	//addDocsRace()

	dnf.DisplayDocs()

	fmt.Println()
	dnf.DisplayConjs()

	fmt.Println()
	dnf.DisplayAmts()

	fmt.Println()
	dnf.DisplayTerms()

	fmt.Println()
	dnf.DisplayConjRevs()

	fmt.Println()
	dnf.DisplayConjRevs2()

	fmt.Println()
	//conds := []dnf.Cond{{"zone", "1"}}
	//conds := []dnf.Cond{{"state", "CA"}, {"age", "4"}}
	//conds := []dnf.Cond{{"gender", "M"}}
	// resultDocs, err := dnf.Search(conds)
	// if err != nil {
	// 	fmt.Println("search error: ", err)
	// 	return
	// }
	// s := ""
	// for _, docid := range resultDocs {
	// 	s += strconv.Itoa(docid) + " -> "
	// }
	// fmt.Println("conds: ", conds)
	// fmt.Println("found doc: ", s)
}