concept algorithm in category lucene

This is an excerpt from Manning's book Lucene in Action, Second Edition.
The PorterStemFilter is shown in the class hierarchy in figure 4.5, but it isn’t used by any built-in analyzer. It stems words using the Porter stemming algorithm created by Dr. Martin Porter, and it’s best defined in his own words:
The Porter stemming algorithm (or “Porter stemmer”) is a process for removing the commoner morphological and inflexional endings from words in English. Its main use is as part of a term normalisation process that is usually done when setting up Information Retrieval systems.[4]
The contrib/benchmark module is a useful framework for running repeatable performance tests. By creating a short script, called an algorithm (file.alg), you tell the benchmark module what test to run and how to report its results. In chapter 11 we saw how to use benchmark for measuring Lucene’s indexing performance. In this appendix we delve into more detail. Benchmark is quite new and will improve over time, so always check the Javadocs. The package-level Javadocs in the byTask sub-package have a good overview.
Working Directory: /lucene/clean/contrib/benchmark/work Running algorithm from: /lucene/clean/contrib/benchmark/eg1.alg ------------> config properties: analyzer = org.apache.lucene.analysis.standard.StandardAnalyzer compound = false content.source = org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource content.source.forever = false directory = FSDirectory doc.stored = true doc.term.vectors = true work.dir = work ------------------------------- ------------> algorithm: Seq { Rounds_3 { ResetSystemErase BuildIndex { -CreateIndex AddDocs_Exhaust { AddDoc > * EXHAUST -CloseIndex } NewRound } * 3 RepSumByPrefRound BuildIndex } ------------> starting task: Seq 1.88 sec --> main added 1000 docs 4.04 sec --> main added 2000 docs 4.48 sec --> main added 3000 docs ...yada yada yada... 12.18 sec --> main added 21000 docs --> Round 0-->1 ------------> DocMaker statistics (0): total bytes of unique texts: 17,550,748 0.2 sec --> main added 22000 docs 0.56 sec --> main added 23000 docs 0.92 sec --> main added 24000 docs ...yada yada yada... 8.02 sec --> main added 43000 docs --> Round 1-->2 0.29 sec --> main added 44000 docs 0.63 sec --> main added 45000 docs 1.04 sec --> main added 46000 docs ...yada yada yada... 9.43 sec --> main added 64000 docs --> Round 2-->3 -->Report sum by Prefix (BuildIndex) and Round (3 about 3 out of 14) Operation round runCnt recsPerRun rec/s elapsedSec avgUsedMem avgTotalMem BuildIndex 0 1 21578 1,682 12.83 26,303,608 81,788,928 BuildIndex - 1 - 1 - 21578 2,521 - 8.56 44,557,144 81,985,536 BuildIndex 2 1 21578 2,126 10.15 37,706,752 80,740,352 #################### ### D O N E !!! ### ####################The benchmark module first prints all the settings you’re running with, under config properties. It’s best to look this over and verify the settings are what you intended. Next it “pretty-prints” the steps of the algorithm. You should also verify this algorithm is what you expected. If you put a closing } in the wrong place, this is where you will spot it. Finally, benchmark runs the algorithm and prints the status output, which usually consists of