You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by va...@apache.org on 2009/01/09 04:28:41 UTC

svn commit: r732916 [1/14] - in /lucene/pylucene/trunk: ./ java/ java/org/ java/org/osafoundation/ java/org/osafoundation/lucene/ java/org/osafoundation/lucene/analysis/ java/org/osafoundation/lucene/queryParser/ java/org/osafoundation/lucene/search/ j...

Author: vajda
Date: Thu Jan  8 19:28:33 2009
New Revision: 732916

URL: http://svn.apache.org/viewvc?rev=732916&view=rev
Log:
original import to Apache Lucene project

Added:
    lucene/pylucene/trunk/
    lucene/pylucene/trunk/CHANGES
    lucene/pylucene/trunk/CREDITS
    lucene/pylucene/trunk/INSTALL   (with props)
    lucene/pylucene/trunk/LICENSE
    lucene/pylucene/trunk/Makefile   (with props)
    lucene/pylucene/trunk/NOTICE
    lucene/pylucene/trunk/README   (with props)
    lucene/pylucene/trunk/build.xml   (with props)
    lucene/pylucene/trunk/java/
    lucene/pylucene/trunk/java/org/
    lucene/pylucene/trunk/java/org/osafoundation/
    lucene/pylucene/trunk/java/org/osafoundation/lucene/
    lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/
    lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonAnalyzer.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonCharTokenizer.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenFilter.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenStream.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenizer.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/
    lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonMultiFieldQueryParser.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonQueryParser.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonFilter.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonHitCollector.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonScoreDocComparator.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSimilarity.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSimilarityDelegator.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSortComparator.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSortComparatorSource.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/highlight/
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/highlight/PythonFormatter.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/search/highlight/PythonFragmenter.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/store/
    lucene/pylucene/trunk/java/org/osafoundation/lucene/store/PythonDirectory.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/store/PythonIndexInput.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/store/PythonIndexOutput.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/lucene/store/PythonLock.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/util/
    lucene/pylucene/trunk/java/org/osafoundation/util/PythonComparable.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/util/PythonIterator.java   (with props)
    lucene/pylucene/trunk/java/org/osafoundation/util/PythonSet.java   (with props)
    lucene/pylucene/trunk/jcc/
    lucene/pylucene/trunk/jcc/CHANGES
    lucene/pylucene/trunk/jcc/DESCRIPTION
    lucene/pylucene/trunk/jcc/INSTALL   (with props)
    lucene/pylucene/trunk/jcc/LICENSE
    lucene/pylucene/trunk/jcc/NOTICE
    lucene/pylucene/trunk/jcc/README   (with props)
    lucene/pylucene/trunk/jcc/_jcc/
    lucene/pylucene/trunk/jcc/_jcc/boot.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/
    lucene/pylucene/trunk/jcc/_jcc/java/lang/
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Boolean.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Boolean.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Class.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Class.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Double.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Double.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Exception.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Exception.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Integer.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Integer.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Long.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Long.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Object.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Object.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/RuntimeException.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/RuntimeException.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/String.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/String.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Throwable.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/Throwable.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/__init__.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Constructor.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Constructor.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Field.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Field.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Method.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Method.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Modifier.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/Modifier.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/lang/reflect/__init__.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/util/
    lucene/pylucene/trunk/jcc/_jcc/java/util/Enumeration.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/util/Enumeration.h   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/util/Iterator.cpp   (with props)
    lucene/pylucene/trunk/jcc/_jcc/java/util/Iterator.h   (with props)
    lucene/pylucene/trunk/jcc/java/
    lucene/pylucene/trunk/jcc/java/org/
    lucene/pylucene/trunk/jcc/java/org/osafoundation/
    lucene/pylucene/trunk/jcc/java/org/osafoundation/jcc/
    lucene/pylucene/trunk/jcc/java/org/osafoundation/jcc/PythonException.java   (with props)
    lucene/pylucene/trunk/jcc/java/org/osafoundation/jcc/PythonVM.java   (with props)
    lucene/pylucene/trunk/jcc/jcc/
    lucene/pylucene/trunk/jcc/jcc/__init__.py   (with props)
    lucene/pylucene/trunk/jcc/jcc/__main__.py   (with props)
    lucene/pylucene/trunk/jcc/jcc/cpp.py   (with props)
    lucene/pylucene/trunk/jcc/jcc/patches/
    lucene/pylucene/trunk/jcc/jcc/patches/patch.4195
    lucene/pylucene/trunk/jcc/jcc/patches/patch.43
    lucene/pylucene/trunk/jcc/jcc/python.py   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/
    lucene/pylucene/trunk/jcc/jcc/sources/JArray.cpp   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/JArray.h   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/JCCEnv.cpp   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/JCCEnv.h   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/JObject.cpp   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/JObject.h   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/functions.cpp   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/functions.h   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/jcc.cpp   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/jccfuncs.h   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/macros.h   (with props)
    lucene/pylucene/trunk/jcc/jcc/sources/types.cpp   (with props)
    lucene/pylucene/trunk/jcc/setup.py   (with props)
    lucene/pylucene/trunk/samples/
    lucene/pylucene/trunk/samples/IndexFiles.py   (with props)
    lucene/pylucene/trunk/samples/JavaSet.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/
    lucene/pylucene/trunk/samples/LuceneInAction/AdvancedQueryParserTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/AnalysisParalysisTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerDemo.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerUtils.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/BasicSearchingTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbIndexer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbSearcher.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/BooksLikeThis.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/BooleanQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/CategorizerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/ChineseTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/DistanceSortingTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/DocumentDeleteTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/DocumentUpdateTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/Explainer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/FS2RAMDirectoryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/FSversusRAMDirectoryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/FieldLengthTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/FileIndexer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/FilterTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/HighlightIt.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/HighlightTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/HitCollectorTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/IndexTuningDemo.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/Indexer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/KeywordAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/LockTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/MultiFieldQueryParserTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/MultiSearcherTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/PhrasePrefixQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/PhraseQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/PrefixQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/QueryParserTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/README   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/RangeQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/ScoreTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/Searcher.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/SecurityFilterTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/SnowballTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/SortingExample.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/SpanQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/SpecialsFilterTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerAlternativeTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerViewer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/T9er.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/VerboseIndexing.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/data/
    lucene/pylucene/trunk/samples/LuceneInAction/data/education/
    lucene/pylucene/trunk/samples/LuceneInAction/data/education/pedagogy/
    lucene/pylucene/trunk/samples/LuceneInAction/data/education/pedagogy/amae.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/health/
    lucene/pylucene/trunk/samples/LuceneInAction/data/health/alternative/
    lucene/pylucene/trunk/samples/LuceneInAction/data/health/alternative/chinese/
    lucene/pylucene/trunk/samples/LuceneInAction/data/health/alternative/chinese/ishal.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/philosophy/
    lucene/pylucene/trunk/samples/LuceneInAction/data/philosophy/eastern/
    lucene/pylucene/trunk/samples/LuceneInAction/data/philosophy/eastern/ttc.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/ai/
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/ai/geb.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/education/
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/education/ms.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jdwa.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jia.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/lia.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/methodology/
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/methodology/epe.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tia.properties
    lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tpp.properties
    lucene/pylucene/trunk/samples/LuceneInAction/index.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/indexes.tar.gz   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/BooksLikeThis.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/CategorizerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/FilterTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/MultiFieldQueryParserTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/MultiSearcherTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/PhrasePrefixQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/SecurityFilterTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/SortingExample.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/SpanQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/advsearching/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/AnalyzerDemo.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/AnalyzerUtils.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/UsingAnalyzersExample.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/i18n/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/i18n/ChineseTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/i18n/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/keyword/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/keyword/KeywordAnalyzer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/keyword/KeywordAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/keyword/SimpleKeywordAnalyzer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/keyword/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/positional/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/positional/PositionalStopFilter.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/positional/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/queryparser/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/queryparser/AnalysisParalysisTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/queryparser/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/stopanalyzer/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/stopanalyzer/StopAnalyzer2.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/stopanalyzer/StopAnalyzerAlternativeTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/stopanalyzer/StopAnalyzerFlawed.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/stopanalyzer/StopAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/stopanalyzer/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/MockSynonymEngine.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/SynonymAnalyzer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/SynonymAnalyzerTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/SynonymAnalyzerViewer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/SynonymFilter.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/WordNetSynonymEngine.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/analysis/synonym/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/common/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/common/LiaTestCase.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/common/TestDataDocumentHandler.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/common/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/filters/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/filters/MockSpecialsAccessor.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/filters/SpecialsFilter.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/filters/SpecialsFilterTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/filters/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/hitcollector/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/hitcollector/BookLinkCollector.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/hitcollector/HitCollectorTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/hitcollector/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/queryparser/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/queryparser/AdvancedQueryParserTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/queryparser/CustomQueryParser.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/queryparser/NumberUtils.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/queryparser/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/sorting/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/sorting/DistanceComparatorSource.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/sorting/DistanceSortingTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/extsearch/sorting/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/HTML.html   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/MSWord.doc   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/PDF.pdf   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/PlainText.txt   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/RTF.rtf
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/addressbook-entry.xml   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/data/addressbook.xml   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/framework/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/framework/FileIndexer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/framework/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/framework/handler.properties
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/html/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/html/HTMLHandler.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/html/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/msdoc/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/msdoc/AntiWordHandler.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/msdoc/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/pdf/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/pdf/PDFHandler.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/pdf/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/text/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/text/PlainTextHandler.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/text/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/xml/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/xml/Digester.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/xml/DigesterXMLHandler.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/handlingtypes/xml/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/BaseIndexingTestCase.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/CompoundVersusMultiFileIndexTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/DocumentDeleteTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/DocumentUpdateTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/FS2RAMDirectoryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/FSversusRAMDirectoryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/FieldLengthTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/IndexTuningDemo.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/LockTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/VerboseIndexing.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/indexing/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/meetlucene/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/meetlucene/Indexer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/meetlucene/Searcher.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/meetlucene/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/BasicSearchingTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/BooleanQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/Explainer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/PhraseQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/PrefixQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/QueryParserTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/RangeQueryTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/ScoreTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/searching/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/BerkeleyDbIndexer.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/BerkeleyDbSearcher.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/HighlightIt.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/HighlightTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/SnowballTest.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/T9er.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/tools/__init__.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/util/
    lucene/pylucene/trunk/samples/LuceneInAction/lia/util/ClassLoader.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/util/Streams.py   (with props)
    lucene/pylucene/trunk/samples/LuceneInAction/lia/util/__init__.py   (with props)
    lucene/pylucene/trunk/samples/PorterStemmerAnalyzer.py   (with props)
    lucene/pylucene/trunk/samples/SearchFiles.py   (with props)
    lucene/pylucene/trunk/samples/TermPositionVector.py   (with props)
    lucene/pylucene/trunk/samples/ThreadIndexFiles.py   (with props)
    lucene/pylucene/trunk/samples/manindex.py   (with props)
    lucene/pylucene/trunk/samples/mansearch.py   (with props)
    lucene/pylucene/trunk/test/
    lucene/pylucene/trunk/test/test_Analyzers.py   (with props)
    lucene/pylucene/trunk/test/test_Binary.py   (with props)
    lucene/pylucene/trunk/test/test_BooleanOr.py   (with props)
    lucene/pylucene/trunk/test/test_BooleanPrefixQuery.py   (with props)
    lucene/pylucene/trunk/test/test_BooleanQuery.py   (with props)
    lucene/pylucene/trunk/test/test_CachingWrapperFilter.py   (with props)
    lucene/pylucene/trunk/test/test_Compress.py   (with props)
    lucene/pylucene/trunk/test/test_DocBoost.py   (with props)
    lucene/pylucene/trunk/test/test_FilteredQuery.py   (with props)
    lucene/pylucene/trunk/test/test_FuzzyQuery.py   (with props)
    lucene/pylucene/trunk/test/test_Highlighter.py   (with props)
    lucene/pylucene/trunk/test/test_Not.py   (with props)
    lucene/pylucene/trunk/test/test_PerFieldAnalyzerWrapper.py   (with props)
    lucene/pylucene/trunk/test/test_PhraseQuery.py   (with props)
    lucene/pylucene/trunk/test/test_PositionIncrement.py   (with props)
    lucene/pylucene/trunk/test/test_PrefixFilter.py   (with props)
    lucene/pylucene/trunk/test/test_PrefixQuery.py   (with props)
    lucene/pylucene/trunk/test/test_PyLucene.py   (with props)
    lucene/pylucene/trunk/test/test_PyLuceneThread.py   (with props)
    lucene/pylucene/trunk/test/test_PythonDirectory.py   (with props)
    lucene/pylucene/trunk/test/test_RangeFilter.py   (with props)
    lucene/pylucene/trunk/test/test_RangeQuery.py   (with props)
    lucene/pylucene/trunk/test/test_RegexQuery.py   (with props)
    lucene/pylucene/trunk/test/test_RewriteQuery.py   (with props)
    lucene/pylucene/trunk/test/test_RuntimeException.py   (with props)
    lucene/pylucene/trunk/test/test_Similarity.py   (with props)
    lucene/pylucene/trunk/test/test_Sort.py   (with props)
    lucene/pylucene/trunk/test/test_StopAnalyzer.py   (with props)
    lucene/pylucene/trunk/test/test_StopWords.py   (with props)
    lucene/pylucene/trunk/test/test_ThaiAnalyzer.py   (with props)
    lucene/pylucene/trunk/test/test_bug1564.py   (with props)
    lucene/pylucene/trunk/test/test_bug1763.py   (with props)
    lucene/pylucene/trunk/test/test_bug1842.py   (with props)

