A B C D E F G H I K L M N O P Q R S T U V W _

A

acceptsDocsOutOfOrder() - Method in class org.apache.lucene.search.CheckHits.ExplanationAsserter
 
acceptsDocsOutOfOrder() - Method in class org.apache.lucene.search.CheckHits.SetCollector
 
addCount - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
addDocument(Document) - Method in class org.apache.lucene.index.RandomIndexWriter
Adds a Document.
addDocument(Term, Document) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
addDocuments(Collection<Document>) - Method in class org.apache.lucene.index.RandomIndexWriter
 
addDocuments(Term, Collection<Document>) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
addError(Test, Throwable) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
A test caused an error.
addFailure(Test, Throwable) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
Interface TestListener for JUnit <= 3.4.
addFailure(Test, AssertionFailedError) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
Interface TestListener for JUnit > 3.4.
addIndexes(Directory...) - Method in class org.apache.lucene.index.RandomIndexWriter
 
addIndexes(IndexReader...) - Method in class org.apache.lucene.index.RandomIndexWriter
 
afterClassLuceneTestCaseJ4() - Static method in class org.apache.lucene.util.LuceneTestCase
 
alwaysIgnoredTestMethod() - Method in class org.apache.lucene.util.LuceneTestCase
 
anyFilesExceptWriteLock(Directory) - Static method in class org.apache.lucene.util._TestUtil
 
append(String) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
 
append(long) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
 
