A B C D E F G H I J 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
 
acquire() - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
acquire(long[]) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
add(AttributeSource.State) - Method in class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
addCount - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
addDocument(Iterable<T>) - Method in class org.apache.lucene.index.RandomIndexWriter
Adds a Document.
addDocument(Iterable<T>, Analyzer) - Method in class org.apache.lucene.index.RandomIndexWriter
 
addDocument(Term, Iterable<? extends IndexableField>) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
addDocuments(Iterable<? extends Iterable<? extends IndexableField>>) - Method in class org.apache.lucene.index.RandomIndexWriter
 
addDocuments(Term, List<? extends Iterable<? extends IndexableField>>) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
addIndexes(Directory...) - Method in class org.apache.lucene.index.RandomIndexWriter
 
addIndexes(IndexReader...) - Method in class org.apache.lucene.index.RandomIndexWriter
 
addOffCorrectMap(int, int) - Method in class org.apache.lucene.analysis.MockCharFilter
 
addPosition(int, BytesRef, int, int) - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
Add a new position & payload
afterClass() - Static method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
afterClass() - Static method in class org.apache.lucene.search.SearchEquivalenceTestBase
 
afterPosition() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter
This is called when all input tokens leaving a given position have been returned.
afterPosition() - Method in class org.apache.lucene.analysis.MockGraphTokenFilter
 
afterPosition() - Method in class org.apache.lucene.analysis.MockRandomLookaheadTokenFilter
 
AlcoholicMergePolicy - Class in org.apache.lucene.index
Merge policy for testing, it is like an alcoholic.
AlcoholicMergePolicy(TimeZone, Random) - Constructor for class org.apache.lucene.index.AlcoholicMergePolicy
 
alwaysPostingsFormat(PostingsFormat) - Static method in class org.apache.lucene.util._TestUtil
Return a Codec that can read any of the default codecs and formats, but always writes in the specified format.
analyzer - Static variable in class org.apache.lucene.search.SearchEquivalenceTestBase
 
anyFilesExceptWriteLock(Directory) - Static method in class org.apache.lucene.util._TestUtil
 
AppendingRWCodec - Class in org.apache.lucene.codecs.appending
Read-write version of AppendingCodec for testing
AppendingRWCodec() - Constructor for class org.apache.lucene.codecs.appending.AppendingRWCodec
 
AppendingTermsWriter - Class in org.apache.lucene.codecs.appending
Writes old Appending-formatted terms dictionaries for testing.
AppendingTermsWriter(SegmentWriteState, PostingsWriterBase, int, int) - Constructor for class org.apache.lucene.codecs.appending.AppendingTermsWriter
 
apply(Statement, Description) - Method in class org.apache.lucene.util.TestRuleAssertionsRequired
 
apply(Statement, Description) - Method in class org.apache.lucene.util.TestRuleFieldCacheSanity
 
apply(Statement, Description) - Method in class org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures
 
apply(Statement, Description) - Method in class org.apache.lucene.util.TestRuleIgnoreTestSuites
 
apply(Statement, Description) - Method in class org.apache.lucene.util.TestRuleMarkFailure
 
apply(Statement, Description) - Method in class org.apache.lucene.util.TestRuleStoreClassName
 
