PyLucene 3.4.0-1 import
[pylucene.git] / lucene-java-3.4.0 / lucene / contrib / benchmark / conf / deletepercent.alg
1 #/**
2 # * Licensed to the Apache Software Foundation (ASF) under one or more
3 # * contributor license agreements.  See the NOTICE file distributed with
4 # * this work for additional information regarding copyright ownership.
5 # * The ASF licenses this file to You under the Apache License, Version 2.0
6 # * (the "License"); you may not use this file except in compliance with
7 # * the License.  You may obtain a copy of the License at
8 # *
9 # *     http://www.apache.org/licenses/LICENSE-2.0
10 # *
11 # * Unless required by applicable law or agreed to in writing, software
12 # * distributed under the License is distributed on an "AS IS" BASIS,
13 # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # * See the License for the specific language governing permissions and
15 # * limitations under the License.
16 # */
17 # -------------------------------------------------------------------------------------
18 # multi val params are iterated by NewRound's, added to reports, start with column name.
19
20 analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
21 directory=FSDirectory
22 #directory=RamDirectory
23
24 doc.stored=true
25 doc.tokenized=true
26 doc.term.vector=false
27 log.step=500
28
29 docs.dir=reuters-out
30 #docs.dir=reuters-111
31
32 #doc.maker=org.apache.lucene.benchmark.byTask.feeds.SimpleDocMaker
33 #doc.maker=org.apache.lucene.benchmark.byTask.feeds.ReutersDocMaker
34 content.source=org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource
35
36 #query.maker=org.apache.lucene.benchmark.byTask.feeds.SimpleQueryMaker
37 query.maker=org.apache.lucene.benchmark.byTask.feeds.ReutersQueryMaker
38 deletion.policy=org.apache.lucene.index.NoDeletionPolicy
39
40 # task at this depth or less would print when they start
41 task.max.depth.log=2
42
43 log.queries=true
44 # -------------------------------------------------------------------------------------
45
46 { "Rounds"
47
48     ResetSystemErase
49
50     { "Populate"
51         -CreateIndex
52         { "MAddDocs" AddDoc > : 1000
53         CommitIndex(original)
54         CloseIndex
55     }
56
57     OpenReader(false,original)
58     DeleteByPercent(5)
59     { "SearchSameRdr5" Search > : 500
60     FlushReader(5%)
61     CloseReader 
62     PrintReader(5%)
63
64     OpenReader(false,5%)
65     DeleteByPercent(10)
66     { "SearchSameRdr10" Search > : 500
67     FlushReader(10%)
68     CloseReader 
69     PrintReader(10%)
70
71     OpenReader(false,10%)
72     DeleteByPercent(20)
73     { "SearchSameRdr20" Search > : 500
74     FlushReader(20%)
75     CloseReader 
76     PrintReader(20%)
77     
78     OpenReader(false,20%)
79     DeleteByPercent(60)
80     { "SearchSameRdr60" Search > : 500
81     FlushReader(60%)
82     CloseReader 
83     PrintReader(60%)
84     
85     OpenReader(false,60%)
86     DeleteByPercent(75)
87     { "SearchSameRdr75" Search > : 500
88     FlushReader(75%)
89     CloseReader 
90     PrintReader(75%)
91
92     # Test lower percentage of deletes (so undeleteAll is used)
93     OpenReader(false,75%)
94     DeleteByPercent(7)
95     { "SearchSameRdr7" Search > : 500
96     FlushReader(7%)
97     CloseReader 
98     PrintReader(7%)
99
100     NewRound
101
102 } : 1
103
104 RepSumByName
105 RepSumByPrefRound MAddDocs