Added: lucene/pylucene/trunk/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/CHANGES?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/CHANGES (added)
+++ lucene/pylucene/trunk/CHANGES Thu Jan  8 19:28:33 2009
@@ -0,0 +1,61 @@
+
+For bug <NUM>, see http://bugzilla.osafoundation.org/show_bug.cgi?id=<NUM>
+
+Version 2.4.0 ->
+----------------------
+ - PyLucene now a subproject of the Apache Lucene project
+ - 
+
+Version 2.3.2 -> 2.4.0
+----------------------
+ - fixed Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499599
+ - arrays are now wrapped with JArray() instances instead of expanded into lists
+ - return by value in arrays now supported
+ - PythonTermDocs removed since arrays can now receive values
+ - PythonReader removed since arrays now wrapped
+ - added InstantiatedIndex contrib to build
+ - PyLucene built with JCC 2.1
+
+Version 2.3.1 -> 2.3.2
+----------------------
+ - fixed code generation for clone() broken by finalization proxy work
+ - added 'union' and 'NULL' to the list of reserved words
+ - fixed castCheck() to work with finalization proxies
+ - added scorePayload() delegator to PythonSimilarityDelegator
+ - added support for --install-dir and --use-distutils options
+ - added support for INSTALL_OPT to Makefile
+ - fixed basic samples to initialize VM
+ - added bdist target to Makefile
+
+Version 2.3 -> 2.3.1
+--------------------
+ - fixed bug in JCC using the wrong field modifiers for setter (Bill Janssen)
+ - added missing calls for generating wrappers for ancestors of Exception
+ - added missing call for generating wrappers for String
+ - added PythonTokenizer for implementing complete tokenizers in Python
+
+Version 2.2 -> 2.3
+------------------
+
+ - PyLucene with JCC introduced
+ - added support for Python 2.3.5
+ - added support for using clone() with extensions
+ - renamed decRef() (and incRef()) native extensions method to pythonDecRef()
+ - improved error reporting a bit
+ - JCC now generates Python properties for get/set/is methods
+ - fixed bug in generated code invoking parent method when inherited from above
+ - added support for building on 64-bit Linux (Ubuntu 7.10)
+ - added support for implicitely iterable Enumeration
+ - added support for --root and --prefix for jcc invocations (Esteve Fernandez)
+ - jcc switched to setuptools by default (and fallback on distutils)
+ - fixed bug 11643
+ - added support for automatic boxing of primitives when Object is expected
+ - fixed bug in missing extensions' Iterator and Enumeration methods
+ - added JavaSet.py sample using PythonSet and PythonIterator extensions
+ - added missing LICENSE files
+ - fixed memory leak when calling inherited methods via callSuper()
+ - made finalize() method public on extensions for manually breaking ref cycle
+ - added support for building on Solaris with Sun Studio C++ (Solaris 11)
+ - fixed leak of local refs of jstring when converting to an array of String
+ - automated finalization of extensions via proxy for breaking ref cycle
+ - added Py_CLEAR and Py_VISIT macros for Python 2.3.5 compilation

