add --shared
[pylucene.git] / lucene-java-3.4.0 / lucene / contrib / benchmark / conf / basicNRT.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 # based on micro-standard
21 #
22 # modified to use wikipedia sources and index entire docs
23 # currently just used to measure ingest rate
24
25 analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
26 directory=FSDirectory
27
28 work.dir = /x/lucene/wiki.5M
29
30 doc.stored=true
31 doc.body.stored=false
32 doc.tokenized=false
33 doc.body.tokenized=true
34 doc.term.vector=false
35 log.step.AddDoc = 10000
36 log.step.Search = 10000
37 compound = false
38
39 content.source=org.apache.lucene.benchmark.byTask.feeds.LineDocSource
40 content.source.forever = false
41 file.query.maker.file = queries.txt
42
43 query.maker=org.apache.lucene.benchmark.byTask.feeds.FileBasedQueryMaker
44 docs.file = /x/lucene/enwiki-20090306-lines-1k-fixed.txt
45
46 # task at this depth or less would print when they start
47 task.max.depth.log=2
48
49 log.queries=true
50
51 # -------------------------------------------------------------------------------------
52
53 # Open a writer
54 OpenIndex
55 {
56   # Get a new near-real-time reader, once per second:
57   NearRealtimeReader(1.0) &
58
59   # Warm
60   Search
61
62   # Index with 2 threads, each adding 100 docs per sec
63   [ "Indexing" { AddDoc > : * : 100/sec ] : 2 &
64
65   # Redline search (from queries.txt) with 4 threads
66   [ "Searching" { Search > : * ] : 4 &
67
68   # Wait 60 sec, then wrap up
69   Wait(5.0)
70 }
71 CloseReader
72
73 # Don't keep any changes, so we can re-test on the same index again
74 RollbackIndex
75
76 RepSumByPref Indexing
77 RepSumByPref Searching
78 RepSumByPref NearRealtimeReader
79
80