Debian Codegraph @

lucene/benchmark/conf/spatial.alg

raw
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 # Spatial search benchmark
19 # In order to use this, you'll need to first run 'ant geonames-files'.
20 # You may need more memory when running this: -Dtask.mem=1000M
21 # For docs on what options are available, see the javadocs.
22
23 ### Spatial Context, Grid, Strategy config
24 doc.maker=org.apache.lucene.benchmark.byTask.feeds.SpatialDocMaker
25 # SpatialContext: see SpatialContextFactory.makeSpatialContext
26 #spatial.spatialContextFactory=org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
27 #spatial.geo=true
28 #spatial.distCalculator=haversine
29 #spatial.worldBounds=...
30 # Spatial Strategy: composite | rpt | ...
31 spatial.strategy=rpt
32 # Spatial Grid: (PrefixTree) see SpatialPrefixTreeFactory.makeSPT
33 #spatial.prefixTree=geohash (or quad)
34 spatial.prefixTree=quad
35 #27 quad or 11 geohash are very close
36 spatial.maxLevels=27
37 #spatial.maxDistErr (in degrees) to compute maxLevels -- defaults to 1 meter's worth
38 # RecursivePrefixTreeStrategy:
39 #spatial.docPointsOnly=true
40 #spatial.distErrPct=0.025
41 #spatial.pruneLeafyBranches=true
42
43 #codec.postingsFormat=Memory or (Direct)
44
45 ### Source & Doc
46 content.source=org.apache.lucene.benchmark.byTask.feeds.LineDocSource
47 line.parser=org.apache.lucene.benchmark.byTask.feeds.GeonamesLineParser
48 docs.file=work/geonames/allCountries.txt
49 doc.tokenized=false
50 # Next 3 props convert doc points to circles with a random radius and then optionally bbox'es
51 #doc.spatial.radiusDegrees=0.0
52 #doc.spatial.radiusDegreesRandPlusMinus=0.0
53 #doc.spatial.bbox=false
54
55 ### Directory
56 directory=FSDirectory
57 #directory=ByteBuffersDirectory
58 compound=false
59 merge.factor=10
60 ram.flush.mb=64
61
62 ### Query
63 query.maker=org.apache.lucene.benchmark.byTask.feeds.SpatialFileQueryMaker
64 query.file=work/geonames/allCountries.txt
65 query.file.line.parser=org.apache.lucene.benchmark.byTask.feeds.GeonamesLineParser
66 query.file.maxQueries=1000
67 # Next 3 props convert query points to circles with a random radius and then optionally bbox'es
68 query.spatial.radiusDegrees=0
69 query.spatial.radiusDegreesRandPlusMinus=3
70 query.spatial.bbox=false
71
72 #query.spatial.prefixGridScanLevel=scanLevel:-1:-2:-3:-4
73 #query.spatial.composite.optimizePredicates=optPred:true:false
74
75 query.spatial.score=false
76 #query.spatial.predicate=Intersects
77 # (defaults to spatial.distErrPct)
78 #query.spatial.distErrPct=0.0
79
80 ### Misc
81
82 log.step.AddDoc = 100000
83 task.max.depth.log=1
84
85 # -------------------------------------------------------------------------------------
86
87 { "Populate"
88 ResetSystemErase
89 CreateIndex
90 #1 million docs
91 [{ "MAddDocs" AddDoc} : 250000] : 4
92 ForceMerge(1)
93 CommitIndex
94 CloseIndex
95
96 RepSumByPref MAddDocs
97 } : 1
98 #set above round to 0 on subsequent runs if not changing indexing but experimenting with search
99
100 OpenReader
101 {"WarmJIT" Search > : 4000
102 CloseReader
103
104 { "Rounds"
105 ResetSystemSoft
106
107 OpenReader
108 Search
109 {"RealQueries" Search > : 2000
110 CloseReader
111
112 NewRound
113 } : 1
114
115
116 #RepSumByName
117 RepSumByPrefRound RealQueries
118
119