Added: lucene/pylucene/trunk/CREDITS
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/CREDITS?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/CREDITS (added)
+++ lucene/pylucene/trunk/CREDITS Thu Jan  8 19:28:33 2009
@@ -0,0 +1,29 @@
+
+PyLucene is a JCC-compiled Python extension of Java Lucene and wouldn't be
+possible without the tireless efforts of the people and open source projects
+below.
+
+  - the Apache Lucene developers,
+    http://lucene.apache.org/java/docs/whoweare.html
+
+  - the Open Source Applications Foundation, for hosting the project from
+    2004 to 2008: http://www.osafoundation.org
+
+  - Andi Vajda, PyLucene and JCC project founder and maintainer, for
+    believing that PyLucene should be feasible
+
+  - the following people contributed patches, samples, bug reports 
+    and resources: 
+     . Kapil Thangavelu (hazmat): FSDirectory support, first unit test
+     . Frank Wierzbicki: IndexFiles.py and SearchFiles.py samples
+     . Andreas Jung: several bug reports, nasty bugs indeed
+     . Jeff Bowden: several bug reports and API additions via patches
+     . Wai Yip Tung: test_PyLuceneThread.py unit test, windows threads testing
+     . Yura Smolsky: test_Highlighter.py unit test, numerous bug reports
+     . Steve Jenson: MultiFieldQueryParser addition to test_PyLucene.py
+     . Erik Hatcher: man page index and search samples
+     . Bill Janssen: many bug reports and 'shared mode' suggestion
+     . Aaron Lav: several memory leaks, fixed with patches and tests
+     . Grant Ingersoll: for inviting and sponsoring PyLucene's move to Apache
+
+Thank you all !