arrayToString(int[]) - Static method in class org.apache.lucene.util._TestUtil
Deprecated. -- in 3.0 we can use Arrays.toString instead
arrayToString(Object[]) - Static method in class org.apache.lucene.util._TestUtil
Deprecated. -- in 3.0 we can use Arrays.toString instead
assertAnalyzesTo(Analyzer, String, String[], int[], int[], String[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesTo(Analyzer, String, String[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesTo(Analyzer, String, String[], String[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesTo(Analyzer, String, String[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesTo(Analyzer, String, String[], int[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesTo(Analyzer, String, String[], int[], int[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesToReuse(Analyzer, String, String[], int[], int[], String[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesToReuse(Analyzer, String, String[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesToReuse(Analyzer, String, String[], String[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesToReuse(Analyzer, String, String[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesToReuse(Analyzer, String, String[], int[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesToReuse(Analyzer, String, String[], int[], int[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAttributeReflection(AttributeImpl, Map<String, T>) - Static method in class org.apache.lucene.util._TestUtil
Checks some basic behaviour of an AttributeImpl
assertDateRangeQueryEquals(QueryParser, String, String, String, Date, DateTools.Resolution) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assertEquals(TopDocs, TopDocs) - Static method in class org.apache.lucene.util._TestUtil
 
assertEquals(double, double) - Static method in class org.apache.lucene.util.LuceneTestCase
Deprecated. 
assertEquals(String, double, double) - Static method in class org.apache.lucene.util.LuceneTestCase
Deprecated. 
assertEquals(float, float) - Static method in class org.apache.lucene.util.LuceneTestCase
Deprecated. 
assertEquals(String, float, float) - Static method in class org.apache.lucene.util.LuceneTestCase
Deprecated. 
assertEscapedQueryEquals(String, Analyzer, String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
AssertingIndexSearcher - Class in org.apache.lucene.search
Helper class that adds some extra checks to ensure correct usage of IndexSearcher and Weight.
AssertingIndexSearcher(IndexReader) - Constructor for class org.apache.lucene.search.AssertingIndexSearcher
 
AssertingIndexSearcher(IndexReader, ExecutorService) - Constructor for class org.apache.lucene.search.AssertingIndexSearcher
 
assertParseException(String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assertQueryEquals(String, Analyzer, String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assertQueryEquals(QueryParser, String, String, String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assertQueryEqualsDOA(String, Analyzer, String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assertSaneFieldCaches(String) - Method in class org.apache.lucene.util.LuceneTestCase
Asserts that FieldCacheSanityChecker does not detect any problems with FieldCache.DEFAULT.
assertThreadSafe(Analyzer) - Method in class org.apache.lucene.analysis.CollationTestBase
 
assertTokenStreamContents(TokenStream, String[], int[], int[], String[], int[], Integer) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], int[], int[], String[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], String[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], int[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], int[], int[], Integer) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], int[], int[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], int[], int[], int[], Integer) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertVocabulary(Analyzer, InputStream, InputStream) - Static method in class org.apache.lucene.analysis.VocabularyAssert
Run a vocabulary test against two data files.
assertVocabulary(Analyzer, InputStream) - Static method in class org.apache.lucene.analysis.VocabularyAssert
Run a vocabulary test against one file: tab separated.
assertVocabulary(Analyzer, File, String, String) - Static method in class org.apache.lucene.analysis.VocabularyAssert
Run a vocabulary test against two data files inside a zip file
assertVocabulary(Analyzer, File, String) - Static method in class org.apache.lucene.analysis.VocabularyAssert
Run a vocabulary test against a tab-separated data file inside a zip file
assertWildcardQueryEquals(String, boolean, String, boolean) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assertWildcardQueryEquals(String, boolean, String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assertWildcardQueryEquals(String, String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
assumeFalse(String, boolean) - Static method in class org.apache.lucene.util.LuceneTestCase
 
assumeNoException(String, Exception) - Static method in class org.apache.lucene.util.LuceneTestCase
 
assumeTrue(String, boolean) - Static method in class org.apache.lucene.util.LuceneTestCase
 
atLeast(Random, int) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a number of at least i
atLeast(int) - Static method in class org.apache.lucene.util.LuceneTestCase
 

B

BaseTokenStreamTestCase - Class in org.apache.lucene.analysis
Base class for all Lucene unit tests that use TokenStreams.
BaseTokenStreamTestCase() - Constructor for class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
BaseTokenStreamTestCase.CheckClearAttributesAttribute - Interface in org.apache.lucene.analysis
 
BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl - Class in org.apache.lucene.analysis
 
BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl() - Constructor for class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
beforeClassLuceneTestCaseJ4() - Static method in class org.apache.lucene.util.LuceneTestCase
 

C

CachingWrapperFilterHelper - Class in org.apache.lucene.search
A unit test helper class to test when the filter is getting cached and when it is not.
CachingWrapperFilterHelper(Filter) - Constructor for class org.apache.lucene.search.CachingWrapperFilterHelper
 
check(Query) - Static method in class org.apache.lucene.search.QueryUtils
Check the types of things query objects should be able to do.
check(Random, Query, Searcher) - Static method in class org.apache.lucene.search.QueryUtils
Various query sanity checks on a searcher, some checks are only done for instanceof IndexSearcher.
checkDocIds(String, int[], ScoreDoc[]) - Static method in class org.apache.lucene.search.CheckHits
Tests that a Hits has an expected order of documents
checkEqual(Query, ScoreDoc[], ScoreDoc[]) - Static method in class org.apache.lucene.search.CheckHits
 
checkEqual(Query, Query) - Static method in class org.apache.lucene.search.QueryUtils
 
checkExplanations(Query, String, Searcher) - Static method in class org.apache.lucene.search.CheckHits
Asserts that the explanation value for every document matching a query corresponds with the true score.
checkExplanations(Query, String, Searcher, boolean) - Static method in class org.apache.lucene.search.CheckHits
Asserts that the explanation value for every document matching a query corresponds with the true score.
checkExplanations(Query) - Method in class org.apache.lucene.search.CheckHits.ExplanationAssertingSearcher
 
checkExplanations(Query, Searcher) - Static method in class org.apache.lucene.search.QueryUtils
deep check that explanations of a query 'score' correctly
checkHashEquals(Query) - Static method in class org.apache.lucene.search.QueryUtils
check very basic hashCode and equals
checkHitCollector(Random, Query, String, Searcher, int[]) - Static method in class org.apache.lucene.search.CheckHits
Tests that a query matches the an expected set of documents using a HitCollector.
CheckHits - Class in org.apache.lucene.search
 
CheckHits() - Constructor for class org.apache.lucene.search.CheckHits
 
checkHits(Random, Query, String, Searcher, int[]) - Static method in class org.apache.lucene.search.CheckHits
Tests that a query matches the an expected set of documents using Hits.
CheckHits.ExplanationAsserter - Class in org.apache.lucene.search
Asserts that the score explanation for every document matching a query corresponds with the true score.
CheckHits.ExplanationAsserter(Query, String, Searcher) - Constructor for class org.apache.lucene.search.CheckHits.ExplanationAsserter
Constructs an instance which does shallow tests on the Explanation
CheckHits.ExplanationAsserter(Query, String, Searcher, boolean) - Constructor for class org.apache.lucene.search.CheckHits.ExplanationAsserter
 
CheckHits.ExplanationAssertingSearcher - Class in org.apache.lucene.search
an IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.
CheckHits.ExplanationAssertingSearcher(IndexReader) - Constructor for class org.apache.lucene.search.CheckHits.ExplanationAssertingSearcher
 
CheckHits.SetCollector - Class in org.apache.lucene.search
 
CheckHits.SetCollector(Set<Integer>) - Constructor for class org.apache.lucene.search.CheckHits.SetCollector
 
checkHitsQuery(Query, ScoreDoc[], ScoreDoc[], int[]) - Static method in class org.apache.lucene.search.CheckHits
Tests that two queries have an expected order of documents, and that the two queries have the same score values.
checkIndex(Directory) - Static method in class org.apache.lucene.util._TestUtil
This runs the CheckIndex tool on the index in.
checkNoMatchExplanations(Query, String, Searcher, int[]) - Static method in class org.apache.lucene.search.CheckHits
Tests that all documents up to maxDoc which are *not* in the expected result set, have an explanation which indicates that the document does not match
checkOneTerm(Analyzer, String, String) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
checkOneTermReuse(Analyzer, String, String) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
checkRandomData(Random, Analyzer, int) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
checkRandomData(Random, Analyzer, int, int) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
checkSkipTo(Query, IndexSearcher) - Static method in class org.apache.lucene.search.QueryUtils
alternate scorer skipTo(),skipTo(),next(),next(),skipTo(),skipTo(), etc and ensure a hitcollector receives same docs and scores
checkUnequal(Query, Query) - Static method in class org.apache.lucene.search.QueryUtils
 
clear() - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
clearCrash() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
clearDoFail() - Method in class org.apache.lucene.store.MockDirectoryWrapper.Failure
 
clearLock(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
clearLock(String) - Method in class org.apache.lucene.store.MockLockFactoryWrapper
 
clone() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
cloneDocument(Document) - Static method in class org.apache.lucene.util._TestUtil
 
close() - Method in class org.apache.lucene.analysis.MockTokenizer
 
close() - Method in class org.apache.lucene.index.MockIndexInput
 
close() - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
close() - Method in class org.apache.lucene.index.RandomIndexWriter
Close this writer.
close() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
close() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
close() - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
close() - Method in class org.apache.lucene.util.LineFileDocs
 
close() - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
CollationTestBase - Class in org.apache.lucene.analysis
 
CollationTestBase() - Constructor for class org.apache.lucene.analysis.CollationTestBase
 
collect(int) - Method in class org.apache.lucene.search.CheckHits.ExplanationAsserter
 
collect(int) - Method in class org.apache.lucene.search.CheckHits.SetCollector
 
commit() - Method in class org.apache.lucene.index.RandomIndexWriter
 
computeTestMethods() - Method in class org.apache.lucene.util.LuceneTestCaseRunner
 
copy(Directory, String, String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
copyBytes(IndexOutput, long) - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
copyBytes(DataInput, long) - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
copyBytes(DataInput, long) - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
copyTo(AttributeImpl) - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
crash() - Method in class org.apache.lucene.store.MockDirectoryWrapper
Simulates a crash of OS or machine by overwriting unsynced files.
createNormalizedWeight(Query) - Method in class org.apache.lucene.search.AssertingIndexSearcher
Ensures, that the returned Weight is not normalized again, which may produce wrong scores.
createOutput(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
createTempFile(String, String, File) - Static method in class org.apache.lucene.util._TestUtil
insecure, fast version of File.createTempFile uses Random instead of SecureRandom.

D

DEFAULT_MAX_TOKEN_LENGTH - Static variable in class org.apache.lucene.analysis.MockTokenizer
 
DEFAULT_MIN_WRITTEN_BYTES - Static variable in class org.apache.lucene.util.ThrottledIndexOutput
 
delCount - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
deleteAll() - Method in class org.apache.lucene.index.RandomIndexWriter
 
deleteDocuments(Term) - Method in class org.apache.lucene.index.RandomIndexWriter
 
deleteDocuments(Query) - Method in class org.apache.lucene.index.RandomIndexWriter
 
deleteDocuments(Term) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
deleteFile(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
dir - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
doAfterIndexingThreadDone() - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
doAfterWriter(ExecutorService) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
doClose() - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
doFail - Variable in class org.apache.lucene.store.MockDirectoryWrapper.Failure
 
doSearching(ExecutorService, long) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
dumpArray(String, Object[], PrintStream) - Static method in class org.apache.lucene.util.LuceneTestCase
Convenience method for logging an array.
dumpIterator(String, Iterator<?>, PrintStream) - Static method in class org.apache.lucene.util.LuceneTestCase
Convenience method for logging an iterator.

E

encodeCollationKey(byte[]) - Method in class org.apache.lucene.analysis.CollationTestBase
Convenience method to perform the same function as CollationKeyFilter.
end() - Method in class org.apache.lucene.analysis.MockTokenizer
 
endTest(Test) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
A test ended.
endTestSuite(JUnitTest) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
The whole testsuite ended.
equals(Object) - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
equals(Object) - Method in class org.apache.lucene.search.CachingWrapperFilterHelper
 
eval(MockDirectoryWrapper) - Method in class org.apache.lucene.store.MockDirectoryWrapper.Failure
eval is called on the first write of every new file.
EXPLAIN_SCORE_TOLERANCE_DELTA - Static variable in class org.apache.lucene.search.CheckHits
Some explains methods calculate their values though a slightly different order of operations from the actual scoring method ...

F

failed - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
failOn(MockDirectoryWrapper.Failure) - Method in class org.apache.lucene.store.MockDirectoryWrapper
add a Failure object to the list of objects to be evaluated at every potential failure point
fileExists(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
fileLength(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
fileModified(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
findForcedDeletesMerges(SegmentInfos) - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
findForcedMerges(SegmentInfos, int, Map<SegmentInfo, Boolean>) - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
findMerges(SegmentInfos) - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
firstRangeBeginningOriginal - Variable in class org.apache.lucene.analysis.CollationTestBase
 
firstRangeEndOriginal - Variable in class org.apache.lucene.analysis.CollationTestBase
 
flush() - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
flush() - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
forceMerge(int) - Method in class org.apache.lucene.index.RandomIndexWriter
Forces a forceMerge.
forceMergeDeletes(boolean) - Method in class org.apache.lucene.index.RandomIndexWriter
 
forceMergeDeletes() - Method in class org.apache.lucene.index.RandomIndexWriter
 
formatError(String, Test, Throwable) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
Format an error and print it.
formatTest(Test) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
Format the test for printing..

G

getAndResetClearCalled() - Method in interface org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttribute
 
getAndResetClearCalled() - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
getCheckIndexOnClose() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getCurrentSearcher() - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
getDataFile(String) - Method in class org.apache.lucene.util.LuceneTestCase
Gets a resource from the classpath as File.
getDelay(boolean) - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
getDirectory(Directory) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
getDocIdSet(IndexReader) - Method in class org.apache.lucene.search.CachingWrapperFilterHelper
 
getFilePointer() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
getFilePointer() - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
getFilePointer() - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
getFinalSearcher() - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
getFuzzyQuery(String, String, float) - Method in class org.apache.lucene.queryParser.QueryParserTestBase.QPTestParser
 
getInputCloneCount() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getLockFactory() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getLockID() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getLockPrefix() - Method in class org.apache.lucene.store.MockLockFactoryWrapper
 
getMaxSizeInBytes() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getMaxUsedSizeInBytes() - Method in class org.apache.lucene.store.MockDirectoryWrapper
Returns the peek actual storage used (bytes) in this directory.
getName() - Method in class org.apache.lucene.util.LuceneTestCase
 
getNoDeleteOpenFile() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getOpenDeletedFiles() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getParser(Analyzer) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
getPositionIncrementGap(String) - Method in class org.apache.lucene.analysis.MockAnalyzer
 
getQuery(String, Analyzer) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
getQueryDOA(String, Analyzer) - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
getRandomIOExceptionRate() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getReader() - Method in class org.apache.lucene.index.RandomIndexWriter
 
getReader(boolean) - Method in class org.apache.lucene.index.RandomIndexWriter
 
getRecomputedActualSizeInBytes() - Method in class org.apache.lucene.store.MockDirectoryWrapper
Like getRecomputedSizeInBytes(), but, uses actual file lengths rather than buffer allocations (which are quantized up to nearest RAMOutputStream.BUFFER_SIZE (now 1024) bytes.
getRecomputedSizeInBytes() - Method in class org.apache.lucene.store.MockDirectoryWrapper
Provided for testing purposes.
getSequentialSubReaders() - Method in class org.apache.lucene.index.SlowMultiReaderWrapper
 
getTempDir(String) - Static method in class org.apache.lucene.util._TestUtil
Returns temp dir, based on String arg in its name; does not create the directory.
getTestLabel() - Method in class org.apache.lucene.util.LuceneTestCase
 
getWildcardQuery(String, String) - Method in class org.apache.lucene.queryParser.QueryParserTestBase.QPTestParser
 

H

hashCode() - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
hashCode() - Method in class org.apache.lucene.search.CachingWrapperFilterHelper
 
hits2str(ScoreDoc[], ScoreDoc[], int, int) - Static method in class org.apache.lucene.search.CheckHits
 

I

incrementToken() - Method in class org.apache.lucene.analysis.MockFixedLengthPayloadFilter
 
incrementToken() - Method in class org.apache.lucene.analysis.MockTokenizer
 
incrementToken() - Method in class org.apache.lucene.analysis.MockVariableLengthPayloadFilter
 
incrementToken() - Method in class org.apache.lucene.queryParser.QueryParserTestBase.QPTestFilter
 
intercept - Variable in class org.apache.lucene.util.LuceneTestCase
 
isOpen() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
isSelected(File, String, File) - Method in class org.apache.lucene.util.LuceneJUnitDividingSelector
 
isSimpleFSIndexInput(IndexInput) - Static method in class org.apache.lucene.store._TestHelper
Returns true if the instance of the provided input stream is actually an SimpleFSIndexInput.
isSimpleFSIndexInputClone(IndexInput) - Static method in class org.apache.lucene.store._TestHelper
Returns true if the provided input stream is an SimpleFSIndexInput and is a clone, that is it does not own its underlying file descriptor.
isSimpleFSIndexInputOpen(IndexInput) - Static method in class org.apache.lucene.store._TestHelper
Given an instance of SimpleFSDirectory.SimpleFSIndexInput, this method returns true if the underlying file descriptor is valid, and false otherwise.
isTestThread() - Method in class org.apache.lucene.util.LuceneTestCase
Returns true if and only if the calling thread is the primary thread executing the test case.
isTokenChar(int) - Method in class org.apache.lucene.analysis.MockTokenizer
 

K

keepFullyDeletedSegments(IndexWriter) - Static method in class org.apache.lucene.util._TestUtil
 
KEYWORD - Static variable in class org.apache.lucene.analysis.MockTokenizer
Acts Similar to KeywordTokenizer.

L

length() - Method in class org.apache.lucene.index.MockIndexInput
 
length() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
length() - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
length() - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
LineFileDocs - Class in org.apache.lucene.util
Minimal port of contrib/benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by contrib/benchmark's WriteLineDoc task
LineFileDocs(Random, String) - Constructor for class org.apache.lucene.util.LineFileDocs
If forever is true, we rewind the file at EOF (repeat the docs over and over)
LineFileDocs(Random) - Constructor for class org.apache.lucene.util.LineFileDocs
 
listAll() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
localeForName(String) - Static method in class org.apache.lucene.util.LuceneTestCase
return a Locale object equivalent to its programmatic name
LuceneJUnitDividingSelector - Class in org.apache.lucene.util
Divides filesets into equal groups
LuceneJUnitDividingSelector() - Constructor for class org.apache.lucene.util.LuceneJUnitDividingSelector
 
LuceneJUnitResultFormatter - Class in org.apache.lucene.util
Just like BriefJUnitResultFormatter "brief" bundled with ant, except all formatted text is buffered until the test suite is finished.
LuceneJUnitResultFormatter() - Constructor for class org.apache.lucene.util.LuceneJUnitResultFormatter
Constructor for LuceneJUnitResultFormatter.
LuceneTestCase - Class in org.apache.lucene.util
Base class for all Lucene unit tests, Junit3 or Junit4 variant.
LuceneTestCase() - Constructor for class org.apache.lucene.util.LuceneTestCase
 
LuceneTestCase.Nightly - Annotation Type in org.apache.lucene.util
Annotation for tests that should only be run during nightly builds.
LuceneTestCaseRunner - Class in org.apache.lucene.util
optionally filters the tests to be run by TEST_METHOD
LuceneTestCaseRunner(Class<?>) - Constructor for class org.apache.lucene.util.LuceneTestCaseRunner
 

M

makeLock(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
makeLock(String) - Method in class org.apache.lucene.store.MockLockFactoryWrapper
 
maxDoc() - Method in class org.apache.lucene.index.RandomIndexWriter
 
mBitsToBytes(int) - Static method in class org.apache.lucene.util.ThrottledIndexOutput
 
MockAnalyzer - Class in org.apache.lucene.analysis
Analyzer for testing
MockAnalyzer(Random, int, boolean, CharArraySet, boolean) - Constructor for class org.apache.lucene.analysis.MockAnalyzer
Creates a new MockAnalyzer.
MockAnalyzer(Random, int, boolean) - Constructor for class org.apache.lucene.analysis.MockAnalyzer
Calls MockAnalyzer(random, pattern, lowerCase, CharArraySet.EMPTY_STOPSET, false).
MockAnalyzer(Random) - Constructor for class org.apache.lucene.analysis.MockAnalyzer
Create a Whitespace-lowercasing analyzer with no stopwords removal.
MockDirectoryWrapper - Class in org.apache.lucene.store
This is a Directory Wrapper that adds methods intended to be used only by unit tests.
MockDirectoryWrapper(Random, Directory) - Constructor for class org.apache.lucene.store.MockDirectoryWrapper
 
MockDirectoryWrapper.Failure - Class in org.apache.lucene.store
Objects that represent fail-able conditions.
MockDirectoryWrapper.Failure() - Constructor for class org.apache.lucene.store.MockDirectoryWrapper.Failure
 
MockDirectoryWrapper.Throttling - Enum in org.apache.lucene.store
 
MockFixedLengthPayloadFilter - Class in org.apache.lucene.analysis
 
MockFixedLengthPayloadFilter(Random, TokenStream, int) - Constructor for class org.apache.lucene.analysis.MockFixedLengthPayloadFilter
 
MockIndexInput - Class in org.apache.lucene.index
 
MockIndexInput(byte[]) - Constructor for class org.apache.lucene.index.MockIndexInput
 
MockIndexInputWrapper - Class in org.apache.lucene.store
Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been closed.
MockIndexInputWrapper(MockDirectoryWrapper, String, IndexInput) - Constructor for class org.apache.lucene.store.MockIndexInputWrapper
Construct an empty output buffer.
MockIndexOutputWrapper - Class in org.apache.lucene.store
Used by MockRAMDirectory to create an output stream that will throw an IOException on fake disk full, track max disk space actually used, and maybe throw random IOExceptions.
MockIndexOutputWrapper(MockDirectoryWrapper, IndexOutput, String) - Constructor for class org.apache.lucene.store.MockIndexOutputWrapper
Construct an empty output buffer.
MockLockFactoryWrapper - Class in org.apache.lucene.store
 
MockLockFactoryWrapper(MockDirectoryWrapper, LockFactory) - Constructor for class org.apache.lucene.store.MockLockFactoryWrapper
 
MockRandomMergePolicy - Class in org.apache.lucene.index
 
MockRandomMergePolicy(Random) - Constructor for class org.apache.lucene.index.MockRandomMergePolicy
 
MockTokenizer - Class in org.apache.lucene.analysis
Tokenizer for testing.
MockTokenizer(AttributeSource.AttributeFactory, Reader, int, boolean, int) - Constructor for class org.apache.lucene.analysis.MockTokenizer
 
MockTokenizer(Reader, int, boolean, int) - Constructor for class org.apache.lucene.analysis.MockTokenizer
 
MockTokenizer(Reader, int, boolean) - Constructor for class org.apache.lucene.analysis.MockTokenizer
 
MockVariableLengthPayloadFilter - Class in org.apache.lucene.analysis
 
MockVariableLengthPayloadFilter(Random, TokenStream) - Constructor for class org.apache.lucene.analysis.MockVariableLengthPayloadFilter
 

N

newDirectory() - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new Directory instance.
newDirectory(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new Directory instance, using the specified random.
newDirectory(Directory) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new Directory instance, with contents copied from the provided directory.
newDirectory(Random, Directory) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new Directory instance, using the specified random with contents copied from the provided directory.
newField(String, String, Field.Index) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new field instance.
newField(String, String, Field.Store, Field.Index) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new field instance.
newField(String, String, Field.Store, Field.Index, Field.TermVector) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new Field instance.
newField(Random, String, String, Field.Index) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new field instance, using the specified random.
newField(Random, String, String, Field.Store, Field.Index) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new field instance, using the specified random.
newField(Random, String, String, Field.Store, Field.Index, Field.TermVector) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new field instance, using the specified random.
newFromDelegate(IndexOutput) - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
newFSDirectory(File) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new FSDirectory instance over the given file, which must be a folder.
newFSDirectory(File, LockFactory) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns a new FSDirectory instance over the given file, which must be a folder.
newIndexWriterConfig(Version, Analyzer) - Static method in class org.apache.lucene.util.LuceneTestCase
create a new index writer config with random defaults
newIndexWriterConfig(Random, Version, Analyzer) - Static method in class org.apache.lucene.util.LuceneTestCase
create a new index writer config with random defaults using the specified random
newLogMergePolicy() - Static method in class org.apache.lucene.util.LuceneTestCase
 
newLogMergePolicy(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newLogMergePolicy(boolean) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newLogMergePolicy(boolean, int) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newLogMergePolicy(int) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newSearcher(IndexReader) - Static method in class org.apache.lucene.util.LuceneTestCase
create a new searcher over the reader.
newSearcher(IndexReader, boolean) - Static method in class org.apache.lucene.util.LuceneTestCase
create a new searcher over the reader.
newTieredMergePolicy() - Static method in class org.apache.lucene.util.LuceneTestCase
 
newTieredMergePolicy(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
 
next(int) - Method in class org.apache.lucene.util.SmartRandom
 
nextDoc() - Method in class org.apache.lucene.util.LineFileDocs
Note: Document instance is re-used per-thread
nextInt(Random, int, int) - Static method in class org.apache.lucene.util._TestUtil
start and end are BOTH inclusive
normalize(int) - Method in class org.apache.lucene.analysis.MockTokenizer
 
numDocs() - Method in class org.apache.lucene.index.RandomIndexWriter
 

O

openInput(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
org.apache.lucene.analysis - package org.apache.lucene.analysis
 
org.apache.lucene.index - package org.apache.lucene.index
 
org.apache.lucene.queryParser - package org.apache.lucene.queryParser
 
org.apache.lucene.search - package org.apache.lucene.search
 
org.apache.lucene.store - package org.apache.lucene.store
 
org.apache.lucene.util - package org.apache.lucene.util
 

P

packCount - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
purgeFieldCache(FieldCache) - Method in class org.apache.lucene.util.LuceneTestCase
Forcible purges all cache entries from the FieldCache.

Q

qpAnalyzer - Static variable in class org.apache.lucene.queryParser.QueryParserTestBase
 
QueryParserTestBase - Class in org.apache.lucene.queryParser
Base Test class for QueryParser subclasses
QueryParserTestBase() - Constructor for class org.apache.lucene.queryParser.QueryParserTestBase
 
QueryParserTestBase.QPTestAnalyzer - Class in org.apache.lucene.queryParser
 
QueryParserTestBase.QPTestAnalyzer() - Constructor for class org.apache.lucene.queryParser.QueryParserTestBase.QPTestAnalyzer
 
QueryParserTestBase.QPTestFilter - Class in org.apache.lucene.queryParser
 
QueryParserTestBase.QPTestFilter(TokenStream) - Constructor for class org.apache.lucene.queryParser.QueryParserTestBase.QPTestFilter
Filter which discards the token 'stop' and which expands the token 'phrase' into 'phrase1 phrase2'
QueryParserTestBase.QPTestParser - Class in org.apache.lucene.queryParser
 
QueryParserTestBase.QPTestParser(String, Analyzer) - Constructor for class org.apache.lucene.queryParser.QueryParserTestBase.QPTestParser
 
QueryUtils - Class in org.apache.lucene.search
 
QueryUtils() - Constructor for class org.apache.lucene.search.QueryUtils
 

R

random - Static variable in class org.apache.lucene.util.LuceneTestCase
 
RANDOM_MULTIPLIER - Static variable in class org.apache.lucene.util.LuceneTestCase
A random multiplier which you should use when writing random tests: multiply it by the number of iterations
randomDirectory(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
 
randomFixedByteLengthUnicodeString(Random, int) - Static method in class org.apache.lucene.util._TestUtil
Returns random string, with a given UTF-8 byte length
randomFixedLengthUnicodeString(Random, char[], int, int) - Static method in class org.apache.lucene.util._TestUtil
Fills provided char[] with valid random unicode code unit sequence.
RandomIndexWriter - Class in org.apache.lucene.index
Silly class that randomizes the indexing experience.
RandomIndexWriter(Random, Directory) - Constructor for class org.apache.lucene.index.RandomIndexWriter
create a RandomIndexWriter with a random config: Uses TEST_VERSION_CURRENT and Whitespace+LowercasingAnalyzer
RandomIndexWriter(Random, Directory, Analyzer) - Constructor for class org.apache.lucene.index.RandomIndexWriter
create a RandomIndexWriter with a random config: Uses TEST_VERSION_CURRENT
RandomIndexWriter(Random, Directory, Version, Analyzer) - Constructor for class org.apache.lucene.index.RandomIndexWriter
create a RandomIndexWriter with a random config
RandomIndexWriter(Random, Directory, IndexWriterConfig) - Constructor for class org.apache.lucene.index.RandomIndexWriter
create a RandomIndexWriter with the provided config
randomLocale(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
return a random Locale from the available locales on the system
randomRealisticUnicodeString(Random) - Static method in class org.apache.lucene.util._TestUtil
Returns random string of length between 0-20 codepoints, all codepoints within the same unicode block.
randomRealisticUnicodeString(Random, int) - Static method in class org.apache.lucene.util._TestUtil
Returns random string of length up to maxLength codepoints , all codepoints within the same unicode block.
randomRealisticUnicodeString(Random, int, int) - Static method in class org.apache.lucene.util._TestUtil
Returns random string of length between min and max codepoints, all codepoints within the same unicode block.
randomSimpleString(Random) - Static method in class org.apache.lucene.util._TestUtil
 
randomTimeZone(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
return a random TimeZone from the available timezones on the system
randomUnicodeString(Random) - Static method in class org.apache.lucene.util._TestUtil
Returns random string, including full unicode range.
randomUnicodeString(Random, int) - Static method in class org.apache.lucene.util._TestUtil
Returns a random string up to a certain length.
rarely(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
Returns true if something should happen rarely,
rarely() - Static method in class org.apache.lucene.util.LuceneTestCase
 
readByte() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readBytes(byte[], int, int) - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readBytes(byte[], int, int, boolean) - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readChars(char[], int, int) - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readCodePoint() - Method in class org.apache.lucene.analysis.MockTokenizer
 
readInt() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readInternal(byte[], int, int) - Method in class org.apache.lucene.index.MockIndexInput
 
readLong() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readString() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readStringStringMap() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readVInt() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
readVLong() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
reduceOpenFiles(IndexWriter) - Static method in class org.apache.lucene.util._TestUtil
just tries to configure things to keep the open file count lowish
releaseSearcher(IndexSearcher) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
removeIndexInput(IndexInput, String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
removeIndexOutput(IndexOutput, String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
reportAdditionalFailureInfo() - Method in class org.apache.lucene.util.LuceneTestCase
 
reportPartialFailureInfo() - Static method in class org.apache.lucene.util.LuceneTestCase
 
reset() - Method in class org.apache.lucene.analysis.MockTokenizer
 
reset(Reader) - Method in class org.apache.lucene.analysis.MockTokenizer
 
reset() - Method in class org.apache.lucene.store.MockDirectoryWrapper.Failure
reset should set the state of the failure to its default (freshly constructed) state.
reset(Random) - Method in class org.apache.lucene.util.LineFileDocs
 
resetMaxUsedSizeInBytes() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
reusableTokenStream(String, Reader) - Method in class org.apache.lucene.analysis.MockAnalyzer
 
rmDir(File) - Static method in class org.apache.lucene.util._TestUtil
Deletes a directory and everything underneath it.
runChild(FrameworkMethod, RunNotifier) - Method in class org.apache.lucene.util.LuceneTestCaseRunner
 
runSearchThreads(long) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
runTest(String) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 

S

SCORE_TOLERANCE_DELTA - Static variable in class org.apache.lucene.search.CheckHits.ExplanationAsserter
Deprecated.  
search(Query, Filter, int, Sort) - Method in class org.apache.lucene.search.CheckHits.ExplanationAssertingSearcher
 
search(Query, Collector) - Method in class org.apache.lucene.search.CheckHits.ExplanationAssertingSearcher
 
search(Query, Filter, Collector) - Method in class org.apache.lucene.search.CheckHits.ExplanationAssertingSearcher
 
search(Query, Filter, int) - Method in class org.apache.lucene.search.CheckHits.ExplanationAssertingSearcher
 
secondRangeBeginningOriginal - Variable in class org.apache.lucene.analysis.CollationTestBase
 
secondRangeEndOriginal - Variable in class org.apache.lucene.analysis.CollationTestBase
 
seek(long) - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
seek(long) - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
seek(long) - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
seekInternal(long) - Method in class org.apache.lucene.index.MockIndexInput
 
setCheckIndexOnClose(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
Set whether or not checkindex should be run on close
setDoFail() - Method in class org.apache.lucene.store.MockDirectoryWrapper.Failure
 
setDoRandomForceMerge(boolean) - Method in class org.apache.lucene.index.RandomIndexWriter
 
setDoRandomForceMergeAssert(boolean) - Method in class org.apache.lucene.index.RandomIndexWriter
 
setEnableChecks(boolean) - Method in class org.apache.lucene.analysis.MockAnalyzer
Toggle consumer workflow checking: if your test consumes tokenstreams normally you should leave this enabled.
setEnableChecks(boolean) - Method in class org.apache.lucene.analysis.MockTokenizer
Toggle consumer workflow checking: if your test consumes tokenstreams normally you should leave this enabled.
setFailOnCreateOutput(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setFailOnOpenInput(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setLength(long) - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
setLength(long) - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
setLockFactory(LockFactory) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setLockPrefix(String) - Method in class org.apache.lucene.store.MockLockFactoryWrapper
 
setMaxSizeInBytes(long) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setMergeFactor(MergePolicy, int) - Static method in class org.apache.lucene.util.LuceneTestCase
 
setModifiedUTF8StringsMode() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
setNextReader(IndexReader, int) - Method in class org.apache.lucene.search.CheckHits.ExplanationAsserter
 
setNextReader(IndexReader, int) - Method in class org.apache.lucene.search.CheckHits.SetCollector
 
setNoDeleteOpenFile(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
Emulate windows whereby deleting an open file is not allowed (raise IOException).
setOutput(OutputStream) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
Sets the stream the formatter is supposed to write its results to.
setParameters(Parameter[]) - Method in class org.apache.lucene.util.LuceneJUnitDividingSelector
 
setPositionIncrementGap(int) - Method in class org.apache.lucene.analysis.MockAnalyzer
 
setPreventDoubleWrite(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
If set to true, we throw an IOException if the same file is opened by createOutput, ever.
setRandomIOExceptionRate(double) - Method in class org.apache.lucene.store.MockDirectoryWrapper
If 0.0, no exceptions will be thrown.
setScorer(Scorer) - Method in class org.apache.lucene.search.CheckHits.ExplanationAsserter
 
setScorer(Scorer) - Method in class org.apache.lucene.search.CheckHits.SetCollector
 
setShouldHaveCache(boolean) - Method in class org.apache.lucene.search.CachingWrapperFilterHelper
 
setSystemError(String) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
.
setSystemOutput(String) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
.
setTestThread - Variable in class org.apache.lucene.util.LuceneTestCase
 
setThrottling(MockDirectoryWrapper.Throttling) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setTrackDiskUsage(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setUp() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
setUp() - Method in class org.apache.lucene.util.LuceneTestCase
 
setUseCompoundFile(MergePolicy, boolean) - Static method in class org.apache.lucene.util._TestUtil
 
setUseCompoundFile(MergePolicy, boolean) - Static method in class org.apache.lucene.util.LuceneTestCase
 
SIMPLE - Static variable in class org.apache.lucene.analysis.MockTokenizer
Acts like LetterTokenizer.
sizeInBytes() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
skipChars(int) - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
SlowMultiReaderWrapper - Class in org.apache.lucene.index
Acts like Lucene 4.x's SlowMultiReaderWrapper for testing of top-level MultiTermEnum, MultiTermDocs, ...
SlowMultiReaderWrapper(IndexReader) - Constructor for class org.apache.lucene.index.SlowMultiReaderWrapper
 
SmartRandom - Class in org.apache.lucene.util
A random that tracks if its been initialized properly, and throws an exception if it hasn't.
smokeTestSearcher(IndexSearcher) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
startTest(Test) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
A test started.
startTestSuite(JUnitTest) - Method in class org.apache.lucene.util.LuceneJUnitResultFormatter
The whole testsuite started.
stores - Static variable in class org.apache.lucene.util.LuceneTestCase
 
sync(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
Deprecated. 
sync(Collection<String>) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
syncConcurrentMerges(IndexWriter) - Static method in class org.apache.lucene.util._TestUtil
 
syncConcurrentMerges(MergeScheduler) - Static method in class org.apache.lucene.util._TestUtil
 

T

tearDown() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
tearDown() - Method in class org.apache.lucene.util.LuceneTestCase
 
TEMP_DIR - Static variable in class org.apache.lucene.util.LuceneTestCase
Create indexes in this directory, optimally use a subdir, named after the test
TEST_CLEAN_THREADS - Static variable in class org.apache.lucene.util.LuceneTestCase
whether or not to clean threads between test invocations: "false", "perMethod", "perClass"
TEST_DIRECTORY - Static variable in class org.apache.lucene.util.LuceneTestCase
Gets the directory to run tests with
TEST_ITER - Static variable in class org.apache.lucene.util.LuceneTestCase
Get the number of times to run tests
TEST_ITER_MIN - Static variable in class org.apache.lucene.util.LuceneTestCase
Get the minimum number of times to run tests until a failure happens
TEST_LINE_DOCS_FILE - Static variable in class org.apache.lucene.util.LuceneTestCase
the line file used by LineFileDocs
TEST_LOCALE - Static variable in class org.apache.lucene.util.LuceneTestCase
Gets the locale to run tests with
TEST_NIGHTLY - Static variable in class org.apache.lucene.util.LuceneTestCase
whether or not nightly tests should run
TEST_SEED - Static variable in class org.apache.lucene.util.LuceneTestCase
Get the random seed for tests
TEST_TIMEZONE - Static variable in class org.apache.lucene.util.LuceneTestCase
Gets the timezone to run tests with
TEST_VERSION_CURRENT - Static variable in class org.apache.lucene.util.LuceneTestCase
Use this constant when creating Analyzers and any other version-dependent stuff.
testAutoGeneratePhraseQueriesOn() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testBooleanQuery() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testBoost() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCJK() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCJKBoostedPhrase() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCJKBoostedTerm() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCJKPhrase() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCJKSloppyPhrase() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCJKTerm() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCollationKeySort(Analyzer, Analyzer, Analyzer, Analyzer, String, String, String, String) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testCustomQueryParserFuzzy() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testCustomQueryParserWildcard() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testDateRange() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testEscaped() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testException() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testFarsiRangeCollating() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testFarsiRangeFilterCollating(Analyzer, String, String, String, String) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testFarsiRangeQueryCollating(Analyzer, String, String, String, String) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testFarsiTermRangeQuery(Analyzer, String, String, String, String) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testLeadingWildcardType() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testLegacyDateRange() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
for testing legacy DateField support
testLocalDateFormat() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testMatchAllDocs() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testNumber() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testPositionIncrement() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testPositionIncrements() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testPrecedence() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
This test differs from TestPrecedenceQueryParser
testProtectedCtors() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testPunct() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testQPA() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testQueryStringEscaping() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testRange() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testsFailed - Static variable in class org.apache.lucene.util.LuceneTestCase
 
testSimple() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testSimpleDAO() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testSlop() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testStarParsing() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testStopwords() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testTabNewlineCarriageReturn() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
testWildcard() - Method in class org.apache.lucene.queryParser.QueryParserTestBase
 
ThreadedIndexingAndSearchingTestCase - Class in org.apache.lucene.index
Utility class that spawns multiple indexing and searching threads.
ThreadedIndexingAndSearchingTestCase() - Constructor for class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
ThrottledIndexOutput - Class in org.apache.lucene.util
 
ThrottledIndexOutput(int, long, IndexOutput) - Constructor for class org.apache.lucene.util.ThrottledIndexOutput
 
ThrottledIndexOutput(int, long, int, IndexOutput) - Constructor for class org.apache.lucene.util.ThrottledIndexOutput
 
ThrottledIndexOutput(int, long, long, long, long, IndexOutput) - Constructor for class org.apache.lucene.util.ThrottledIndexOutput
 
tokenStream(String, Reader) - Method in class org.apache.lucene.analysis.MockAnalyzer
 
tokenStream(String, Reader) - Method in class org.apache.lucene.queryParser.QueryParserTestBase.QPTestAnalyzer
Filters LowerCaseTokenizer with StopFilter.
topdocsString(TopDocs, int, int) - Static method in class org.apache.lucene.search.CheckHits
 
toString() - Method in class org.apache.lucene.index.SlowMultiReaderWrapper
 
toString() - Method in class org.apache.lucene.search.CachingWrapperFilterHelper
 
toString() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
toString() - Method in class org.apache.lucene.store.MockLockFactoryWrapper
 
touchFile(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
Deprecated. 

U

unzip(File, File) - Static method in class org.apache.lucene.util._TestUtil
Convenience method: Unzip zipName + ".zip" under destDir, removing destDir first
updateDocument(Term, Document) - Method in class org.apache.lucene.index.RandomIndexWriter
Updates a document.
updateDocument(Term, Document) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
updateDocuments(Term, Collection<Document>) - Method in class org.apache.lucene.index.RandomIndexWriter
 
updateDocuments(Term, Collection<Document>) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
useCompoundFile(SegmentInfos, SegmentInfo) - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
usually(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
 
usually() - Static method in class org.apache.lucene.util.LuceneTestCase
 

V

valueOf(String) - Static method in enum org.apache.lucene.store.MockDirectoryWrapper.Throttling
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.lucene.store.MockDirectoryWrapper.Throttling
Returns an array containing the constants of this enum type, in the order they are declared.
VERBOSE - Static variable in class org.apache.lucene.util.LuceneTestCase
true iff tests are run in verbose mode.
verifyExplanation(String, int, float, boolean, Explanation) - Static method in class org.apache.lucene.search.CheckHits
Assert that an explanation has the expected score, and optionally that its sub-details max/sum/factor match to that score.
verifySettings() - Method in class org.apache.lucene.util.LuceneJUnitDividingSelector
 
VocabularyAssert - Class in org.apache.lucene.analysis
Utility class for doing vocabulary-based stemming tests
VocabularyAssert() - Constructor for class org.apache.lucene.analysis.VocabularyAssert
 

W

w - Variable in class org.apache.lucene.index.RandomIndexWriter
 
WHITESPACE - Static variable in class org.apache.lucene.analysis.MockTokenizer
Acts Similar to WhitespaceTokenizer
wrapSearcher(Random, Searcher, int) - Static method in class org.apache.lucene.search.QueryUtils
Given a Searcher, returns a new MultiSearcher wrapping the the original Searcher, as well as several "empty" IndexSearchers -- some of which will have deleted documents in them.
wrapUnderlyingReader(Random, IndexSearcher, int) - Static method in class org.apache.lucene.search.QueryUtils
Given an IndexSearcher, returns a new IndexSearcher whose IndexReader is a MultiReader containing the Reader of the original IndexSearcher, as well as several "empty" IndexReaders -- some of which will have deleted documents in them.
writeByte(byte) - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
writeByte(byte) - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
writeBytes(byte[], int, int) - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
writeBytes(byte[], int, int) - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
writer - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 

_

_TestHelper - Class in org.apache.lucene.store
This class provides access to package-level features defined in the store package.
_TestHelper() - Constructor for class org.apache.lucene.store._TestHelper
 
_TestUtil - Class in org.apache.lucene.util
 
_TestUtil() - Constructor for class org.apache.lucene.util._TestUtil
 

A B C D E F G H I K L M N O P Q R S T U V W _

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.