22
if ! grep -q '^bindaddr:' $ROOTDIR/_conf; then
23
cat <<EOF >> $ROOTDIR/_conf
24
# binding address of TCP (0.0.0.0 means every address)
22
28
if ! grep -q '^idleflush:' $ROOTDIR/_conf; then
23
29
cat <<EOF >> $ROOTDIR/_conf
24
30
# idle time to start flushing (in seconds)
61
67
adminemail: webmaster@$(cat /etc/mailname)
70
if ! grep -q '^backupcmd:' $ROOTDIR/_conf; then
71
cat <<EOF >> $ROOTDIR/_conf
72
# command for backup (absolute path of a command)
76
if ! grep -q '^attrindex:' $ROOTDIR/_conf; then
77
cat <<EOF >> $ROOTDIR/_conf
78
# attribute indexes (attribute name and data type)
79
attrindex: @mdate{{!}}seq
80
attrindex: @title{{!}}str
83
if ! grep -q '^wildmax:' $ROOTDIR/_conf; then
84
cat <<EOF >> $ROOTDIR/_conf
85
# maximum number of expansion of wild cards
89
if ! grep -q '^limittextsize:' $ROOTDIR/_conf; then
90
cat <<EOF >> $ROOTDIR/_conf
91
# text size limitation of indexing documents (in kilo bytes)
95
if ! grep -q '^uismlrtune:' $ROOTDIR/_conf; then
96
cat <<EOF >> $ROOTDIR/_conf
97
# tuning parameters for similarity search
98
uismlrtune: 16 1024 4096
101
if ! grep -q '^recvmax:' $ROOTDIR/_conf; then
102
cat <<EOF >> $ROOTDIR/_conf
103
# maximum length of data to receive (in kilobytes)
107
if ! grep -q '^scalepred:' $ROOTDIR/_conf; then
108
cat <<EOF >> $ROOTDIR/_conf
109
# scale prediction (1:small, 2:medium, 3:large, 4:huge)
113
if ! grep -q '^scoreexpr:' $ROOTDIR/_conf; then
114
cat <<EOF >> $ROOTDIR/_conf
115
# score expression (1:void, 2:char, 3:int, 4:asis)
119
if ! grep -q '^uiphraseform:' $ROOTDIR/_conf; then
120
cat <<EOF >> $ROOTDIR/_conf
121
# mode of phrase form (1:usual, 2:simplified, 3:rough, 4:union: 5:intersection)
68
130
tempdb=$(mktemp -d /tmp/estmaster.XXXXXX)
69
estmaster init $tempdb > /dev/null 2>&1
70
estmaster unittest $tempdb > /dev/null 2>&1
131
estcmd gather $tempdb - < /dev/null > /dev/null
79
132
for node in $ROOTDIR/_node/*
81
134
test -d "$node" || continue
82
135
if ! test -d "$node/_kwd"; then
83
cp -a $tempdb/_node/sample1/_kwd $node
136
cp -a $tempdb/_attr $node/_kwd