Added: lucene/pylucene/trunk/INSTALL
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/INSTALL?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/INSTALL (added)
+++ lucene/pylucene/trunk/INSTALL Thu Jan  8 19:28:33 2009
@@ -0,0 +1,69 @@
+
+  INSTALL file for PyLucene with JCC build
+  ----------------------------------------
+
+  Contents
+  --------
+
+   - Building PyLucene
+   - Requirements
+   - Notes for Solaris
+
+
+  Building PyLucene
+  -----------------
+
+  PyLucene is now completely code-generated by JCC whose sources are
+  included in the jcc sub-directory.
+
+  Before building PyLucene, JCC must be built first. See JCC's INSTALL file
+  in the jcc subdirectory for building and installing it.
+
+  Once JCC is built and installed, PyLucene is built via a Makefile which
+  invokes JCC. See PyLucene's Makefile for configuration instructions.
+
+  There are limits to both how many files can fit on the command line and
+  how large a C++ file the C++ compiler can handle.
+  By default, JCC generates one large C++ file containing the source code
+  for all wrapper classes.
+
+  Using the --files command line argument, this behaviour can be tuned to
+  workaround various limits:
+  for example:
+     - to break up the large wrapper class file into about 2 files:
+       --files 2
+     - to break up the large wrapper class file into about 10 files:
+       --files 10    
+     - to generate one C++ file per Java class wrapped:
+       --files separate
+
+
+  Requirements
+  ------------
+
+  To build PyLucene with JCC a Java Development Kit (JDK) and ant [1] are
+  required; use of the resulting PyLucene requires only a Java Runtime
+  Environment (JRE).
+
+  The setuptools package [2] is required to build and run PyLucene with JCC
+  on Python 2.3.5. With later versions of Python, setuptools is only
+  required for shared mode (see JCC's INSTALL for more information).
+
+  [1] http://ant.apache.org
+  [2] http://pypi.python.org/pypi/setuptools
+
+
+  Notes for Solaris
+  -----------------
+
+  PyLucene's Makefile is a GNU Makefile. Be sure to use 'gmake' instead of
+  plain 'make'.
+
+  Just as when building JCC, Python's distutils must be nudged a bit to
+  invoke the correct compiler. Sun Studio's C compiler is called 'cc' while
+  its C++ compiler is called 'CC'.
+
+  To build PyLucene, use the following shell command to ensure that the C++
+  compiler is used: 
+
+   $ CC=CC gmake

Propchange: lucene/pylucene/trunk/INSTALL
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/INSTALL
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/LICENSE
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/LICENSE?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/LICENSE (added)
+++ lucene/pylucene/trunk/LICENSE Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+#   Licensed under the Apache License, Version 2.0 (the "License");
+#   you may not use this file except in compliance with the License.
+#   You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.

Added: lucene/pylucene/trunk/Makefile
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/Makefile?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/Makefile (added)
+++ lucene/pylucene/trunk/Makefile Thu Jan  8 19:28:33 2009
@@ -0,0 +1,237 @@
+
+# Makefile for building PyLucene
+#
+# Supported operating systems: Mac OS X, Linux and Windows.
+# See INSTALL file for requirements.
+# See jcc/INSTALL for information about --shared.
+# 
+# Steps to build
+#   1. Edit the sections below as documented
+#   2. make
+#   3. make install
+#
+# The install target installs the lucene python extension in python's
+# site-packages directory.
+#
+
+VERSION=2.4.0-3
+LUCENE_SVN_VER=HEAD
+LUCENE_VER=2.4.0
+LUCENE_SVN=http://svn.apache.org/repos/asf/lucene/java/tags/lucene_2_4_0
+PYLUCENE:=$(shell pwd)
+LUCENE=lucene-java-$(LUCENE_VER)
+
+# 
+# You need to uncomment and edit the variables below in the section
+# corresponding to your operating system.
+#
+# Windows drive-absolute paths need to be expressed cygwin style.
+#
+# PREFIX: where programs are normally installed on your system (Unix).
+# PREFIX_PYTHON: where your version of python is installed.
+# JCC: how jcc is invoked, depending on the python version:
+#  - python 2.5:
+#      $(PYTHON) -m jcc
+#  - python 2.4:
+#      $(PYTHON) $(PREFIX_PYTHON)/lib/python2.4/site-packages/jcc/__init__.py
+# NUM_FILES is the number of wrapper files to generate. By default, jcc
+# generates all C++ classes into one single file. This may exceed a compiler
+# limit.
+#
+
+# Mac OS X  (Python 2.5, Java 1.5)
+#PREFIX_PYTHON=/usr
+#ANT=ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) -m jcc --shared
+#NUM_FILES=2
+
+# Mac OS X  (Python 2.6, Java 1.5)
+#PREFIX_PYTHON=/Users/vajda/tmp/Python-2.6/install
+#ANT=ant
+#PYTHON=$(PREFIX_PYTHON)/Python.framework/Versions/2.6/bin/python
+#JCC=$(PYTHON) -m jcc.__main__ --shared
+#NUM_FILES=2
+
+# Mac OS X  (Python 2.3.5, Java 1.5, setuptools 0.6c7, Intel Mac OS X 10.4)
+#PREFIX_PYTHON=/usr
+#ANT=ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/JCC-2.1-py2.3-macosx-10.4-i386.egg/jcc/__init__.py
+#NUM_FILES=2
+
+# Mac OS X  (Python 2.3.5, Java 1.5, setuptools 0.6c7, PPC Mac OS X 10.4)
+#PREFIX_PYTHON=/usr
+#ANT=ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/JCC-2.1-py2.3-macosx-10.4-ppc.egg/jcc/__init__.py
+#NUM_FILES=2
+
+# Linux     (Ubuntu 6.06, Python 2.4, Java 1.5, no setuptools)
+#PREFIX_PYTHON=/usr
+#ANT=ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) $(PREFIX_PYTHON)/lib/python2.4/site-packages/jcc/__init__.py
+#NUM_FILES=2
+
+# Linux     (Ubuntu 8.10 64-bit, Python 2.5.2, OpenJDK 1.6, setuptools 0.6c9)
+#PREFIX_PYTHON=/usr
+#ANT=ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) -m jcc --shared
+#NUM_FILES=2
+
+# FreeBSD
+#PREFIX_PYTHON=/usr
+#ANT=ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) -m jcc
+#NUM_FILES=2
+
+# Solaris   (Solaris 11, Python 2.4 32-bit, Sun Studio 12, Java 1.6)
+#PREFIX_PYTHON=/usr
+#ANT=/usr/local/apache-ant-1.7.0/bin/ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) $(PREFIX_PYTHON)/lib/python2.4/site-packages/jcc/__init__.py
+#NUM_FILES=2
+
+# Windows   (Win32, Python 2.5.1, Java 1.6, ant 1.7.0)
+#PREFIX_PYTHON=/cygdrive/o/Python-2.5.2
+#ANT=JAVA_HOME=o:\\Java\\jdk1.6.0_02 /cygdrive/o/java/apache-ant-1.7.0/bin/ant
+#PYTHON=$(PREFIX_PYTHON)/python.exe
+#JCC=$(PYTHON) -m jcc --shared
+#NUM_FILES=2
+
+#
+# No edits required below
+#
+
+ifeq ($(DEBUG),1)
+DEBUG_OPT=--debug
+endif
+
+DISTRIB=distrib/PyLucene-$(VERSION)
+
+DEFINES=-DPYLUCENE_VER="\"$(VERSION)\"" -DLUCENE_VER="\"$(LUCENE_VER)\""
+
+LUCENE_JAR=$(LUCENE)/build/lucene-core-$(LUCENE_VER).jar
+SNOWBALL_JAR=$(LUCENE)/build/contrib/snowball/lucene-snowball-$(LUCENE_VER).jar
+HIGHLIGHTER_JAR=$(LUCENE)/build/contrib/highlighter/lucene-highlighter-$(LUCENE_VER).jar
+ANALYZERS_JAR=$(LUCENE)/build/contrib/analyzers/lucene-analyzers-$(LUCENE_VER).jar
+REGEX_JAR=$(LUCENE)/build/contrib/regex/lucene-regex-$(LUCENE_VER).jar
+QUERIES_JAR=$(LUCENE)/build/contrib/queries/lucene-queries-$(LUCENE_VER).jar
+INSTANTIATED_JAR=$(LUCENE)/build/contrib/instantiated/lucene-instantiated-$(LUCENE_VER).jar
+EXTENSIONS_JAR=build/jar/extensions.jar
+
+
+.PHONY: generate compile install default all clean realclean \
+	sources test jars distrib
+
+default: all
+
+$(LUCENE):
+	svn export -r $(LUCENE_SVN_VER) $(LUCENE_SVN) $(LUCENE)
+
+sources: $(LUCENE)
+
+to-orig: sources
+	mkdir -p $(LUCENE)-orig
+	tar -C $(LUCENE) -cf - . | tar -C $(LUCENE)-orig -xvf -
+
+from-orig: $(LUCENE)-orig
+	mkdir -p $(LUCENE)
+	tar -C $(LUCENE)-orig -cf - . | tar -C $(LUCENE) -xvf -
+
+patches.regex:
+	diff -u lucene-java-$(LUCENE_VER)/contrib/regex/src/java/org/apache/lucene/search/regex/RegexQuery.java lucene-java-$(LUCENE_VER)-patched/contrib/regex/src/java/org/apache/lucene/search/regex/RegexQuery.java > $@; true
+	diff -u lucene-java-$(LUCENE_VER)/contrib/regex/src/java/org/apache/lucene/search/regex/SpanRegexQuery.java lucene-java-$(LUCENE_VER)-patched/contrib/regex/src/java/org/apache/lucene/search/regex/SpanRegexQuery.java >> $@; true
+
+lucene:
+	rm -f $(LUCENE_JAR)
+	$(MAKE) $(LUCENE_JAR)
+
+$(LUCENE_JAR): $(LUCENE)
+	cd $(LUCENE); $(ANT) -Dversion=$(LUCENE_VER)
+
+$(SNOWBALL_JAR): $(LUCENE_JAR)
+	cd $(LUCENE)/contrib/snowball; $(ANT) -Dversion=$(LUCENE_VER)
+
+$(HIGHLIGHTER_JAR): $(LUCENE_JAR)
+	cd $(LUCENE)/contrib/highlighter; $(ANT) -Dversion=$(LUCENE_VER)
+
+$(ANALYZERS_JAR): $(LUCENE_JAR)
+	cd $(LUCENE)/contrib/analyzers; $(ANT) -Dversion=$(LUCENE_VER)
+
+$(REGEX_JAR): $(LUCENE_JAR)
+	rm -f $(LUCENE)/contrib/regex/src/java/org/apache/lucene/search/regex/JakartaRegexpCapabilities.java
+	rm -f $(LUCENE)/contrib/regex/src/java/org/apache/regexp/RegexpTunnel.java
+	cd $(LUCENE)/contrib/regex; $(ANT) -Dversion=$(LUCENE_VER)
+
+$(QUERIES_JAR): $(LUCENE_JAR)
+	cd $(LUCENE)/contrib/queries; $(ANT) -Dversion=$(LUCENE_VER)
+
+$(INSTANTIATED_JAR): $(LUCENE_JAR)
+	cd $(LUCENE)/contrib/instantiated; $(ANT) -Dversion=$(LUCENE_VER)
+
+$(EXTENSIONS_JAR): $(LUCENE_JAR)
+	$(ANT) -Dlucene.dir=$(LUCENE)
+
+JARS=$(LUCENE_JAR) $(SNOWBALL_JAR) $(HIGHLIGHTER_JAR) $(ANALYZERS_JAR) \
+     $(REGEX_JAR) $(QUERIES_JAR) $(INSTANTIATED_JAR) $(EXTENSIONS_JAR)
+
+
+jars: $(JARS)
+
+GENERATE=$(JCC) $(foreach jar,$(JARS),--jar $(jar)) \
+           --package java.lang java.lang.System \
+                               java.lang.Runtime \
+           --package java.util \
+                     java.text.SimpleDateFormat \
+           --package java.io java.io.StringReader \
+                             java.io.InputStreamReader \
+                             java.io.FileInputStream \
+           --exclude org.apache.lucene.queryParser.Token \
+           --exclude org.apache.lucene.queryParser.TokenMgrError \
+           --exclude org.apache.lucene.queryParser.QueryParserTokenManager \
+           --exclude org.apache.lucene.queryParser.ParseException \
+           --python lucene \
+           --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' \
+           --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' \
+           --sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' \
+           --version $(LUCENE_VER) \
+           --files $(NUM_FILES)
+
+generate: jars
+	$(GENERATE)
+
+compile: jars
+	$(GENERATE) --build $(DEBUG_OPT)
+
+install: jars
+	$(GENERATE) --install $(DEBUG_OPT) $(INSTALL_OPT)
+
+bdist: jars
+	$(GENERATE) --bdist
+
+all: sources jars compile
+	@echo build of $(PYLUCENE_LIB) complete
+
+clean:
+	if test -f $(LUCENE)/build.xml; then cd $(LUCENE); $(ANT) clean; fi
+	rm -rf build
+
+realclean: clean
+	rm -rf $(LUCENE)
+
+
+samples/LuceneInAction/index:
+	cd samples/LuceneInAction; $(PYTHON) index.py
+
+test: samples/LuceneInAction/index
+	find test -name 'test_*.py' | xargs -t -n 1 $(PYTHON)
+	ls samples/LuceneInAction/*Test.py | xargs -t -n 1 $(PYTHON)
+
+distrib:
+	mkdir -p distrib
+	svn export . $(DISTRIB)
+	tar -C distrib -cvzf $(DISTRIB)-src-jcc.tar.gz $(notdir $(DISTRIB))

Propchange: lucene/pylucene/trunk/Makefile
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/Makefile
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/NOTICE
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/NOTICE?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/NOTICE (added)
+++ lucene/pylucene/trunk/NOTICE Thu Jan  8 19:28:33 2009
@@ -0,0 +1,4 @@
+
+Apache PyLucene
+  Copyright 2009 The Apache Software Foundation
+  Copyright (c) 2004-2008 Open Source Applications Foundation

Added: lucene/pylucene/trunk/README
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/README?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/README (added)
+++ lucene/pylucene/trunk/README Thu Jan  8 19:28:33 2009
@@ -0,0 +1,251 @@
+
+  ********************************************************
+  * ===============                                      *
+  * IMPORTANT NOTE:                                      *
+  * ===============                                      *
+  *                                                      *
+  * Before calling any PyLucene API that requires the    *
+  * Java VM, start it by calling initVM(classpath, ...)  *
+  *                                                      *
+  * More about this function in jcc/README.              *
+  *                                                      *
+  ********************************************************
+
+  README file for PyLucene with JCC
+  ---------------------------------
+
+  Contents
+  --------
+
+   - Installing PyLucene
+   - API documentation for PyLucene
+
+
+  Installing PyLucene
+  -------------------
+
+  PyLucene is a Python extension built with JCC.
+
+  To build PyLucene, JCC needs to be built first. Sources for JCC are
+  available in the jcc sub-directory of this source tree.
+  Instructions for building and installing JCC are in jcc/INSTALL.
+
+  See INSTALL file for instructions for building PyLucene.
+
+
+  API documentation for PyLucene
+  ------------------------------
+
+  PyLucene is currently built the Java Lucene trunk. It intends to
+  supports the entire Lucene API.
+
+  PyLucene also includes a number of Lucene contrib packages: the Snowball
+  analyzer and stemmers, the highlighter package, analyzers for other
+  languages than english, regular expression queries and specialized queries
+  such as 'more like this'. 
+
+  This document only covers the pythonic extensions to Lucene offered
+  by PyLucene as well as some differences between the Java and Python
+  APIs. For API the documentation on Java Lucene APIs, please visit:
+      http://lucene.apache.org/java/docs/api/index.html
+
+  To help with debugging and to support some Lucene APIs, PyLucene also
+  exposes some Java runtime APIs.
+
+   - Contents
+
+     . Samples
+     . Threading support with attachCurrentThread()
+     . Exception handling with lucene.JavaError
+     . Differences between the Java Lucene and PyLucene APIs
+     . Pythonic extensions to the Java Lucene APIs
+     . Extending Lucene classes from Python
+
+   - Samples
+
+     The best way to learn PyLucene is to look at the many samples included
+     with the PyLucene source release or on the web at
+
+         http://svn.osafoundation.org/pylucene/trunk/samples/
+         http://svn.osafoundation.org/pylucene/trunk/samples/LuceneInAction/
+
+     A large number of samples are shipped with PyLucene. Most notably, all
+     the samples published in the "Lucene in Action" book that did not
+     depend on a third party Java library for which there was no obvious
+     Python equivalent were ported to Python and PyLucene.
+
+     "Lucene in Action" is a great companion to learning Lucene. Having all
+     the samples available in Python should make it even easier for Python
+     developers. 
+
+     "Lucene in Action" was written by Erik Hatcher and Otis Gospodnetic,
+     both part of the Java Lucene development team, and is available from
+     Manning Publications at http://www.manning.com/hatcher2.
+
+   - Threading support with attachCurrentThread()
+
+     Before PyLucene APIs can be used from a thread other than the main
+     thread that was not created by the Java Runtime, the
+     attachCurrentThread() method must be called on the JCCEnv object
+     returned by the initVM() or getVMEnv() functions.
+
+   - Exception handling with lucene.JavaError
+
+     Java exceptions are caught at the language barrier and reported to
+     Python by raising a JavaError instance whose args tuple contains the
+     actual Java Exception instance.
+
+   - Handling Java arrays
+
+     Java arrays are returned to Python in a JArray wrapper instance that
+     implements the Python sequence protocol. It is possible to change array
+     elements but not to change the array size.
+
+     A few Lucene APIs take array arguments and expect values to be returned
+     in them. To call such an API and be able to retrieve the array values
+     after the call, a Java array needs to instantiated first.
+
+     For example, accessing termDocs:
+
+         termDocs = reader.termDocs(Term("isbn", isbn))
+         docs = JArray('int')(1)   # allocate an int[1] array
+         freq = JArray('int')(1)   # allocate an int[1] array
+         if termDocs.read(docs, freq) == 1:
+             bits.set(docs[0])     # access the array's first element
+
+     In addition to 'int', the JArray function accepts 'object', 'string',
+     'bool', 'byte', 'char', 'double', 'float', 'long' and 'short' to create
+     an array of the corresponding type. The JArray('object') constructor
+     takes a second argument denoting the class of the object
+     elements. This argument is optional and defaults to Object.
+
+     To convert a char or byte array to a Python string use a ''.join(array)
+     construct.
+
+     Instead of an integer denoting the size of the desired Java array, a
+     sequence of objects of the expected element type may be passed in to the
+     array constructor.
+
+     For example, creating a Java array of double from the [1.5, 2.5] list:
+
+         JArray('double')([1.5, 2.5])
+
+     All methods that expect an array also accept a sequence of Python
+     objects of the expected element type. If no values are expected from
+     the array arguments after the call, it is hence not necessary to
+     instantiate a Java array to make such calls.
+
+     See jcc/README for more information about handling arrays.
+
+   - Differences between the Java Lucene and PyLucene APIs
+
+     . The PyLucene API exposes all Java Lucene classes in a flat namespace
+       in the PyLucene module.
+       For example, the Java import statement:
+         import org.apache.lucene.index.IndexReader;
+       corresponds to the Python import statement:
+         from lucene import IndexReader
+
+     . Downcasting is a common operation in Java but not a concept in
+       Python. Because the wrapper objects implementing exactly the APIs of
+       the declared type of the wrapped object, all classes implement two
+       class methods called instance_ and cast_ that verify and cast an
+       instance respectively.
+
+   - Pythonic extensions to the Java Lucene APIs
+
+     Java is a very verbose language. Python, on the other hand, offers
+     many syntactically attractive constructs for iteration, property
+     access, etc... As the Java Lucene samples from the 'Lucene in Action'
+     book were ported to Python, PyLucene received a number of pythonic
+     extensions listed here:
+
+     . Iterating search hits is a very common operation. Hits instances are
+       iterable in Python. Two values are returned for each iteration, the
+       zero-based number of the document in the Hits instance and the
+       document instance itself.
+
+         The Java loop:
+
+             for (int i = 0; i < hits.length(); i++) {
+                 Document doc = hits.doc(i);
+                 System.out.println(hits.score(i) + " : " + doc.get("title"));
+             }
+
+         can be written in Python:
+
+             for hit in hits:
+                 hit = Hit.cast_(hit)
+                 print hit.getScore(), ':', hit.getDocument['title']
+
+         if hit.iterator()'s next() method were declared to return Hit
+         instead of Object, the above cast_() call would be unnecessary.
+
+       The same java loop can also be written:
+
+             for i xrange(len(hits)):
+                 print hits.score(i), ':', hits[i]['title']
+
+     . Hits instances partially implement the Python 'sequence' protocol.
+
+         The Java expressions:
+
+             hits.length()
+             doc = hits.get(i)
+
+         are better written in Python:
+
+             len(hits)
+             doc = hits[i]
+
+     . Document instances have fields whose values can be accessed through
+       the mapping protocol.
+
+         The Java expressions:
+
+             doc.get("title")
+
+         are better written in Python:
+
+             doc['title']
+
+     . Document instances can be iterated over for their fields
+
+         The Java loop:
+
+             Enumeration fields = doc.fields();
+             while (fields.hasMoreElements()) {
+                 Field field = (Field) fields.nextElement();
+                 ...
+             }
+
+         is better written in Python:
+
+             for field in doc.getFields():
+                 field = Field.cast_(field)
+                 ...
+
+       Once JCC support heeding Java 1.5 annotations and once Java Lucene
+       makes use of them, such casting should become unncessary.
+
+   - Extending Java Lucene classes from Python
+
+     Many areas of the Lucene API expect the programmer to provide their own
+     implementation or specialization of a feature where the default is
+     inappropriate. For example, text analyzers and tokenizers are an area
+     where many parameters and environmental or cultural factors are calling
+     for customization.
+
+     PyLucene enables this by providing Java extension points listed below
+     that serve as proxies for Java to call back into the Python
+     implementations of these customizations.
+
+     These extension points are simple Java classes that JCC generates the
+     native C++ implementations for. It is easy to add more such extensions
+     classes into the 'java' directory of the PyLucene source tree.
+
+     To learn more about this topic, please refer to the jcc/README file.
+
+     Please refer to the classes in the 'java' tree for currently available
+     extension points. Examples of uses of these extension points are to be
+     found in PyLucene's unit tests and "Lucene in Action" samples.

Propchange: lucene/pylucene/trunk/README
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/README
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/build.xml?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/build.xml (added)
+++ lucene/pylucene/trunk/build.xml Thu Jan  8 19:28:33 2009
@@ -0,0 +1,27 @@
+
+<project name="extensions" default="jar">
+
+  <path id="classpath">
+    <fileset dir="${lucene.dir}/build" includes="**/*.jar" />
+  </path>
+
+  <property name="build.dir" value="build" />
+  <property name="classes.dir" value="${build.dir}/classes" />
+  <property name="jar.dir" value="${build.dir}/jar" />
+
+  <target name="clean">
+    <delete dir="${classes.dir}"/>
+    <delete dir="${jar.dir}"/>
+  </target>
+
+  <target name="compile">
+    <mkdir dir="${classes.dir}"/>
+    <javac srcdir="java" destdir="${classes.dir}" classpathref="classpath" />
+  </target>
+
+  <target name="jar" depends="compile">
+    <mkdir dir="${jar.dir}" />
+    <jar destfile="${jar.dir}/extensions.jar" basedir="${classes.dir}" />
+  </target>
+
+</project>

Propchange: lucene/pylucene/trunk/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonAnalyzer.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonAnalyzer.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonAnalyzer.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,49 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.analysis;
+
+import org.apache.lucene.analysis.Analyzer;
+import org.apache.lucene.analysis.TokenStream;
+import java.io.Reader;
+
+public class PythonAnalyzer extends Analyzer {
+
+    private long pythonObject;
+
+    public PythonAnalyzer()
+    {
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native TokenStream tokenStream(String fieldName, Reader reader);
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonAnalyzer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonAnalyzer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonCharTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonCharTokenizer.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonCharTokenizer.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonCharTokenizer.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,52 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.analysis;
+
+import org.apache.lucene.analysis.CharTokenizer;
+import java.io.IOException;
+import java.io.Reader;
+
+
+public class PythonCharTokenizer extends CharTokenizer {
+
+    private long pythonObject;
+
+    public PythonCharTokenizer(Reader reader)
+    {
+        super(reader);
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native boolean isTokenChar(char c);
+    public native char normalize(char c);
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonCharTokenizer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonCharTokenizer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenFilter.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenFilter.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenFilter.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenFilter.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,53 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.analysis;
+
+import org.apache.lucene.analysis.TokenFilter;
+import org.apache.lucene.analysis.TokenStream;
+import org.apache.lucene.analysis.Token;
+import java.io.IOException;
+
+
+public class PythonTokenFilter extends TokenFilter {
+
+    private long pythonObject;
+
+    public PythonTokenFilter(TokenStream tokenStream)
+    {
+        super(tokenStream);
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native Token next()
+        throws IOException;
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenFilter.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenStream.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenStream.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenStream.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenStream.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,52 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.analysis;
+
+import org.apache.lucene.analysis.TokenStream;
+import org.apache.lucene.analysis.Token;
+import java.io.IOException;
+
+
+public class PythonTokenStream extends TokenStream {
+
+    private long pythonObject;
+
+    public PythonTokenStream()
+    {
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native Token next();
+    public native void reset();
+    public native void close();
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenStream.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenStream.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenizer.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenizer.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenizer.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,54 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.analysis;
+
+import org.apache.lucene.analysis.Tokenizer;
+import org.apache.lucene.analysis.Token;
+import java.io.IOException;
+import java.io.Reader;
+
+
+public class PythonTokenizer extends Tokenizer {
+
+    private long pythonObject;
+
+    public PythonTokenizer(Reader reader)
+    {
+        super(reader);
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+
+    public native Token next()
+        throws IOException;
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenizer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/analysis/PythonTokenizer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonMultiFieldQueryParser.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonMultiFieldQueryParser.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonMultiFieldQueryParser.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonMultiFieldQueryParser.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,63 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.queryParser;
+
+import java.util.Vector;
+
+import org.apache.lucene.analysis.Analyzer;
+import org.apache.lucene.search.Query;
+import org.apache.lucene.queryParser.MultiFieldQueryParser;
+import org.apache.lucene.queryParser.ParseException;
+
+
+public class PythonMultiFieldQueryParser extends MultiFieldQueryParser {
+
+    private long pythonObject;
+
+    public PythonMultiFieldQueryParser(String[] fields, Analyzer analyzer)
+    {
+        super(fields, analyzer);
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native Query getBooleanQuery(Vector clauses);
+    public native Query getFieldQuery(String field, String queryText);
+    public native Query getFieldQuery(String field, String queryText, int slop);
+    public native Query getFuzzyQuery(String field, String termText,
+                                      float minSimilarity);
+    public native Query getPrefixQuery(String field, String termText);
+    public native Query getRangeQuery(String field,
+                                      String part1, String part2,
+                                      boolean inclusive);
+    public native Query getWildcardQuery(String field, String termText);
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonMultiFieldQueryParser.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonMultiFieldQueryParser.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonQueryParser.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonQueryParser.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonQueryParser.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonQueryParser.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,69 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.queryParser;
+
+import java.util.Vector;
+
+import org.apache.lucene.analysis.Analyzer;
+import org.apache.lucene.search.Query;
+import org.apache.lucene.queryParser.QueryParser;
+import org.apache.lucene.queryParser.CharStream;
+import org.apache.lucene.queryParser.ParseException;
+
+
+public class PythonQueryParser extends QueryParser {
+
+    private long pythonObject;
+
+    public PythonQueryParser(String field, Analyzer analyzer)
+    {
+        super(field, analyzer);
+    }
+
+    public PythonQueryParser(CharStream stream)
+    {
+        super(stream);
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native Query getBooleanQuery(Vector clauses);
+    public native Query getFieldQuery(String field, String queryText);
+    public native Query getFieldQuery(String field, String queryText, int slop);
+    public native Query getFuzzyQuery(String field, String termText,
+                                      float minSimilarity);
+    public native Query getPrefixQuery(String field, String termText);
+    public native Query getRangeQuery(String field,
+                                      String part1, String part2,
+                                      boolean inclusive);
+    public native Query getWildcardQuery(String field, String termText);
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonQueryParser.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/queryParser/PythonQueryParser.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonFilter.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonFilter.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonFilter.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonFilter.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,53 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.search;
+
+import org.apache.lucene.search.Filter;
+import org.apache.lucene.index.IndexReader;
+import java.util.BitSet;
+
+/**
+ * @author Andi Vajda
+ */
+
+public class PythonFilter extends Filter {
+
+    private long pythonObject;
+
+    public PythonFilter()
+    {
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native BitSet bits(IndexReader reader);
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonFilter.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonHitCollector.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonHitCollector.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonHitCollector.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonHitCollector.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,51 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.search;
+
+import org.apache.lucene.search.HitCollector;
+
+/**
+ * @author Andi Vajda
+ */
+
+public class PythonHitCollector extends HitCollector {
+
+    private long pythonObject;
+
+    public PythonHitCollector()
+    {
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native void collect(int doc, float score);
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonHitCollector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonHitCollector.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonScoreDocComparator.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonScoreDocComparator.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonScoreDocComparator.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonScoreDocComparator.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,52 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.search;
+
+import org.apache.lucene.search.ScoreDoc;
+import org.apache.lucene.search.ScoreDocComparator;
+import java.io.IOException;
+
+
+public class PythonScoreDocComparator implements ScoreDocComparator {
+
+    private long pythonObject;
+
+    public PythonScoreDocComparator()
+    {
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native int compare(ScoreDoc i, ScoreDoc j);
+    public native int sortType();
+    public native Comparable sortValue(ScoreDoc i);
+}

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonScoreDocComparator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonScoreDocComparator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSimilarity.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSimilarity.java?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSimilarity.java (added)
+++ lucene/pylucene/trunk/java/org/osafoundation/lucene/search/PythonSimilarity.java Thu Jan  8 19:28:33 2009
@@ -0,0 +1,68 @@
+/* ====================================================================
+ *   Copyright (c) 2004-2008 Open Source Applications Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ * ====================================================================
+ */
+
+package org.osafoundation.lucene.search;
+
+import org.apache.lucene.search.Similarity;
+import org.apache.lucene.search.Searcher;
+import org.apache.lucene.index.Term;
+import java.util.Collection;
+
+
+public class PythonSimilarity extends Similarity {
+
+    private long pythonObject;
+
+    public PythonSimilarity()
+    {
+    }
+
+    public void pythonExtension(long pythonObject)
+    {
+        this.pythonObject = pythonObject;
+    }
+    public long pythonExtension()
+    {
+        return this.pythonObject;
+    }
+
+    public void finalize()
+        throws Throwable
+    {
+        pythonDecRef();
+    }
+
+    public native void pythonDecRef();
+    public native float coord(int overlap, int maxOverlap);
+    public native float idfTerm(Term term, Searcher searcher);
+    public native float idfTerms(Collection terms, Searcher searcher);
+    public native float idf(int docFreq, int numDocs);
+    public native float lengthNorm(String fieldName, int numTokens);
+    public native float queryNorm(float sumOfSquaredWeights);
+    public native float sloppyFreq(int distance);
+    public native float tf(float freq);
+
+    public float idf(Term term, Searcher searcher)
+    {
+        return idfTerm(term, searcher);
+    }
+
+    public float idf(Collection terms, Searcher searcher)
+    {
+        return idfTerms(terms, searcher);
+    }
+}