assertAnalyzesTo(Analyzer, String, String[], int[], int[], String[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesTo(Analyzer, String, String[], int[], int[], String[], int[], int[]) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertAnalyzesTo(Analyzer, String, String[], int[], int[], String[], int[], int[], boolean) - 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
 
assertAnalyzesToPositions(Analyzer, String, String[], 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
assertEquals(TopDocs, TopDocs) - Static method in class org.apache.lucene.util._TestUtil
 
AssertingAtomicReader - Class in org.apache.lucene.index
A FilterAtomicReader that can be used to apply additional checks for tests.
AssertingAtomicReader(AtomicReader) - Constructor for class org.apache.lucene.index.AssertingAtomicReader
 
AssertingAtomicReader.AssertingFields - Class in org.apache.lucene.index
Wraps a Fields but with additional asserts
AssertingAtomicReader.AssertingFields(Fields) - Constructor for class org.apache.lucene.index.AssertingAtomicReader.AssertingFields
 
AssertingAtomicReader.AssertingTerms - Class in org.apache.lucene.index
Wraps a Terms but with additional asserts
AssertingAtomicReader.AssertingTerms(Terms) - Constructor for class org.apache.lucene.index.AssertingAtomicReader.AssertingTerms
 
AssertingCodec - Class in org.apache.lucene.codecs.asserting
Acts like Lucene41Codec but with additional asserts.
AssertingCodec() - Constructor for class org.apache.lucene.codecs.asserting.AssertingCodec
 
AssertingDirectoryReader - Class in org.apache.lucene.index
A DirectoryReader that wraps all its subreaders with AssertingAtomicReader
AssertingDirectoryReader(DirectoryReader) - Constructor for class org.apache.lucene.index.AssertingDirectoryReader
 
AssertingIndexSearcher - Class in org.apache.lucene.search
Helper class that adds some extra checks to ensure correct usage of IndexSearcher and Weight.
AssertingIndexSearcher(Random, IndexReader) - Constructor for class org.apache.lucene.search.AssertingIndexSearcher
 
AssertingIndexSearcher(Random, IndexReaderContext) - Constructor for class org.apache.lucene.search.AssertingIndexSearcher
 
AssertingIndexSearcher(Random, IndexReader, ExecutorService) - Constructor for class org.apache.lucene.search.AssertingIndexSearcher
 
AssertingIndexSearcher(Random, IndexReaderContext, ExecutorService) - Constructor for class org.apache.lucene.search.AssertingIndexSearcher
 
AssertingPostingsFormat - Class in org.apache.lucene.codecs.asserting
Just like Lucene41PostingsFormat but with additional asserts.
AssertingPostingsFormat() - Constructor for class org.apache.lucene.codecs.asserting.AssertingPostingsFormat
 
AssertingStoredFieldsFormat - Class in org.apache.lucene.codecs.asserting
Just like Lucene41StoredFieldsFormat but with additional asserts.
AssertingStoredFieldsFormat() - Constructor for class org.apache.lucene.codecs.asserting.AssertingStoredFieldsFormat
 
AssertingTermVectorsFormat - Class in org.apache.lucene.codecs.asserting
Just like Lucene40TermVectorsFormat but with additional asserts.
AssertingTermVectorsFormat() - Constructor for class org.apache.lucene.codecs.asserting.AssertingTermVectorsFormat
 
assertMergedSegmentsWarmed - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
assertNoDetachedStates(Automaton) - Static method in class org.apache.lucene.util.automaton.AutomatonTestUtil
Checks that an automaton has no detached states that are unreachable from the initial state.
assertSameSet(Query, Query) - Method in class org.apache.lucene.search.SearchEquivalenceTestBase
Asserts that the documents returned by q1 are the same as of those returned by q2
assertSaneFieldCaches(String) - Static method in class org.apache.lucene.util.LuceneTestCase
Asserts that FieldCacheSanityChecker does not detect any problems with FieldCache.DEFAULT.
assertSubsetOf(Query, Query) - Method in class org.apache.lucene.search.SearchEquivalenceTestBase
Asserts that the documents returned by q1 are a subset of those returned by q2
assertSubsetOf(Query, Query, Filter) - Method in class org.apache.lucene.search.SearchEquivalenceTestBase
Asserts that the documents returned by q1 are a subset of those returned by q2.
assertThreadSafe(Analyzer) - Method in class org.apache.lucene.analysis.CollationTestBase
 
assertTokenStreamContents(TokenStream, String[], int[], int[], String[], int[], int[], Integer, boolean) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
assertTokenStreamContents(TokenStream, String[], int[], int[], String[], int[], int[], Integer) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
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
 
assertTokenStreamContents(TokenStream, String[], int[], 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
asSet(T...) - Static method in class org.apache.lucene.util.LuceneTestCase
Return args as a Set instance.
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
 
AutomatonTestUtil - Class in org.apache.lucene.util.automaton
Utilities for testing automata.
AutomatonTestUtil() - Constructor for class org.apache.lucene.util.automaton.AutomatonTestUtil
 
AutomatonTestUtil.RandomAcceptedStrings - Class in org.apache.lucene.util.automaton
Lets you retrieve random strings accepted by an Automaton.
AutomatonTestUtil.RandomAcceptedStrings(Automaton) - Constructor for class org.apache.lucene.util.automaton.AutomatonTestUtil.RandomAcceptedStrings
 

B

BaseDirectoryWrapper - Class in org.apache.lucene.store
Calls check index on close.
BaseDirectoryWrapper(Directory) - Constructor for class org.apache.lucene.store.BaseDirectoryWrapper
 
BasePostingsFormatTestCase - Class in org.apache.lucene.index
Abstract class to do basic tests for a postings format.
BasePostingsFormatTestCase() - Constructor for class org.apache.lucene.index.BasePostingsFormatTestCase
 
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
Attribute that records if it was cleared or not.
BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl - Class in org.apache.lucene.analysis
Attribute that records if it was cleared or not.
BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl() - Constructor for class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
beforeClass() - Static method in class org.apache.lucene.search.SearchEquivalenceTestBase
 
bytesToCharSequence(BytesRef, Random) - Static method in class org.apache.lucene.util._TestUtil
 

C

CannedBinaryTokenStream - Class in org.apache.lucene.analysis
TokenStream from a canned list of binary (BytesRef-based) tokens.
CannedBinaryTokenStream(CannedBinaryTokenStream.BinaryToken...) - Constructor for class org.apache.lucene.analysis.CannedBinaryTokenStream
 
CannedBinaryTokenStream.BinaryTermAttribute - Interface in org.apache.lucene.analysis
CannedBinaryTokenStream.BinaryTermAttributeImpl - Class in org.apache.lucene.analysis
CannedBinaryTokenStream.BinaryTermAttributeImpl() - Constructor for class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
CannedBinaryTokenStream.BinaryToken - Class in org.apache.lucene.analysis
Represents a binary token.
CannedBinaryTokenStream.BinaryToken(BytesRef) - Constructor for class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryToken
 
CannedBinaryTokenStream.BinaryToken(BytesRef, int, int) - Constructor for class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryToken
 
CannedTokenStream - Class in org.apache.lucene.analysis
TokenStream from a canned list of Tokens.
CannedTokenStream(Token...) - Constructor for class org.apache.lucene.analysis.CannedTokenStream
 
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, IndexSearcher) - Static method in class org.apache.lucene.search.QueryUtils
Various query sanity checks on a searcher, some checks are only done for instanceof IndexSearcher.
check(Random, Query, IndexSearcher, boolean) - Static method in class org.apache.lucene.search.QueryUtils
 
checkAnalysisConsistency(Random, Analyzer, boolean, String) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
checkAnalysisConsistency(Random, Analyzer, boolean, String, boolean) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
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
 
checkExit(int) - Method in class org.apache.lucene.util.TestSecurityManager
checkExplanations(Query, String, IndexSearcher) - 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, IndexSearcher, 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, IndexSearcher) - Static method in class org.apache.lucene.search.QueryUtils
deep check that explanations of a query 'score' correctly
checkFirstSkipTo(Query, IndexSearcher) - Static method in class org.apache.lucene.search.QueryUtils
check that first skip on just created scorers always goes to the right doc
checkHashEquals(Query) - Static method in class org.apache.lucene.search.QueryUtils
check very basic hashCode and equals
checkHitCollector(Random, Query, String, IndexSearcher, 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
Utility class for asserting expected hits in tests.
CheckHits() - Constructor for class org.apache.lucene.search.CheckHits
 
checkHits(Random, Query, String, IndexSearcher, 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, IndexSearcher) - Constructor for class org.apache.lucene.search.CheckHits.ExplanationAsserter
Constructs an instance which does shallow tests on the Explanation
CheckHits.ExplanationAsserter(Query, String, IndexSearcher, 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
Just collects document ids into a set.
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.
checkIndex(Directory, boolean) - Static method in class org.apache.lucene.util._TestUtil
 
checkNoMatchExplanations(Query, String, IndexSearcher, 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
utility method for blasting tokenstreams with data to make sure they don't do anything crazy
checkRandomData(Random, Analyzer, int, int) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
utility method for blasting tokenstreams with data to make sure they don't do anything crazy
checkRandomData(Random, Analyzer, int, boolean) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
utility method for blasting tokenstreams with data to make sure they don't do anything crazy
checkRandomData(Random, Analyzer, int, int, boolean) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
checkRandomData(Random, Analyzer, int, int, boolean, boolean) - 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
 
classRules - Static variable in class org.apache.lucene.util.LuceneTestCase
This controls how suite-level rules are nested.
clear() - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
clear() - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
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.BaseDirectoryWrapper
 
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.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
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.MockReaderWrapper
 
close() - Method in class org.apache.lucene.analysis.MockTokenizer
 
close() - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
 
close() - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexInput
 
close() - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexOutput
 
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.search.ShardSearchingTestBase.NodeState
 
close() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
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.FailOnNonBulkMergesInfoStream
 
close() - Method in class org.apache.lucene.util.LineFileDocs
 
close() - Method in class org.apache.lucene.util.NullInfoStream
 
close() - Method in class org.apache.lucene.util.ThrottledIndexOutput
 
closeAfterSuite(T) - Static method in class org.apache.lucene.util.LuceneTestCase
Registers a Closeable resource that should be closed after the suite completes.
closeAfterTest(T) - Method in class org.apache.lucene.util.LuceneTestCase
Registers a Closeable resource that should be closed after the test completes.
CollationTestBase - Class in org.apache.lucene.analysis
Base test class for testing Unicode collation.
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
 
collectionStatistics(String) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
commit() - Method in class org.apache.lucene.index.RandomIndexWriter
 
compareTo(FSTTester.InputOutput<T>) - Method in class org.apache.lucene.util.fst.FSTTester.InputOutput
 
CompressingCodec - Class in org.apache.lucene.codecs.compressing
A codec that uses CompressingStoredFieldsFormat for its stored fields and delegates to Lucene41Codec for everything else.
CompressingCodec(String, String, CompressionMode, int) - Constructor for class org.apache.lucene.codecs.compressing.CompressingCodec
Creates a compressing codec with a given segment suffix
CompressingCodec(String, CompressionMode, int) - Constructor for class org.apache.lucene.codecs.compressing.CompressingCodec
Creates a compressing codec with an empty segment suffix
coord(int, int) - Method in class org.apache.lucene.search.RandomSimilarityProvider
 
copy(Directory, String, String, IOContext) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
copy(Directory, String, String, IOContext) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
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
 
copyTo(AttributeImpl) - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
correct(int) - Method in class org.apache.lucene.analysis.MockCharFilter
 
crash() - Method in class org.apache.lucene.store.MockDirectoryWrapper
Simulates a crash of OS or machine by overwriting unsynced files.
createAttributeInstance(Class<? extends Attribute>) - Method in class org.apache.lucene.analysis.MockBytesAttributeFactory
 
createComponents(String, Reader) - Method in class org.apache.lucene.analysis.MockAnalyzer
 
createComponents(String, Reader) - Method in class org.apache.lucene.analysis.MockBytesAnalyzer
 
createComponents(String, Reader) - Method in class org.apache.lucene.analysis.MockPayloadAnalyzer
 
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(Directory, String, IOContext) - Method in class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat.MockIntFactory
 
createOutput(Directory, String, IOContext) - Method in class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat.MockIntFactory
 
createOutput(Directory, String, IOContext) - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntFactory
 
createOutput(String, IOContext) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
createOutput(String, IOContext) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
createPostings() - Static method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
createSlicer(String, IOContext) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
createSlicer(String, IOContext) - 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.
currentNodeVersions - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 

D

DEFAULT_LINE_DOCS_FILE - Static variable in class org.apache.lucene.util.LuceneTestCase
TODO: javadoc?
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
 
defaultCodecSupportsDocValues() - Static method in class org.apache.lucene.util.LuceneTestCase
 
delCount - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
delegate - Variable in class org.apache.lucene.store.BaseDirectoryWrapper
our in directory
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.BaseDirectoryWrapper
 
deleteFile(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
determinizeSimple(Automaton) - Static method in class org.apache.lucene.util.automaton.AutomatonTestUtil
Simple, original brics implementation of determinize()
determinizeSimple(Automaton, Set<State>) - Static method in class org.apache.lucene.util.automaton.AutomatonTestUtil
Simple, original brics implementation of determinize() Determinizes the given automaton using the given set of initial states.
dir - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
dir - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
directory - Static variable in class org.apache.lucene.search.SearchEquivalenceTestBase
 
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.AssertingDirectoryReader
 
doClose() - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
docs(Random, IndexReader, String, BytesRef, Bits, DocsEnum, int) - Static method in class org.apache.lucene.util._TestUtil
 
docs(Random, TermsEnum, Bits, DocsEnum, int) - Static method in class org.apache.lucene.util._TestUtil
 
docsConsumer(PerDocWriteState) - Method in class org.apache.lucene.codecs.mocksep.MockSepDocValuesFormat
 
docsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.mocksep.MockSepDocValuesFormat
 
document(int, StoredFieldVisitor) - Method in class org.apache.lucene.index.FieldFilterAtomicReader
 
docValues(String) - Method in class org.apache.lucene.index.FieldFilterAtomicReader
 
doesntSupportOffsets - Static variable in class org.apache.lucene.util.LuceneTestCase
 
doFail - Variable in class org.apache.lucene.store.MockDirectoryWrapper.Failure
 
doOpenIfChanged() - Method in class org.apache.lucene.index.AssertingDirectoryReader
 
doOpenIfChanged(IndexCommit) - Method in class org.apache.lucene.index.AssertingDirectoryReader
 
doOpenIfChanged(IndexWriter, boolean) - Method in class org.apache.lucene.index.AssertingDirectoryReader
 
doSearching(ExecutorService, long) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
doTest(boolean) - Method in class org.apache.lucene.util.fst.FSTTester
 
DUMMY - Static variable in class org.apache.lucene.codecs.compressing.dummy.DummyCompressingCodec
 
DummyCompressingCodec - Class in org.apache.lucene.codecs.compressing.dummy
CompressionCodec that does not compress data, useful for testing.
DummyCompressingCodec(int, boolean) - Constructor for class org.apache.lucene.codecs.compressing.dummy.DummyCompressingCodec
Constructor that allows to configure the chunk size.
DummyCompressingCodec() - Constructor for class org.apache.lucene.codecs.compressing.dummy.DummyCompressingCodec
Default constructor.
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

EMPTY_STOPSET - Static variable in class org.apache.lucene.analysis.MockTokenFilter
Empty set of stopwords
encodeCollationKey(byte[]) - Method in class org.apache.lucene.analysis.CollationTestBase
Deprecated.
only for testing deprecated filters
end - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter
 
end() - Method in class org.apache.lucene.analysis.MockTokenizer
 
end() - Method in class org.apache.lucene.analysis.ValidatingTokenFilter
 
endOffset - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
English - Class in org.apache.lucene.util
Converts numbers to english strings for testing.
ENGLISH_STOPSET - Static variable in class org.apache.lucene.analysis.MockTokenFilter
Set of common english stopwords
equals(Object) - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
equals(Object) - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
escape(String) - Static method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
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 ...
EXPLAIN_SCORE_TOLERANCE_MINIMUM - Static variable in class org.apache.lucene.search.CheckHits
In general we use a relative epsilon, but some tests do crazy things like boost documents with 0, creating tiny tiny scores where the relative difference is large but the absolute difference is tiny.
explainToleranceDelta(float, float) - Static method in class org.apache.lucene.search.CheckHits
returns a reasonable epsilon for comparing two floats, where minor differences are acceptable such as score vs.

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
FailOnNonBulkMergesInfoStream - Class in org.apache.lucene.util
Hackidy-H├Ąck-Hack to cause a test to fail on non-bulk merges
FailOnNonBulkMergesInfoStream() - Constructor for class org.apache.lucene.util.FailOnNonBulkMergesInfoStream
 
FastCompressingCodec - Class in org.apache.lucene.codecs.compressing
CompressionCodec that uses CompressionMode.FAST
FastCompressingCodec(int, boolean) - Constructor for class org.apache.lucene.codecs.compressing.FastCompressingCodec
Constructor that allows to configure the chunk size.
FastCompressingCodec() - Constructor for class org.apache.lucene.codecs.compressing.FastCompressingCodec
Default constructor.
FastDecompressionCompressingCodec - Class in org.apache.lucene.codecs.compressing
CompressionCodec that uses CompressionMode.FAST_DECOMPRESSION
FastDecompressionCompressingCodec(int, boolean) - Constructor for class org.apache.lucene.codecs.compressing.FastDecompressionCompressingCodec
Constructor that allows to configure the chunk size.
FastDecompressionCompressingCodec() - Constructor for class org.apache.lucene.codecs.compressing.FastDecompressionCompressingCodec
Default constructor.
FieldFilterAtomicReader - Class in org.apache.lucene.index
A FilterAtomicReader that exposes only a subset of fields from the underlying wrapped reader.
FieldFilterAtomicReader(AtomicReader, Set<String>, boolean) - Constructor for class org.apache.lucene.index.FieldFilterAtomicReader
 
fieldInfosFormat() - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWCodec
 
fields() - Method in class org.apache.lucene.index.AssertingAtomicReader
 
fields() - Method in class org.apache.lucene.index.FieldFilterAtomicReader
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.asserting.AssertingPostingsFormat
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.bloom.TestBloomFilteredLucene41Postings
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.lucene40.Lucene40RWPostingsFormat
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.lucene41ords.Lucene41WithOrds
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.mockrandom.MockRandomPostingsFormat
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.mocksep.MockSepPostingsFormat
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.nestedpulsing.NestedPulsingPostingsFormat
 
fieldsConsumer(SegmentWriteState) - Method in class org.apache.lucene.codecs.ramonly.RAMOnlyPostingsFormat
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.asserting.AssertingPostingsFormat
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.bloom.TestBloomFilteredLucene41Postings
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.lucene41ords.Lucene41WithOrds
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.mockrandom.MockRandomPostingsFormat
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.mocksep.MockSepPostingsFormat
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.nestedpulsing.NestedPulsingPostingsFormat
 
fieldsProducer(SegmentReadState) - Method in class org.apache.lucene.codecs.ramonly.RAMOnlyPostingsFormat
 
fieldsReader(Directory, SegmentInfo, FieldInfos, IOContext) - Method in class org.apache.lucene.codecs.asserting.AssertingStoredFieldsFormat
 
fieldsWriter(Directory, SegmentInfo, IOContext) - Method in class org.apache.lucene.codecs.asserting.AssertingStoredFieldsFormat
 
fileExists(String) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
fileExists(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
fileLength(String) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
fileLength(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
fillBytesRef() - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
fillBytesRef() - Method in class org.apache.lucene.analysis.MockUTF16TermAttributeImpl
 
findForcedDeletesMerges(SegmentInfos) - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
findForcedMerges(SegmentInfos, int, Map<SegmentInfoPerCommit, Boolean>) - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
findMerges(MergePolicy.MergeTrigger, SegmentInfos) - Method in class org.apache.lucene.index.MockRandomMergePolicy
 
finish() - Method in class org.apache.lucene.search.ShardSearchingTestBase
 
finishDoc() - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
 
finishTerm(TermStats) - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
Called when we are done adding docs to this term
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
 
flushTermsBlock(int, int) - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
 
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
 
formatNames - Variable in class org.apache.lucene.index.RandomCodec
unique set of format names this codec knows about
FSTTester<T> - Class in org.apache.lucene.util.fst
Helper class to test FSTs.
FSTTester(Random, Directory, int, List<FSTTester.InputOutput<T>>, Outputs<T>, boolean) - Constructor for class org.apache.lucene.util.fst.FSTTester
 
FSTTester.InputOutput<T> - Class in org.apache.lucene.util.fst
Holds one input/output pair.
FSTTester.InputOutput(IntsRef, T) - Constructor for class org.apache.lucene.util.fst.FSTTester.InputOutput
 

G

get(String) - Method in class org.apache.lucene.search.RandomSimilarityProvider
 
getAndResetClearCalled() - Method in interface org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttribute
 
getAndResetClearCalled() - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
getBytesRef() - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
getCheckIndexOnClose() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
getCodec() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
Returns the Codec to run tests against
getCombinedCoreAndDeletesKey() - Method in class org.apache.lucene.index.AssertingAtomicReader
 
getCombinedCoreAndDeletesKey() - Method in class org.apache.lucene.index.AssertingDirectoryReader
 
getCombinedCoreAndDeletesKey() - Method in class org.apache.lucene.search.QueryUtils.FCInvisibleMultiReader
 
getCoreCacheKey() - Method in class org.apache.lucene.index.AssertingAtomicReader
 
getCoreCacheKey() - Method in class org.apache.lucene.index.AssertingDirectoryReader
 
getCoreCacheKey() - Method in class org.apache.lucene.search.QueryUtils.FCInvisibleMultiReader
 
getCrossCheckTermVectorsOnClose() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
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
 
getDelegate() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getDirectory(Directory) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
getEnablePositionIncrements() - Method in class org.apache.lucene.analysis.MockTokenFilter
 
getFieldInfos() - Method in class org.apache.lucene.index.FieldFilterAtomicReader
 
getFieldInfos(SegmentInfo) - Static method in class org.apache.lucene.util._TestUtil
 
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
 
getIndexCommit() - Method in class org.apache.lucene.index.AssertingDirectoryReader
 
getInputCloneCount() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getIntFactory() - Method in class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat
 
getLockFactory() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
getLockFactory() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getLockID() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
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.
getNoDeleteOpenFile() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getOnlySegmentReader(DirectoryReader) - Static method in class org.apache.lucene.util.LuceneTestCase
Some tests expect the directory to contain a single segment, and want to do tests on that segment's reader.
getOpenDeletedFiles() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
getPositionIncrementGap(String) - Method in class org.apache.lucene.analysis.MockAnalyzer
 
getPostingsFormat(String) - Static method in class org.apache.lucene.util._TestUtil
 
getPostingsFormat(Codec, String) - Static method in class org.apache.lucene.util._TestUtil
 
getPostingsFormatForField(String) - Method in class org.apache.lucene.index.RandomCodec
 
getRandomAcceptedString(Random) - Method in class org.apache.lucene.util.automaton.AutomatonTestUtil.RandomAcceptedStrings
 
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.
getTempDir(String) - Static method in class org.apache.lucene.util._TestUtil
Returns a temp directory, based on the given description.
getTermVectors(int) - Method in class org.apache.lucene.index.AssertingAtomicReader
 
getTermVectors(int) - Method in class org.apache.lucene.index.FieldFilterAtomicReader
 
getTestClass() - Static method in class org.apache.lucene.util.LuceneTestCase
Return the current class being tested.
getTestClass() - Method in class org.apache.lucene.util.TestRuleStoreClassName
Returns the test class currently executing in this rule.
getTestMethods(Class<?>, ClassModel) - Method in class org.apache.lucene.util.LuceneJUnit3MethodProvider
 
getTestName() - Method in class org.apache.lucene.util.LuceneTestCase
Return the name of the currently executing test case.
getVersion() - Method in class org.apache.lucene.index.AssertingDirectoryReader
 

H

hadFailures() - Method in class org.apache.lucene.util.TestRuleMarkFailure
Check if this object had any marked failures.
hashCode() - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
 
hashCode() - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
HighCompressionCompressingCodec - Class in org.apache.lucene.codecs.compressing
CompressionCodec that uses CompressionMode.HIGH_COMPRESSION
HighCompressionCompressingCodec(int, boolean) - Constructor for class org.apache.lucene.codecs.compressing.HighCompressionCompressingCodec
Constructor that allows to configure the chunk size.
HighCompressionCompressingCodec() - Constructor for class org.apache.lucene.codecs.compressing.HighCompressionCompressingCodec
Default constructor.
hits2str(ScoreDoc[], ScoreDoc[], int, int) - Static method in class org.apache.lucene.search.CheckHits
 
HOUR - Static variable in class org.apache.lucene.util.TimeUnits
1 hour in milliseconds

I

in - Variable in class org.apache.lucene.index.AssertingDirectoryReader
 
incrementToken() - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream
 
incrementToken() - Method in class org.apache.lucene.analysis.CannedTokenStream
 
incrementToken() - Method in class org.apache.lucene.analysis.MockFixedLengthPayloadFilter
 
incrementToken() - Method in class org.apache.lucene.analysis.MockGraphTokenFilter
 
incrementToken() - Method in class org.apache.lucene.analysis.MockHoleInjectingTokenFilter
 
incrementToken() - Method in class org.apache.lucene.analysis.MockRandomLookaheadTokenFilter
 
incrementToken() - Method in class org.apache.lucene.analysis.MockTokenFilter
 
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.analysis.ValidatingTokenFilter
 
index() - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexInput
 
index() - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexOutput
 
indexPossiblyExists() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
don't rely upon DirectoryReader.fileExists to determine if we should checkIndex() or not.
INFOSTREAM - Static variable in class org.apache.lucene.util.LuceneTestCase
TODO: javadoc?
initSearcher(long[]) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
input - Variable in class org.apache.lucene.util.fst.FSTTester.InputOutput
 
inputPos - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter
 
inputTokens - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
insertToken() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter
Call this only from within afterPosition, to insert a new token.
intersect(CompiledAutomaton, BytesRef) - Method in class org.apache.lucene.index.AssertingAtomicReader.AssertingTerms
 
intToEnglish(int) - Static method in class org.apache.lucene.util.English
 
intToEnglish(int, StringBuilder) - Static method in class org.apache.lucene.util.English
 
isAssumption(Throwable) - Static method in class org.apache.lucene.util.TestRuleMarkFailure
Is a given exception (or a MultipleFailureException) an AssumptionViolatedException?
isCurrent() - Method in class org.apache.lucene.index.AssertingDirectoryReader
 
isEnabled(String) - Method in class org.apache.lucene.util.FailOnNonBulkMergesInfoStream
 
isEnabled(String) - Method in class org.apache.lucene.util.NullInfoStream
 
isFiniteSlow(Automaton) - Static method in class org.apache.lucene.util.automaton.AutomatonTestUtil
Returns true if the language of this automaton is finite.
isMyEvilException(Throwable) - Static method in class org.apache.lucene.analysis.MockReaderWrapper
 
isOpen() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
isRunningNested() - Static method in class org.apache.lucene.util.TestRuleIgnoreTestSuites
Check if a suite class is running as a nested test.
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
 
iterator() - Method in class org.apache.lucene.index.AssertingAtomicReader.AssertingFields
 
iterator(TermsEnum) - Method in class org.apache.lucene.index.AssertingAtomicReader.AssertingTerms
 

J

JENKINS_LARGE_LINE_DOCS_FILE - Static variable in class org.apache.lucene.util.LuceneTestCase
TODO: javadoc?

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 benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
LineFileDocs(Random, String, boolean) - 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
 
LineFileDocs(Random, boolean) - Constructor for class org.apache.lucene.util.LineFileDocs
 
listAll() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
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
localSearch(Query, int) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
localSearch(Query, int, Sort) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
localSearchAfter(ScoreDoc, Query, int) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
longToEnglish(long) - Static method in class org.apache.lucene.util.English
 
longToEnglish(long, StringBuilder) - Static method in class org.apache.lucene.util.English
 
LookaheadTokenFilter<T extends LookaheadTokenFilter.Position> - Class in org.apache.lucene.analysis
An abstract TokenFilter to make it easier to build graph token filters requiring some lookahead.
LookaheadTokenFilter(TokenStream) - Constructor for class org.apache.lucene.analysis.LookaheadTokenFilter
 
LookaheadTokenFilter.Position - Class in org.apache.lucene.analysis
Holds all state for a single position; subclass this to record other state at each position.
LookaheadTokenFilter.Position() - Constructor for class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
Lucene40PostingsWriter - Class in org.apache.lucene.codecs.lucene40
Concrete class that writes the 4.0 frq/prx postings format.
Lucene40PostingsWriter(SegmentWriteState) - Constructor for class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
Lucene40PostingsWriter(SegmentWriteState, int) - Constructor for class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
Creates a Lucene40PostingsWriter, with the specified skipInterval.
Lucene40RWPostingsFormat - Class in org.apache.lucene.codecs.lucene40
Read-write version of Lucene40PostingsFormat for testing.
Lucene40RWPostingsFormat() - Constructor for class org.apache.lucene.codecs.lucene40.Lucene40RWPostingsFormat
 
Lucene40SkipListWriter - Class in org.apache.lucene.codecs.lucene40
Deprecated.
Only for reading old 4.0 segments
Lucene40SkipListWriter(int, int, int, IndexOutput, IndexOutput) - Constructor for class org.apache.lucene.codecs.lucene40.Lucene40SkipListWriter
Deprecated.
Sole constructor.
Lucene41WithOrds - Class in org.apache.lucene.codecs.lucene41ords
Customized version of Lucene41Codec that uses FixedGapTermsIndexWriter.
Lucene41WithOrds() - Constructor for class org.apache.lucene.codecs.lucene41ords.Lucene41WithOrds
 
LuceneJUnit3MethodProvider - Class in org.apache.lucene.util
Backwards compatible test* method provider (public, non-static).
LuceneJUnit3MethodProvider() - Constructor for class org.apache.lucene.util.LuceneJUnit3MethodProvider
 
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.AwaitsFix - Annotation Type in org.apache.lucene.util
Annotation for tests which exhibit a known issue and are temporarily disabled.
LuceneTestCase.BadApple - Annotation Type in org.apache.lucene.util
Annotation for tests that fail frequently and should be moved to a "vault" plan in Jenkins.
LuceneTestCase.Nightly - Annotation Type in org.apache.lucene.util
Annotation for tests that should only be run during nightly builds.
LuceneTestCase.Slow - Annotation Type in org.apache.lucene.util
Annotation for tests that are slow.
LuceneTestCase.SuppressCodecs - Annotation Type in org.apache.lucene.util
Annotation for test classes that should avoid certain codec types (because they are expensive, for example).
LuceneTestCase.Weekly - Annotation Type in org.apache.lucene.util
Annotation for tests that should only be run during weekly builds

M

makeLock(String) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
makeLock(String) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
makeLock(String) - Method in class org.apache.lucene.store.MockLockFactoryWrapper
 
markFailed() - Method in class org.apache.lucene.util.TestRuleMarkFailure
Taints this object and any chained as having failures.
markSupported() - Method in class org.apache.lucene.analysis.MockReaderWrapper
 
maxDoc() - Method in class org.apache.lucene.index.RandomIndexWriter
 
maybeWrapReader(IndexReader) - Static method in class org.apache.lucene.util.LuceneTestCase
Sometimes wrap the IndexReader as slow, parallel or filter reader (or combinations of that)
mBitsToBytes(int) - Static method in class org.apache.lucene.util.ThrottledIndexOutput
 
message(String, String) - Method in class org.apache.lucene.util.FailOnNonBulkMergesInfoStream
 
message(String, String) - Method in class org.apache.lucene.util.NullInfoStream
 
mgr - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
minimizeSimple(Automaton) - Static method in class org.apache.lucene.util.automaton.AutomatonTestUtil
Simple, original brics implementation of Brzozowski minimize()
MINUTE - Static variable in class org.apache.lucene.util.TimeUnits
1 minute in milliseconds
MockAnalyzer - Class in org.apache.lucene.analysis
Analyzer for testing
MockAnalyzer(Random, CharacterRunAutomaton, boolean, CharacterRunAutomaton, boolean) - Constructor for class org.apache.lucene.analysis.MockAnalyzer
Creates a new MockAnalyzer.
MockAnalyzer(Random, CharacterRunAutomaton, boolean) - Constructor for class org.apache.lucene.analysis.MockAnalyzer
MockAnalyzer(Random) - Constructor for class org.apache.lucene.analysis.MockAnalyzer
Create a Whitespace-lowercasing analyzer with no stopwords removal.
MockBytesAnalyzer - Class in org.apache.lucene.analysis
Analyzer for testing that encodes terms as UTF-16 bytes.
MockBytesAnalyzer() - Constructor for class org.apache.lucene.analysis.MockBytesAnalyzer
 
MockBytesAttributeFactory - Class in org.apache.lucene.analysis
Attribute factory that implements CharTermAttribute with MockUTF16TermAttributeImpl
MockBytesAttributeFactory() - Constructor for class org.apache.lucene.analysis.MockBytesAttributeFactory
 
MockCharFilter - Class in org.apache.lucene.analysis
the purpose of this charfilter is to send offsets out of bounds if the analyzer doesn't use correctOffset or does incorrect offset math.
MockCharFilter(Reader, int) - Constructor for class org.apache.lucene.analysis.MockCharFilter
 
MockCharFilter(Reader) - Constructor for class org.apache.lucene.analysis.MockCharFilter
 
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
Enum for controlling hard disk throttling.
MockFixedIntBlockPostingsFormat - Class in org.apache.lucene.codecs.mockintblock
A silly test codec to verify core support for fixed sized int block encoders is working.
MockFixedIntBlockPostingsFormat() - Constructor for class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat
 
MockFixedIntBlockPostingsFormat(int) - Constructor for class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat
 
MockFixedIntBlockPostingsFormat.MockIntFactory - Class in org.apache.lucene.codecs.mockintblock
Encodes blocks as vInts of a fixed block size.
MockFixedIntBlockPostingsFormat.MockIntFactory(int) - Constructor for class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat.MockIntFactory
 
MockFixedLengthPayloadFilter - Class in org.apache.lucene.analysis
TokenFilter that adds random fixed-length payloads.
MockFixedLengthPayloadFilter(Random, TokenStream, int) - Constructor for class org.apache.lucene.analysis.MockFixedLengthPayloadFilter
 
MockGraphTokenFilter - Class in org.apache.lucene.analysis
Randomly inserts overlapped (posInc=0) tokens with posLength sometimes > 1.
MockGraphTokenFilter(Random, TokenStream) - Constructor for class org.apache.lucene.analysis.MockGraphTokenFilter
 
MockHoleInjectingTokenFilter - Class in org.apache.lucene.analysis
Randomly injects holes (similar to what a stopfilter would do)
MockHoleInjectingTokenFilter(Random, TokenStream) - Constructor for class org.apache.lucene.analysis.MockHoleInjectingTokenFilter
 
MockIndexInput - Class in org.apache.lucene.index
IndexInput backed by a byte[] for testing.
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
Used by MockDirectoryWrapper to wrap another factory and track open locks.
MockLockFactoryWrapper(MockDirectoryWrapper, LockFactory) - Constructor for class org.apache.lucene.store.MockLockFactoryWrapper
 
MockPayloadAnalyzer - Class in org.apache.lucene.analysis
Wraps a whitespace tokenizer with a filter that sets the first token, and odd tokens to posinc=1, and all others to 0, encoding the position as pos: XXX in the payload.
MockPayloadAnalyzer() - Constructor for class org.apache.lucene.analysis.MockPayloadAnalyzer
 
MockRandomLookaheadTokenFilter - Class in org.apache.lucene.analysis
Uses LookaheadTokenFilter to randomly peek at future tokens.
MockRandomLookaheadTokenFilter(Random, TokenStream) - Constructor for class org.apache.lucene.analysis.MockRandomLookaheadTokenFilter
 
MockRandomMergePolicy - Class in org.apache.lucene.index
MergePolicy that makes random decisions for testing.
MockRandomMergePolicy(Random) - Constructor for class org.apache.lucene.index.MockRandomMergePolicy
 
MockRandomPostingsFormat - Class in org.apache.lucene.codecs.mockrandom
Randomly combines terms index impl w/ postings impls.
MockRandomPostingsFormat() - Constructor for class org.apache.lucene.codecs.mockrandom.MockRandomPostingsFormat
 
MockRandomPostingsFormat(Random) - Constructor for class org.apache.lucene.codecs.mockrandom.MockRandomPostingsFormat
 
MockReaderWrapper - Class in org.apache.lucene.analysis
Wraps a Reader, and can throw random or fixed exceptions, and spoon feed read chars.
MockReaderWrapper(Random, Reader) - Constructor for class org.apache.lucene.analysis.MockReaderWrapper
 
MockSepDocValuesFormat - Class in org.apache.lucene.codecs.mocksep
Separate-file docvalues implementation
MockSepDocValuesFormat() - Constructor for class org.apache.lucene.codecs.mocksep.MockSepDocValuesFormat
 
MockSepPostingsFormat - Class in org.apache.lucene.codecs.mocksep
A silly codec that simply writes each file separately as single vInts.
MockSepPostingsFormat() - Constructor for class org.apache.lucene.codecs.mocksep.MockSepPostingsFormat
 
MockSingleIntFactory - Class in org.apache.lucene.codecs.mocksep
Encodes ints directly as vInts with MockSingleIntIndexOutput
MockSingleIntFactory() - Constructor for class org.apache.lucene.codecs.mocksep.MockSingleIntFactory
 
MockSingleIntIndexInput - Class in org.apache.lucene.codecs.mocksep
Reads IndexInputs written with MockSingleIntIndexOutput.
MockSingleIntIndexInput(Directory, String, IOContext) - Constructor for class org.apache.lucene.codecs.mocksep.MockSingleIntIndexInput
 
MockSingleIntIndexInput.Reader - Class in org.apache.lucene.codecs.mocksep
Just reads a vInt directly from the file.
MockSingleIntIndexInput.Reader(IndexInput) - Constructor for class org.apache.lucene.codecs.mocksep.MockSingleIntIndexInput.Reader
 
MockSingleIntIndexOutput - Class in org.apache.lucene.codecs.mocksep
Writes ints directly to the file (not in blocks) as vInt.
MockSingleIntIndexOutput(Directory, String, IOContext) - Constructor for class org.apache.lucene.codecs.mocksep.MockSingleIntIndexOutput
 
MockTokenFilter - Class in org.apache.lucene.analysis
A tokenfilter for testing that removes terms accepted by a DFA.
MockTokenFilter(TokenStream, CharacterRunAutomaton) - Constructor for class org.apache.lucene.analysis.MockTokenFilter
Create a new MockTokenFilter.
MockTokenizer - Class in org.apache.lucene.analysis
Tokenizer for testing.
MockTokenizer(AttributeSource.AttributeFactory, Reader, CharacterRunAutomaton, boolean, int) - Constructor for class org.apache.lucene.analysis.MockTokenizer
 
MockTokenizer(Reader, CharacterRunAutomaton, boolean, int) - Constructor for class org.apache.lucene.analysis.MockTokenizer
 
MockTokenizer(Reader, CharacterRunAutomaton, boolean) - Constructor for class org.apache.lucene.analysis.MockTokenizer
 
MockTokenizer(Reader) - Constructor for class org.apache.lucene.analysis.MockTokenizer
MockUTF16TermAttributeImpl - Class in org.apache.lucene.analysis
Extension of CharTermAttributeImpl that encodes the term text as UTF-16 bytes instead of as UTF-8 bytes.
MockUTF16TermAttributeImpl() - Constructor for class org.apache.lucene.analysis.MockUTF16TermAttributeImpl
 
MockVariableIntBlockPostingsFormat - Class in org.apache.lucene.codecs.mockintblock
A silly test codec to verify core support for variable sized int block encoders is working.
MockVariableIntBlockPostingsFormat() - Constructor for class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat
 
MockVariableIntBlockPostingsFormat(int) - Constructor for class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat
 
MockVariableIntBlockPostingsFormat.MockIntFactory - Class in org.apache.lucene.codecs.mockintblock
If the first value is <= 3, writes baseBlockSize vInts at once, otherwise writes 2*baseBlockSize vInts.
MockVariableIntBlockPostingsFormat.MockIntFactory(int) - Constructor for class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat.MockIntFactory
 
MockVariableLengthPayloadFilter - Class in org.apache.lucene.analysis
TokenFilter that adds random variable-length payloads.
MockVariableLengthPayloadFilter(Random, TokenStream) - Constructor for class org.apache.lucene.analysis.MockVariableLengthPayloadFilter
 
myNodeID - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
myNodeID - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 

N

NestedPulsingPostingsFormat - Class in org.apache.lucene.codecs.nestedpulsing
Pulsing(1, Pulsing(2, Lucene41))
NestedPulsingPostingsFormat() - Constructor for class org.apache.lucene.codecs.nestedpulsing.NestedPulsingPostingsFormat
 
newAlcoholicMergePolicy() - Static method in class org.apache.lucene.util.LuceneTestCase
 
newAlcoholicMergePolicy(Random, TimeZone) - Static method in class org.apache.lucene.util.LuceneTestCase
 
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, FieldType) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newField(Random, String, String, FieldType) - Static method in class org.apache.lucene.util.LuceneTestCase
 
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
newIOContext(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
TODO: javadoc
newIOContext(Random, IOContext) - Static method in class org.apache.lucene.util.LuceneTestCase
TODO: javadoc
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
 
newMockDirectory() - Static method in class org.apache.lucene.util.LuceneTestCase
 
newMockDirectory(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newMockFSDirectory(File) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newPosition() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter
 
newPosition() - Method in class org.apache.lucene.analysis.MockGraphTokenFilter
 
newPosition() - Method in class org.apache.lucene.analysis.MockRandomLookaheadTokenFilter
 
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.
newStringField(String, String, Field.Store) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newStringField(Random, String, String, Field.Store) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newTextField(String, String, Field.Store) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newTextField(Random, String, String, Field.Store) - Static method in class org.apache.lucene.util.LuceneTestCase
 
newTieredMergePolicy() - Static method in class org.apache.lucene.util.LuceneTestCase
 
newTieredMergePolicy(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
 
next() - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexInput.Reader
Reads next single int
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
nextLong(Random, long, long) - Static method in class org.apache.lucene.util._TestUtil
start and end are BOTH inclusive
nextRead - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
nextState() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
nextToken() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter
Call this when you are done looking ahead; it will set the next token to return.
nodes - Variable in class org.apache.lucene.search.ShardSearchingTestBase
 
nodeVersions - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
normalize(int) - Method in class org.apache.lucene.analysis.MockTokenizer
 
normsFormat() - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWCodec
 
normValues(String) - Method in class org.apache.lucene.index.FieldFilterAtomicReader
 
NullInfoStream - Class in org.apache.lucene.util
Prints nothing.
NullInfoStream() - Constructor for class org.apache.lucene.util.NullInfoStream
 
numDocs() - Method in class org.apache.lucene.index.RandomIndexWriter
 

O

offsetAtt - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter
 
openInput(Directory, String, IOContext) - Method in class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat.MockIntFactory
 
openInput(Directory, String, IOContext) - Method in class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat.MockIntFactory
 
openInput(Directory, String, IOContext) - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntFactory
 
openInput(String, IOContext) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
openInput(String, IOContext) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
org.apache.lucene.analysis - package org.apache.lucene.analysis
Support for testing analysis components.
org.apache.lucene.codecs.appending - package org.apache.lucene.codecs.appending
Codec for generating test indexes in the Appending format
org.apache.lucene.codecs.asserting - package org.apache.lucene.codecs.asserting
Codec for testing that asserts various contracts of the codec apis.
org.apache.lucene.codecs.bloom - package org.apache.lucene.codecs.bloom
Support for generating test indexes using the BloomFilteringPostingsFormat
org.apache.lucene.codecs.compressing - package org.apache.lucene.codecs.compressing
Support for testing CompressingStoredFieldsFormat.
org.apache.lucene.codecs.compressing.dummy - package org.apache.lucene.codecs.compressing.dummy
Dummy CompressingCodec implementation used for testing.
org.apache.lucene.codecs.lucene3x - package org.apache.lucene.codecs.lucene3x
Support for generating test indexes in the Lucene 3.x index format.
org.apache.lucene.codecs.lucene40 - package org.apache.lucene.codecs.lucene40
Support for testing Lucene40PostingsFormat.
org.apache.lucene.codecs.lucene41ords - package org.apache.lucene.codecs.lucene41ords
Codec for testing that supports TermsEnum.ord()
org.apache.lucene.codecs.mockintblock - package org.apache.lucene.codecs.mockintblock
Integer encoder implementations for testing.
org.apache.lucene.codecs.mockrandom - package org.apache.lucene.codecs.mockrandom
Frankenstein codec for testing that pieces together random components.
org.apache.lucene.codecs.mocksep - package org.apache.lucene.codecs.mocksep
Very simple implementations of org.apache.lucene.codecs.sep for testing.
org.apache.lucene.codecs.nestedpulsing - package org.apache.lucene.codecs.nestedpulsing
Codec for testing that wraps PulsingPostingsFormat with itself.
org.apache.lucene.codecs.ramonly - package org.apache.lucene.codecs.ramonly
Codec for testing that never writes to disk.
org.apache.lucene.index - package org.apache.lucene.index
Support for testing of indexes.
org.apache.lucene.search - package org.apache.lucene.search
Support for testing search components.
org.apache.lucene.store - package org.apache.lucene.store
Support for testing store mechanisms.
org.apache.lucene.util - package org.apache.lucene.util
General test support.
org.apache.lucene.util.automaton - package org.apache.lucene.util.automaton
Support for testing automata.
org.apache.lucene.util.fst - package org.apache.lucene.util.fst
Support for FST testing.
out - Variable in class org.apache.lucene.analysis.TokenStreamToDot
 
output - Variable in class org.apache.lucene.util.fst.FSTTester.InputOutput
 
outputPos - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter
 
outputsEqual(T, T) - Method in class org.apache.lucene.util.fst.FSTTester
 

P

packCount - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
peekToken() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter
Returns true if there is a new token.
posIncAtt - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter
 
positions - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter
 
posLenAtt - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter
 
postingsFormat() - Method in class org.apache.lucene.codecs.appending.AppendingRWCodec
 
postingsFormat() - Method in class org.apache.lucene.codecs.asserting.AssertingCodec
 
postingsFormat() - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWCodec
 
PREFLEX_IMPERSONATION_IS_ACTIVE - Static variable in class org.apache.lucene.util.LuceneTestCase
 
PreFlexRWCodec - Class in org.apache.lucene.codecs.lucene3x
Writes 3.x-like indexes (not perfect emulation yet) for testing only!
PreFlexRWCodec() - Constructor for class org.apache.lucene.codecs.lucene3x.PreFlexRWCodec
 
PreFlexRWSkipListWriter - Class in org.apache.lucene.codecs.lucene3x
PreFlexRW skiplist implementation.
PreFlexRWSkipListWriter(int, int, int, IndexOutput, IndexOutput) - Constructor for class org.apache.lucene.codecs.lucene3x.PreFlexRWSkipListWriter
 
PROPERTY_RUN_NESTED - Static variable in class org.apache.lucene.util.TestRuleIgnoreTestSuites
A boolean system property indicating nested suites should be executed normally.
purgeFieldCache(IndexReader) - Static method in class org.apache.lucene.search.QueryUtils
 

Q

queryNorm(float) - Method in class org.apache.lucene.search.RandomSimilarityProvider
 
QueryUtils - Class in org.apache.lucene.search
Utility class for sanity-checking queries.
QueryUtils() - Constructor for class org.apache.lucene.search.QueryUtils
 
QueryUtils.FCInvisibleMultiReader - Class in org.apache.lucene.search
This is a MultiReader that can be used for randomly wrapping other readers without creating FieldCache insanity.
QueryUtils.FCInvisibleMultiReader(IndexReader...) - Constructor for class org.apache.lucene.search.QueryUtils.FCInvisibleMultiReader
 
QuickPatchThreadsFilter - Class in org.apache.lucene.util
Last minute patches.
QuickPatchThreadsFilter() - Constructor for class org.apache.lucene.util.QuickPatchThreadsFilter
 

R

RAMOnlyPostingsFormat - Class in org.apache.lucene.codecs.ramonly
Stores all postings data in RAM, but writes a small token (header + single int) to identify which "slot" the index is using in RAM HashMap.
RAMOnlyPostingsFormat() - Constructor for class org.apache.lucene.codecs.ramonly.RAMOnlyPostingsFormat
 
random() - Static method in class org.apache.lucene.util.LuceneTestCase
Access to the current RandomizedContext's Random instance.
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 to scale your tests (for nightly builds).
randomAutomaton(Random) - Static method in class org.apache.lucene.util.automaton.AutomatonTestUtil
return a random NFA/DFA for testing
RandomCodec - Class in org.apache.lucene.index
Codec that assigns per-field random postings formats.
RandomCodec(Random, Set<String>) - Constructor for class org.apache.lucene.index.RandomCodec
 
RandomCodec(Random) - Constructor for class org.apache.lucene.index.RandomCodec
 
randomFilter() - Method in class org.apache.lucene.search.SearchEquivalenceTestBase
Returns a random filter over the document set
randomFilterStrategy(Random) - Static method in class org.apache.lucene.util._TestUtil
 
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.
randomHtmlishString(Random, int) - Static method in class org.apache.lucene.util._TestUtil
 
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 MockAnalyzer
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
randomInstance(Random, int, boolean) - Static method in class org.apache.lucene.codecs.compressing.CompressingCodec
Create a random instance.
randomInstance(Random) - Static method in class org.apache.lucene.codecs.compressing.CompressingCodec
Creates a random CompressingCodec that is using an empty segment suffix
randomInstance(Random, boolean) - Static method in class org.apache.lucene.codecs.compressing.CompressingCodec
Creates a random CompressingCodec that is using a segment suffix
randomLocale(Random) - Static method in class org.apache.lucene.util.LuceneTestCase
Return a random Locale from the available locales on the system.
randomlyRecaseCodePoints(Random, String) - Static method in class org.apache.lucene.util._TestUtil
Randomly upcases, downcases, or leaves intact each code point in the given string
randomPattern(Random) - Static method in class org.apache.lucene.util._TestUtil
Returns a valid (compiling) Pattern instance with random stuff inside.
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.
randomRegexp(Random) - Static method in class org.apache.lucene.util.automaton.AutomatonTestUtil
Returns random string, including full unicode range.
randomRegexpishString(Random) - Static method in class org.apache.lucene.util._TestUtil
Returns a String thats "regexpish" (contains lots of operators typically found in regular expressions) If you call this enough times, you might get a valid regex!
randomRegexpishString(Random, int) - Static method in class org.apache.lucene.util._TestUtil
Returns a String thats "regexpish" (contains lots of operators typically found in regular expressions) If you call this enough times, you might get a valid regex!
RandomSimilarityProvider - Class in org.apache.lucene.search
Similarity implementation that randomizes Similarity implementations per-field.
RandomSimilarityProvider(Random) - Constructor for class org.apache.lucene.search.RandomSimilarityProvider
 
randomSimpleString(Random, int) - Static method in class org.apache.lucene.util._TestUtil
 
randomSimpleString(Random) - Static method in class org.apache.lucene.util._TestUtil
 
randomSimpleStringRange(Random, char, char, int) - Static method in class org.apache.lucene.util._TestUtil
 
randomTerm() - Method in class org.apache.lucene.search.SearchEquivalenceTestBase
returns a term suitable for searching.
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.
randomWhitespace(Random, int, int) - Static method in class org.apache.lucene.util._TestUtil
Returns a random string in the specified length range consisting entirely of whitespace characters
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
 
read() - Method in class org.apache.lucene.analysis.MockCharFilter
 
read(char[], int, int) - Method in class org.apache.lucene.analysis.MockCharFilter
 
read(char[], int, int) - Method in class org.apache.lucene.analysis.MockReaderWrapper
 
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
 
readChar() - Method in class org.apache.lucene.analysis.MockTokenizer
 
readCodePoint() - Method in class org.apache.lucene.analysis.MockTokenizer
 
reader() - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexInput
 
reader - Static variable in class org.apache.lucene.search.SearchEquivalenceTestBase
 
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
 
readShort() - 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
 
ready() - Method in class org.apache.lucene.analysis.MockReaderWrapper
 
reduceOpenFiles(IndexWriter) - Static method in class org.apache.lucene.util._TestUtil
just tries to configure things to keep the open file count lowish
reject(Thread) - Method in class org.apache.lucene.util.QuickPatchThreadsFilter
 
release(ShardSearchingTestBase.NodeState.ShardIndexSearcher) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
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
 
reopen() - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
reset() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
reset() - Method in class org.apache.lucene.analysis.LookaheadTokenFilter
 
reset() - Method in class org.apache.lucene.analysis.MockGraphTokenFilter
 
reset() - Method in class org.apache.lucene.analysis.MockHoleInjectingTokenFilter
 
reset() - Method in class org.apache.lucene.analysis.MockRandomLookaheadTokenFilter
 
reset() - Method in class org.apache.lucene.analysis.MockTokenizer
 
reset() - Method in class org.apache.lucene.analysis.ValidatingTokenFilter
 
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
 
resetSkip() - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWSkipListWriter
 
resetSkip() - Method in class org.apache.lucene.codecs.lucene40.Lucene40SkipListWriter
Deprecated.
 
Rethrow - Class in org.apache.lucene.util
Sneaky: rethrowing checked exceptions as unchecked ones.
Rethrow() - Constructor for class org.apache.lucene.util.Rethrow
 
rethrow(Throwable) - Static method in class org.apache.lucene.util.Rethrow
Rethrows t (identical object).
rewrite(Query) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
rmDir(File) - Static method in class org.apache.lucene.util._TestUtil
Deletes a directory and everything underneath it.
ruleChain - Variable in class org.apache.lucene.util.LuceneTestCase
This controls how individual test rules are nested.
RunListenerPrintReproduceInfo - Class in org.apache.lucene.util
A suite listener printing a "reproduce string".
RunListenerPrintReproduceInfo() - Constructor for class org.apache.lucene.util.RunListenerPrintReproduceInfo
 
runSearchThreads(long) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
runTest(String) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 

S

s1 - Static variable in class org.apache.lucene.search.SearchEquivalenceTestBase
 
s2 - Static variable in class org.apache.lucene.search.SearchEquivalenceTestBase
 
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
 
search(Query, int) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
search(Query, int, Sort) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
searchAfter(ScoreDoc, Query, int) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
SearchEquivalenceTestBase - Class in org.apache.lucene.search
Simple base class for checking search equivalence.
SearchEquivalenceTestBase() - Constructor for class org.apache.lucene.search.SearchEquivalenceTestBase
 
searcher - Variable in class org.apache.lucene.search.ShardSearchingTestBase.SearcherAndVersion
 
searchers - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
SECOND - Static variable in class org.apache.lucene.util.TimeUnits
1 second in milliseconds
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
 
segmentInfoFormat() - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWCodec
 
setAddDocValuesFields(boolean) - Method in class org.apache.lucene.index.RandomIndexWriter
set to false if you don't want RandomIndexWriter adding docvalues fields.
setAssertNoUnrefencedFilesOnClose(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setBytesRef(BytesRef) - Method in interface org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttribute
Set the current binary value.
setBytesRef(BytesRef) - Method in class org.apache.lucene.analysis.CannedBinaryTokenStream.BinaryTermAttributeImpl
 
setCheckIndexOnClose(boolean) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
Set whether or not checkindex should be run on close
setCrossCheckTermVectorsOnClose(boolean) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
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.
setEnablePositionIncrements(boolean) - Method in class org.apache.lucene.analysis.MockTokenFilter
If true, this Filter will preserve positions of the incoming tokens (ie, accumulate and set position increments of the removed stop tokens).
setFailOnCreateOutput(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setFailOnOpenInput(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
setField(FieldInfo) - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
 
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.BaseDirectoryWrapper
 
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
 
setMaxTokenLength(int) - Method in class org.apache.lucene.analysis.MockAnalyzer
Toggle maxTokenLength for MockTokenizer
setNextReader(AtomicReaderContext) - Method in class org.apache.lucene.search.CheckHits.ExplanationAsserter
 
setNextReader(AtomicReaderContext) - 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).
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
 
setSkipData(int, boolean, int) - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWSkipListWriter
Sets the values for the current skip data.
setSkipData(int, boolean, int, boolean, int) - Method in class org.apache.lucene.codecs.lucene40.Lucene40SkipListWriter
Deprecated.
Sets the values for the current skip data.
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.util.LuceneTestCase
For subclasses to override.
setUseCompoundFile(MergePolicy, boolean) - Static method in class org.apache.lucene.util._TestUtil
 
setWrapLockFactory(boolean) - Method in class org.apache.lucene.store.MockDirectoryWrapper
Set to false if you want to return the pure lockfactory and not wrap it with MockLockFactoryWrapper.
ShardSearchingTestBase - Class in org.apache.lucene.search
Base test class for simulating distributed search across multiple shards.
ShardSearchingTestBase() - Constructor for class org.apache.lucene.search.ShardSearchingTestBase
 
ShardSearchingTestBase.NodeState - Class in org.apache.lucene.search
 
ShardSearchingTestBase.NodeState(Random, int, int) - Constructor for class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
ShardSearchingTestBase.NodeState.ShardIndexSearcher - Class in org.apache.lucene.search
Matches docs in the local shard but scores based on aggregated stats ("mock distributed scoring") from all nodes.
ShardSearchingTestBase.NodeState.ShardIndexSearcher(long[], IndexReader, int) - Constructor for class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
ShardSearchingTestBase.SearcherAndVersion - Class in org.apache.lucene.search
An IndexSearcher and associated version (lease)
ShardSearchingTestBase.SearcherAndVersion(IndexSearcher, long) - Constructor for class org.apache.lucene.search.ShardSearchingTestBase.SearcherAndVersion
 
ShardSearchingTestBase.SearcherExpiredException - Exception in org.apache.lucene.search
Thrown when the lease for a searcher has expired.
ShardSearchingTestBase.SearcherExpiredException(String) - Constructor for exception org.apache.lucene.search.ShardSearchingTestBase.SearcherExpiredException
 
shutdownExecutorService(ExecutorService) - Static method in class org.apache.lucene.util._TestUtil
Shutdown ExecutorService and wait for its.
SIMPLE - Static variable in class org.apache.lucene.analysis.MockTokenizer
Acts like LetterTokenizer.
size(SegmentInfoPerCommit) - Method in class org.apache.lucene.index.AlcoholicMergePolicy
 
sizeInBytes() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
smokeTestSearcher(IndexSearcher) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
start(IndexOutput) - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
 
start(int, double, int) - Method in class org.apache.lucene.search.ShardSearchingTestBase
 
startDoc(int, int) - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
 
startOffset - Variable in class org.apache.lucene.analysis.LookaheadTokenFilter.Position
 
startTerm() - Method in class org.apache.lucene.codecs.lucene40.Lucene40PostingsWriter
 
stopword - Static variable in class org.apache.lucene.search.SearchEquivalenceTestBase
 
storedFieldsFormat() - Method in class org.apache.lucene.codecs.asserting.AssertingCodec
 
storedFieldsFormat() - Method in class org.apache.lucene.codecs.compressing.CompressingCodec
 
storedFieldsFormat() - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWCodec
 
stringToCharSequence(String, Random) - Static method in class org.apache.lucene.util._TestUtil
 
suiteFailureMarker - Static variable in class org.apache.lucene.util.LuceneTestCase
Suite failure marker (any error in the test or suite scope).
sync(Collection<String>) - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
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
 
SYSPROP_AWAITSFIX - Static variable in class org.apache.lucene.util.LuceneTestCase
 
SYSPROP_BADAPPLES - Static variable in class org.apache.lucene.util.LuceneTestCase
 
SYSPROP_NIGHTLY - Static variable in class org.apache.lucene.util.LuceneTestCase
 
SYSPROP_SLOW - Static variable in class org.apache.lucene.util.LuceneTestCase
 
SYSPROP_WEEKLY - Static variable in class org.apache.lucene.util.LuceneTestCase
 

T

tearDown() - Method in class org.apache.lucene.util.LuceneTestCase
For subclasses to override.
TEMP_DIR - Static variable in class org.apache.lucene.util.LuceneTestCase
Create indexes in this directory, optimally use a subdir, named after the test
terms(String) - Method in class org.apache.lucene.index.AssertingAtomicReader.AssertingFields
 
TERMS_CACHE_SIZE - Static variable in class org.apache.lucene.codecs.lucene41ords.Lucene41WithOrds
 
termStatistics(Term, TermContext) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
 
termVectorsFormat() - Method in class org.apache.lucene.codecs.asserting.AssertingCodec
 
termVectorsFormat() - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWCodec
 
TEST_AWAITSFIX - Static variable in class org.apache.lucene.util.LuceneTestCase
Whether or not LuceneTestCase.AwaitsFix tests should run.
TEST_CODEC - Static variable in class org.apache.lucene.util.LuceneTestCase
Gets the codec to run tests with.
TEST_DIRECTORY - Static variable in class org.apache.lucene.util.LuceneTestCase
Gets the directory to run tests with
TEST_LINE_DOCS_FILE - Static variable in class org.apache.lucene.util.LuceneTestCase
the line file used by LineFileDocs
TEST_NIGHTLY - Static variable in class org.apache.lucene.util.LuceneTestCase
Whether or not LuceneTestCase.Nightly tests should run.
TEST_POSTINGSFORMAT - Static variable in class org.apache.lucene.util.LuceneTestCase
Gets the postingsFormat to run tests with.
TEST_SLOW - Static variable in class org.apache.lucene.util.LuceneTestCase
Whether or not LuceneTestCase.Slow tests should run.
TEST_THROTTLING - Static variable in class org.apache.lucene.util.LuceneTestCase
TEST_VERSION_CURRENT - Static variable in class org.apache.lucene.util.LuceneTestCase
Use this constant when creating Analyzers and any other version-dependent stuff.
TEST_WEEKLY - Static variable in class org.apache.lucene.util.LuceneTestCase
Whether or not LuceneTestCase.Weekly tests should run.
TestBloomFilteredLucene41Postings - Class in org.apache.lucene.codecs.bloom
A class used for testing BloomFilteringPostingsFormat with a concrete delegate (Lucene41).
TestBloomFilteredLucene41Postings() - Constructor for class org.apache.lucene.codecs.bloom.TestBloomFilteredLucene41Postings
 
testCollationKeySort(Analyzer, Analyzer, Analyzer, Analyzer, String, String, String, String) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testDocsAndFreqs() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
testDocsAndFreqsAndPositions() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
testDocsAndFreqsAndPositionsAndOffsets() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
testDocsAndFreqsAndPositionsAndOffsetsAndPayloads() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
testDocsAndFreqsAndPositionsAndPayloads() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
testDocsOnly() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
testFailure(Failure) - Method in class org.apache.lucene.util.RunListenerPrintReproduceInfo
 
testFarsiRangeFilterCollating(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testFarsiRangeQueryCollating(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testFarsiTermRangeQuery(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef) - Method in class org.apache.lucene.analysis.CollationTestBase
 
testFinished(Description) - Method in class org.apache.lucene.util.RunListenerPrintReproduceInfo
 
testRandom() - Method in class org.apache.lucene.index.BasePostingsFormatTestCase
 
TestRuleAssertionsRequired - Class in org.apache.lucene.util
Require assertions for Lucene/Solr packages.
TestRuleAssertionsRequired() - Constructor for class org.apache.lucene.util.TestRuleAssertionsRequired
 
TestRuleFieldCacheSanity - Class in org.apache.lucene.util
This rule will fail the test if it has insane field caches.
TestRuleFieldCacheSanity() - Constructor for class org.apache.lucene.util.TestRuleFieldCacheSanity
 
TestRuleIgnoreAfterMaxFailures - Class in org.apache.lucene.util
This rule keeps a count of failed tests (suites) and will result in an AssumptionViolatedException after a given number of failures for all tests following this condition.
TestRuleIgnoreAfterMaxFailures(int) - Constructor for class org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures
 
TestRuleIgnoreTestSuites - Class in org.apache.lucene.util
This rule will cause the suite to be assumption-ignored if the test class implements a given marker interface and a special property is not set.
TestRuleIgnoreTestSuites() - Constructor for class org.apache.lucene.util.TestRuleIgnoreTestSuites
 
TestRuleIgnoreTestSuites.NestedTestSuite - Interface in org.apache.lucene.util
Marker interface for nested suites that should be ignored if executed in stand-alone mode.
TestRuleMarkFailure - Class in org.apache.lucene.util
A rule for marking failed tests and suites.
TestRuleMarkFailure(TestRuleMarkFailure...) - Constructor for class org.apache.lucene.util.TestRuleMarkFailure
 
TestRuleStoreClassName - Class in org.apache.lucene.util
Stores the suite name so you can retrieve it from TestRuleStoreClassName.getTestClass()
TestRuleStoreClassName() - Constructor for class org.apache.lucene.util.TestRuleStoreClassName
 
testRunFinished(Result) - Method in class org.apache.lucene.util.RunListenerPrintReproduceInfo
 
testRunStarted(Description) - Method in class org.apache.lucene.util.RunListenerPrintReproduceInfo
 
TestSecurityManager - Class in org.apache.lucene.util
A SecurityManager that prevents tests calling System.exit(int).
TestSecurityManager() - Constructor for class org.apache.lucene.util.TestSecurityManager
Creates a new TestSecurityManager.
testStarted(Description) - Method in class org.apache.lucene.util.RunListenerPrintReproduceInfo
 
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
Intentionally slow IndexOutput for testing.
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
 
throwExcAfterChar(int) - Method in class org.apache.lucene.analysis.MockReaderWrapper
Throw an exception after reading this many chars.
throwExcNext() - Method in class org.apache.lucene.analysis.MockReaderWrapper
 
TimeUnits - Class in org.apache.lucene.util
time unit constants for use in annotations.
toDot(Analyzer, String) - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
toDot() - Method in class org.apache.lucene.analysis.TokenStreamToDot
 
toDotFile(Analyzer, String, String) - Method in class org.apache.lucene.analysis.BaseTokenStreamTestCase
 
TokenStreamToDot - Class in org.apache.lucene.analysis
Consumes a TokenStream and outputs the dot (graphviz) string (graph).
TokenStreamToDot(String, TokenStream, PrintWriter) - Constructor for class org.apache.lucene.analysis.TokenStreamToDot
If inputText is non-null, and the TokenStream has offsets, we include the surface form in each arc's label.
topdocsString(TopDocs, int, int) - Static method in class org.apache.lucene.search.CheckHits
 
toString() - Method in class org.apache.lucene.codecs.compressing.CompressingCodec
 
toString() - Method in class org.apache.lucene.codecs.mockintblock.MockFixedIntBlockPostingsFormat
 
toString() - Method in class org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat
 
toString() - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexOutput
 
toString() - Method in class org.apache.lucene.index.FieldFilterAtomicReader
 
toString() - Method in class org.apache.lucene.index.RandomCodec
 
toString() - Method in class org.apache.lucene.search.RandomSimilarityProvider
 
toString() - Method in class org.apache.lucene.store.BaseDirectoryWrapper
 
toString() - Method in class org.apache.lucene.store.MockDirectoryWrapper
 
toString() - Method in class org.apache.lucene.store.MockIndexInputWrapper
 
toString() - Method in class org.apache.lucene.store.MockIndexOutputWrapper
 
toString() - Method in class org.apache.lucene.store.MockLockFactoryWrapper
 

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, Iterable<T>) - Method in class org.apache.lucene.index.RandomIndexWriter
Updates a document.
updateDocument(Term, Iterable<? extends IndexableField>) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
updateDocuments(Term, Iterable<? extends Iterable<? extends IndexableField>>) - Method in class org.apache.lucene.index.RandomIndexWriter
 
updateDocuments(Term, List<? extends Iterable<? extends IndexableField>>) - Method in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
updateNodeVersion(int, long) - Method in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
useCompoundFile(SegmentInfos, SegmentInfoPerCommit) - 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

ValidatingTokenFilter - Class in org.apache.lucene.analysis
A TokenFilter that checks consistency of the tokens (eg offsets are consistent with one another).
ValidatingTokenFilter(TokenStream, String, boolean) - Constructor for class org.apache.lucene.analysis.ValidatingTokenFilter
The name arg is used to identify this stage when throwing exceptions (useful if you have more than one instance in your chain).
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.
vectorsReader(Directory, SegmentInfo, FieldInfos, IOContext) - Method in class org.apache.lucene.codecs.asserting.AssertingTermVectorsFormat
 
vectorsWriter(Directory, SegmentInfo, IOContext) - Method in class org.apache.lucene.codecs.asserting.AssertingTermVectorsFormat
 
VERBOSE - Static variable in class org.apache.lucene.util.LuceneTestCase
True if and only if 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.
version - Variable in class org.apache.lucene.search.ShardSearchingTestBase.SearcherAndVersion
 
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
 
wasSuccessful() - Method in class org.apache.lucene.util.TestRuleMarkFailure
Check if this object was successful (the opposite of TestRuleMarkFailure.hadFailures()).
WHITESPACE - Static variable in class org.apache.lucene.analysis.MockTokenizer
Acts Similar to WhitespaceTokenizer
WHITESPACE_CHARACTERS - Static variable in class org.apache.lucene.util._TestUtil
List of characters that match Character.isWhitespace(char)
wrapFilter(Query, Filter) - Method in class org.apache.lucene.search.AssertingIndexSearcher
 
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.
write(int) - Method in class org.apache.lucene.codecs.mocksep.MockSingleIntIndexOutput
Write an int to the primary file
writeArc(int, int, String, String) - Method in class org.apache.lucene.analysis.TokenStreamToDot
 
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
 
writeHeader() - Method in class org.apache.lucene.analysis.TokenStreamToDot
Override to customize.
writeHeader(IndexOutput) - Method in class org.apache.lucene.codecs.appending.AppendingTermsWriter
 
writeIndexHeader(IndexOutput) - Method in class org.apache.lucene.codecs.appending.AppendingTermsWriter
 
writeIndexTrailer(IndexOutput, long) - Method in class org.apache.lucene.codecs.appending.AppendingTermsWriter
 
writeNode(int, String) - Method in class org.apache.lucene.analysis.TokenStreamToDot
 
writer - Variable in class org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
 
writer - Variable in class org.apache.lucene.search.ShardSearchingTestBase.NodeState
 
writeSkipData(int, IndexOutput) - Method in class org.apache.lucene.codecs.lucene3x.PreFlexRWSkipListWriter
 
writeSkipData(int, IndexOutput) - Method in class org.apache.lucene.codecs.lucene40.Lucene40SkipListWriter
Deprecated.
 
writeTrailer() - Method in class org.apache.lucene.analysis.TokenStreamToDot
Override to customize.
writeTrailer(IndexOutput, long) - Method in class org.apache.lucene.codecs.appending.AppendingTermsWriter
 

_

_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
General utility methods for Lucene unit tests.
_TestUtil() - Constructor for class org.apache.lucene.util._TestUtil
 
A B C D E F G H I J K L M N O P Q R S T U V W _ 

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