lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r732916 [8/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...
Date Fri, 09 Jan 2009 03:28:41 GMT
Added: lucene/pylucene/trunk/jcc/setup.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/setup.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/jcc/setup.py (added)
+++ lucene/pylucene/trunk/jcc/setup.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,306 @@
+#   Copyright (c) 2007-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.
+
+import os, sys, platform, subprocess
+
+python_ver = '%d.%d.%d' %(sys.version_info[0:3])
+machine = platform.machine()
+
+if machine.startswith("iPod") or machine.startswith("iPhone"):
+    platform = 'ipod'
+else:
+    platform = sys.platform
+
+
+# Add or edit the entry corresponding to your system in the INCLUDES, CFLAGS
+# DEBUG_CFLAGS, LFLAGS and JAVAC dictionaries below. These entries are used
+# to build JCC _and_ by JCC to drive compiling and linking via distutils or
+# setuptools the extensions it generated code for. The key for your system
+# is determined by the platform variable defined above.
+#
+# Instead of editing the entries below, you may also override these
+# dictionaries with JCC_INCLUDES, JCC_CFLAGS, JCC_DEBUG_CFLAGS, JCC_LFLAGS
+# and JCC_JAVAC environment variables using os.pathsep as value separator.
+
+INCLUDES = {
+    'darwin': ['/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers'],
+    'ipod': ['/usr/include/gcc/darwin/default'],
+    'linux2': ['/usr/lib/jvm/java-6-openjdk/include',
+               '/usr/lib/jvm/java-6-openjdk/include/linux'],
+    'sunos5': ['/usr/jdk/instances/jdk1.6.0/include',
+               '/usr/jdk/instances/jdk1.6.0/include/solaris'],
+    'win32': ['o:/Java/jdk1.6.0_02/include',
+              'o:/Java/jdk1.6.0_02/include/win32'],
+}
+
+CFLAGS = {
+    'darwin': ['-fno-strict-aliasing'],
+    'ipod': ['-Wno-write-strings'],
+    'linux2': ['-fno-strict-aliasing', '-Wno-write-strings'],
+    'sunos5': ['-features=iddollar',
+               '-erroff=badargtypel2w,wbadinitl,wvarhidemem'],
+    'win32': [],
+}
+
+# added to CFLAGS when JCC is invoked with --debug
+DEBUG_CFLAGS = {
+    'darwin': ['-O0', '-g', '-DDEBUG'],
+    'ipod': ['-O0', '-g', '-DDEBUG'],
+    'linux2': ['-O0', '-g', '-DDEBUG'],
+    'sunos5': ['-DDEBUG'],
+    'win32': ['/Od', '/DDEBUG'],
+}
+
+LFLAGS = {
+    'darwin': ['-framework', 'JavaVM', '-framework', 'Python'],
+    'ipod': ['-ljvm', '-lpython%s.%s' %(sys.version_info[0:2]),
+             '-L/usr/lib/gcc/arm-apple-darwin9/4.0.1'],
+    'linux2/i386': ['-L/usr/lib/jvm/java-6-sun/jre/lib/i386', '-ljava',
+                    '-L/usr/lib/jvm/java-6-sun/jre/lib/i386/client', '-ljvm',
+                    '-Wl,-rpath=/usr/lib/jvm/java-6-sun/jre/lib/i386:/usr/lib/jvm/java-6-sun/jre/lib/i386/client'],
+    'linux2/i686': ['-L/usr/lib/jvm/java-6-sun/jre/lib/i386', '-ljava',
+                    '-L/usr/lib/jvm/java-6-sun/jre/lib/i386/client', '-ljvm',
+                    '-Wl,-rpath=/usr/lib/jvm/java-6-sun/jre/lib/i386:/usr/lib/jvm/java-6-sun/jre/lib/i386/client'],
+    'linux2/x86_64': ['-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64', '-ljava',
+                      '-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server', '-ljvm',
+                      '-Wl,-rpath=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server'],
+    'sunos5': ['-L/usr/jdk/instances/jdk1.6.0/jre/lib/i386', '-ljava',
+               '-L/usr/jdk/instances/jdk1.6.0/jre/lib/i386/client', '-ljvm',
+               '-R/usr/jdk/instances/jdk1.6.0/jre/lib/i386:/usr/jdk/instances/jre/lib/i386/client'],
+    'win32': ['/LIBPATH:o:/Java/jdk1.6.0_02/lib', 'jvm.lib'],
+}
+
+if platform == 'linux2':
+    LFLAGS['linux2'] = LFLAGS['linux2/%s' %(machine)]
+
+JAVAC = {
+    'darwin': ['javac', '-target', '1.5'],
+    'ipod': ['jikes', '-cp', '/usr/share/classpath/glibj.zip'],
+    'linux2': ['javac'],
+    'sunos5': ['javac'],
+    'win32': ['javac.exe'],
+}
+        
+
+try:
+    if 'USE_DISTUTILS' in os.environ:
+        raise ImportError
+    from setuptools import setup, Extension
+    from pkg_resources import require
+    with_setuptools = require('setuptools')[0].version
+
+    enable_shared = False
+    if with_setuptools >= '0.6c7' and 'NO_SHARED' not in os.environ:
+        if platform in ('darwin', 'ipod', 'win32'):
+            enable_shared = True
+        elif platform == 'linux2':
+            try:
+                from setuptools.command.build_ext import sh_link_shared_object
+                enable_shared = True  # jcc/patches/patch.43 was applied
+            except ImportError:
+                import setuptools
+                jccdir = os.path.dirname(os.path.abspath(__file__))
+                st_egg = os.path.dirname(setuptools.__path__[0])
+
+                def patch_st_dir():
+                    return '''
+
+Shared mode is disabled, setuptools patch.43 must be applied to enable it
+or the NO_SHARED environment variable must be set to turn off this error.
+
+    sudo patch -d %s -Nup0 < %s/jcc/patches/patch.43
+
+See %s/INSTALL for more information about shared mode.
+''' %(st_egg, jccdir, jccdir)
+
+                def patch_st_zip():
+                    return '''
+
+Shared mode is disabled, setuptools patch.43 must be applied to enable it
+or the NO_SHARED environment variable must be set to turn off this error.
+
+    mkdir tmp
+    cd tmp
+    unzip -q %s
+    patch -Nup0 < %s/jcc/patches/patch.43
+    sudo zip %s -f
+    cd ..
+    rm -rf tmp
+
+See %s/INSTALL for more information about shared mode.
+''' %(st_egg, jccdir, st_egg, jccdir)
+
+                if os.path.isdir(st_egg):
+                    raise NotImplementedError, patch_st_dir()
+                else:
+                    raise NotImplementedError, patch_st_zip()
+
+except ImportError:
+    if python_ver < '2.4':
+        raise ImportError, 'setuptools is required when using Python 2.3'
+    else:
+        from distutils.core import setup, Extension
+        with_setuptools = None
+        enable_shared = False
+
+
+def main(debug):
+
+    _jcc_argsep = os.environ.get('JCC_ARGSEP', os.pathsep)
+
+    if 'JCC_INCLUDES' in os.environ:
+        _includes = os.environ['JCC_INCLUDES'].split(_jcc_argsep)
+    else:
+        _includes = INCLUDES[platform]
+
+    if 'JCC_CFLAGS' in os.environ:
+        _cflags = os.environ['JCC_CFLAGS'].split(_jcc_argsep)
+    else:
+        _cflags = CFLAGS[platform]
+
+    if 'JCC_DEBUG_CFLAGS' in os.environ:
+        _debug_cflags = os.environ['JCC_DEBUG_CFLAGS'].split(_jcc_argsep)
+    else:
+        _debug_cflags = DEBUG_CFLAGS[platform]
+
+    if 'JCC_LFLAGS' in os.environ:
+        _lflags = os.environ['JCC_LFLAGS'].split(_jcc_argsep)
+    else:
+        _lflags = LFLAGS[platform]
+
+    if 'JCC_JAVAC' in os.environ:
+        _javac = os.environ['JCC_JAVAC'].split(_jcc_argsep)
+    else:
+        _javac = JAVAC[platform]
+
+    config = file(os.path.join(os.path.dirname(os.path.abspath(__file__)),
+                               'jcc', 'config.py'), 'w')
+    print >>config
+    print >>config, 'INCLUDES=%s' %(_includes)
+    print >>config, 'CFLAGS=%s' %(_cflags)
+    print >>config, 'DEBUG_CFLAGS=%s' %(_debug_cflags)
+    print >>config, 'LFLAGS=%s' %(_lflags)
+    print >>config, 'SHARED=%s' %(enable_shared)
+    print >>config
+    config.close()
+
+    extensions = []
+
+    boot = '_jcc'
+
+    cflags = ['-DPYTHON'] + _cflags
+    if debug:
+        cflags += _debug_cflags
+    includes = _includes + [boot, 'jcc/sources']
+    lflags = _lflags
+    if not debug:
+        if platform == 'win32':
+            pass
+        elif platform == 'sunos5':
+            lflags += ['-Wl,-s']
+        else:
+            lflags += ['-Wl,-S']
+
+    sources = ['jcc/sources/jcc.cpp',
+               'jcc/sources/JCCEnv.cpp',
+               'jcc/sources/JObject.cpp',
+               'jcc/sources/JArray.cpp',
+               'jcc/sources/functions.cpp',
+               'jcc/sources/types.cpp']
+    for path, dirs, names in os.walk(boot):
+        for name in names:
+            if name.endswith('.cpp'):
+                sources.append(os.path.join(path, name))
+    package_data = ['sources/*.cpp', 'sources/*.h', 'patches/patch.*']
+
+    if with_setuptools and enable_shared:
+        from subprocess import Popen, PIPE
+        from setuptools import Library
+
+        kwds = { "extra_compile_args": cflags,
+                 "include_dirs": includes,
+                 "define_macros": [('_jcc_lib', None)],
+                 "sources": sources[0:2] }
+
+        if platform in ('darwin', 'ipod'):
+            kwds["extra_link_args"] = \
+                lflags + ['-install_name', '@rpath/libjcc.dylib',
+                          '-current_version', '2.0',
+                          '-compatibility_version', '2.0']
+        elif platform == 'linux2':
+            kwds["extra_link_args"] = \
+                lflags + ['-lpython%s.%s' %(sys.version_info[0:2])]
+            kwds["force_shared"] = True    # requires jcc/patches/patch.43
+        elif platform == 'win32':
+            jcclib = 'jcc%s.lib' %(debug and '_d' or '')
+            kwds["extra_link_args"] = \
+                lflags + ["/IMPLIB:%s" %(os.path.join('jcc', jcclib))]
+            package_data.append(jcclib)
+        else:
+            kwds["extra_link_args"] = lflags
+
+        extensions.append(Library('jcc', **kwds))
+
+        args = _javac[:]
+        args.extend(('-d', 'jcc/classes'))
+        args.append('java/org/osafoundation/jcc/PythonVM.java')
+        args.append('java/org/osafoundation/jcc/PythonException.java')
+        if not os.path.exists('jcc/classes'):
+            os.makedirs('jcc/classes')
+        try:
+            process = Popen(args, stderr=PIPE)
+        except Exception, e:
+            raise type(e), "%s: %s" %(e, args)
+        process.wait()
+        if process.returncode != 0:
+            raise OSError, process.stderr.read()
+        package_data.append('classes/org/osafoundation/jcc/PythonVM.class')
+        package_data.append('classes/org/osafoundation/jcc/PythonException.class')
+
+    extensions.append(Extension('jcc._jcc',
+                                extra_compile_args=cflags,
+                                extra_link_args=lflags,
+                                include_dirs=includes,
+                                sources=sources))
+
+    args = {
+        'name': 'JCC',
+        'version': '2.1',
+        'description': 'a C++ code generator for calling Java from C++/Python',
+        'long_description': open('DESCRIPTION').read(),
+        'author': 'Andi Vajda',
+        'author_email': 'vajda@osafoundation.org',
+        'classifiers': ['Development Status :: 5 - Production/Stable',
+                        'Environment :: Console',
+                        'Intended Audience :: Developers',
+                        'License :: OSI Approved :: Apache Software License',
+                        'Operating System :: OS Independent',
+                        'Programming Language :: C++',
+                        'Programming Language :: Java',
+                        'Programming Language :: Python',
+                        'Topic :: Software Development :: Code Generators',
+                        'Topic :: Software Development :: Libraries :: Java Libraries'],
+        'packages': ['jcc'],
+        'package_dir': {'jcc': 'jcc'},
+        'package_data': {'jcc': package_data},
+        'ext_modules': extensions
+    }
+    if with_setuptools:
+        args['zip_safe'] = False
+        
+    setup(**args)
+
+
+if __name__ == "__main__":
+    main('--debug' in sys.argv)

Propchange: lucene/pylucene/trunk/jcc/setup.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/jcc/setup.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/IndexFiles.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/IndexFiles.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/IndexFiles.py (added)
+++ lucene/pylucene/trunk/samples/IndexFiles.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,85 @@
+#!/usr/bin/env python
+
+import sys, os, lucene, threading, time
+from datetime import datetime
+
+"""
+This class is loosely based on the Lucene (java implementation) demo class 
+org.apache.lucene.demo.IndexFiles.  It will take a directory as an argument
+and will index all of the files in that directory and downward recursively.
+It will index on the file path, the file name and the file contents.  The
+resulting Lucene index will be placed in the current directory and called
+'index'.
+"""
+
+class Ticker(object):
+
+    def __init__(self):
+        self.tick = True
+
+    def run(self):
+        while self.tick:
+            sys.stdout.write('.')
+            sys.stdout.flush()
+            time.sleep(1.0)
+
+class IndexFiles(object):
+    """Usage: python IndexFiles <doc_directory>"""
+
+    def __init__(self, root, storeDir, analyzer):
+
+        if not os.path.exists(storeDir):
+            os.mkdir(storeDir)
+        store = lucene.FSDirectory.getDirectory(storeDir, True)
+        writer = lucene.IndexWriter(store, analyzer, True)
+        writer.setMaxFieldLength(1048576)
+        self.indexDocs(root, writer)
+        ticker = Ticker()
+        print 'optimizing index',
+        threading.Thread(target=ticker.run).start()
+        writer.optimize()
+        writer.close()
+        ticker.tick = False
+        print 'done'
+
+    def indexDocs(self, root, writer):
+        for root, dirnames, filenames in os.walk(root):
+            for filename in filenames:
+                if not filename.endswith('.txt'):
+                    continue
+                print "adding", filename
+                try:
+                    path = os.path.join(root, filename)
+                    file = open(path)
+                    contents = unicode(file.read(), 'iso-8859-1')
+                    file.close()
+                    doc = lucene.Document()
+                    doc.add(lucene.Field("name", filename,
+                                         lucene.Field.Store.YES,
+                                         lucene.Field.Index.UN_TOKENIZED))
+                    doc.add(lucene.Field("path", path,
+                                         lucene.Field.Store.YES,
+                                         lucene.Field.Index.UN_TOKENIZED))
+                    if len(contents) > 0:
+                        doc.add(lucene.Field("contents", contents,
+                                             lucene.Field.Store.NO,
+                                             lucene.Field.Index.TOKENIZED))
+                    else:
+                        print "warning: no content in %s" % filename
+                    writer.addDocument(doc)
+                except Exception, e:
+                    print "Failed in indexDocs:", e
+
+if __name__ == '__main__':
+    if len(sys.argv) < 2:
+        print IndexFiles.__doc__
+        sys.exit(1)
+    lucene.initVM(lucene.CLASSPATH)
+    print 'lucene', lucene.VERSION
+    start = datetime.now()
+    try:
+        IndexFiles(sys.argv[1], "index", lucene.StandardAnalyzer())
+        end = datetime.now()
+        print end - start
+    except Exception, e:
+        print "Failed: ", e

Propchange: lucene/pylucene/trunk/samples/IndexFiles.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/IndexFiles.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/JavaSet.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/JavaSet.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/JavaSet.py (added)
+++ lucene/pylucene/trunk/samples/JavaSet.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,94 @@
+
+from lucene import PythonSet, PythonIterator, JavaError
+
+
+class JavaSet(PythonSet):
+
+    def __init__(self, _set):
+        super(JavaSet, self).__init__()
+        self._set = _set
+
+    def add(self, obj):
+        if obj not in self._set:
+            self._set.add(obj)
+            return True
+        return False
+
+    def addAll(self, collection):
+        size = len(self._set)
+        self._set.update(collection)
+        return len(self._set) > size
+
+    def clear(self):
+        self._set.clear()
+
+    def contains(self, obj):
+        return obj in self._set
+
+    def containsAll(self, collection):
+        for obj in collection:
+            if obj not in self._set:
+                return False
+        return True
+
+    def equals(self, collection):
+        if type(self) is type(collection):
+            return self._set == collection._set
+        return False
+
+    def isEmpty(self):
+        return len(self._set) == 0
+
+    def iterator(self):
+        class _iterator(PythonIterator):
+            def __init__(_self):
+                super(_iterator, _self).__init__()
+                _self._iterator = iter(self._set)
+            def hasNext(_self):
+                if hasattr(_self, '_next'):
+                    return True
+                try:
+                    _self._next = _self._iterator.next()
+                    return True
+                except StopIteration:
+                    return False
+            def next(_self):
+                if hasattr(_self, '_next'):
+                    next = _self._next
+                    del _self._next
+                else:
+                    next = _self._iterator.next()
+                return next
+        return _iterator()
+            
+    def remove(self, obj):
+        try:
+            self._set.remove(obj)
+            return True
+        except KeyError:
+            return False
+
+    def removeAll(self, collection):
+        result = False
+        for obj in collection:
+            try:
+                self._set.remove(obj)
+                result = True
+            except KeyError:
+                pass
+        return result
+
+    def retainAll(self, collection):
+        result = False
+        for obj in list(self._set):
+            if obj not in c:
+                self._set.remove(obj)
+                result = True
+        return result
+
+    def size(self):
+        return len(self._set)
+
+    def toArray(self):
+        return list(self._set)
+

Propchange: lucene/pylucene/trunk/samples/JavaSet.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/JavaSet.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/AdvancedQueryParserTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/AdvancedQueryParserTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/AdvancedQueryParserTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/AdvancedQueryParserTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.extsearch.queryparser.AdvancedQueryParserTest
+unittest.main(lia.extsearch.queryparser.AdvancedQueryParserTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AdvancedQueryParserTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AdvancedQueryParserTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/AnalysisParalysisTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/AnalysisParalysisTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/AnalysisParalysisTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/AnalysisParalysisTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.analysis.queryparser.AnalysisParalysisTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.analysis.queryparser.AnalysisParalysisTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AnalysisParalysisTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AnalysisParalysisTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerDemo.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerDemo.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerDemo.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerDemo.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.analysis.AnalyzerDemo import AnalyzerDemo
+AnalyzerDemo.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerDemo.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerDemo.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerUtils.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerUtils.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerUtils.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerUtils.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.analysis.AnalyzerUtils import AnalyzerUtils
+AnalyzerUtils.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerUtils.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/AnalyzerUtils.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/BasicSearchingTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/BasicSearchingTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/BasicSearchingTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/BasicSearchingTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.searching.BasicSearchingTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.searching.BasicSearchingTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BasicSearchingTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BasicSearchingTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbIndexer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbIndexer.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbIndexer.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbIndexer.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.tools.BerkeleyDbIndexer import BerkeleyDbIndexer
+BerkeleyDbIndexer.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbIndexer.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbIndexer.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbSearcher.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbSearcher.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbSearcher.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbSearcher.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.tools.BerkeleyDbSearcher import BerkeleyDbSearcher
+BerkeleyDbSearcher.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbSearcher.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BerkeleyDbSearcher.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/BooksLikeThis.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/BooksLikeThis.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/BooksLikeThis.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/BooksLikeThis.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+from lia.advsearching.BooksLikeThis import BooksLikeThis
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+BooksLikeThis.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BooksLikeThis.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BooksLikeThis.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/BooleanQueryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/BooleanQueryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/BooleanQueryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/BooleanQueryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.searching.BooleanQueryTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.searching.BooleanQueryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BooleanQueryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/BooleanQueryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/CategorizerTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/CategorizerTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/CategorizerTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/CategorizerTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.advsearching.CategorizerTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.advsearching.CategorizerTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/CategorizerTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/CategorizerTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/ChineseTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/ChineseTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/ChineseTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/ChineseTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.analysis.i18n.ChineseTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.analysis.i18n.ChineseTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/ChineseTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/ChineseTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.indexing.CompoundVersusMultiFileIndexTest
+unittest.main(lia.indexing.CompoundVersusMultiFileIndexTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/DistanceSortingTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/DistanceSortingTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/DistanceSortingTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/DistanceSortingTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.extsearch.sorting.DistanceSortingTest
+unittest.main(lia.extsearch.sorting.DistanceSortingTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/DistanceSortingTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/DistanceSortingTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/DocumentDeleteTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/DocumentDeleteTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/DocumentDeleteTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/DocumentDeleteTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.indexing.DocumentDeleteTest
+unittest.main(lia.indexing.DocumentDeleteTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/DocumentDeleteTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/DocumentDeleteTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/DocumentUpdateTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/DocumentUpdateTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/DocumentUpdateTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/DocumentUpdateTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.indexing.DocumentUpdateTest
+unittest.main(lia.indexing.DocumentUpdateTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/DocumentUpdateTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/DocumentUpdateTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/Explainer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/Explainer.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/Explainer.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/Explainer.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.searching.Explainer import Explainer
+Explainer.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/Explainer.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/Explainer.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/FS2RAMDirectoryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/FS2RAMDirectoryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/FS2RAMDirectoryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/FS2RAMDirectoryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.indexing.FS2RAMDirectoryTest
+unittest.main(lia.indexing.FS2RAMDirectoryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FS2RAMDirectoryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FS2RAMDirectoryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/FSversusRAMDirectoryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/FSversusRAMDirectoryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/FSversusRAMDirectoryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/FSversusRAMDirectoryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.indexing.FSversusRAMDirectoryTest
+unittest.main(lia.indexing.FSversusRAMDirectoryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FSversusRAMDirectoryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FSversusRAMDirectoryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/FieldLengthTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/FieldLengthTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/FieldLengthTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/FieldLengthTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.indexing.FieldLengthTest
+unittest.main(lia.indexing.FieldLengthTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FieldLengthTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FieldLengthTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/FileIndexer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/FileIndexer.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/FileIndexer.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/FileIndexer.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.handlingtypes.framework.FileIndexer import FileIndexer
+FileIndexer.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FileIndexer.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FileIndexer.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/FilterTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/FilterTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/FilterTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/FilterTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,14 @@
+
+# sample needs to be rewritten to use RangeFilter
+
+#import os, sys, unittest, lucene
+#lucene.initVM(lucene.CLASSPATH)
+#
+#baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+#sys.path.append(baseDir)
+#
+#import lia.advsearching.FilterTest
+#from lucene import System
+#
+#System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+#unittest.main(lia.advsearching.FilterTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FilterTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/FilterTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/HighlightIt.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/HighlightIt.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/HighlightIt.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/HighlightIt.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.tools.HighlightIt import HighlightIt
+HighlightIt.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/HighlightIt.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/HighlightIt.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/HighlightTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/HighlightTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/HighlightTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/HighlightTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.tools.HighlightTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.tools.HighlightTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/HighlightTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/HighlightTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/HitCollectorTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/HitCollectorTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/HitCollectorTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/HitCollectorTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.extsearch.hitcollector.HitCollectorTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.extsearch.hitcollector.HitCollectorTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/HitCollectorTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/HitCollectorTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/IndexTuningDemo.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/IndexTuningDemo.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/IndexTuningDemo.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/IndexTuningDemo.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.indexing.IndexTuningDemo import IndexTuningDemo
+IndexTuningDemo.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/IndexTuningDemo.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/IndexTuningDemo.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/Indexer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/Indexer.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/Indexer.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/Indexer.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.meetlucene.Indexer import Indexer
+Indexer.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/Indexer.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/Indexer.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/KeywordAnalyzerTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/KeywordAnalyzerTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/KeywordAnalyzerTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/KeywordAnalyzerTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.analysis.keyword.KeywordAnalyzerTest
+unittest.main(lia.analysis.keyword.KeywordAnalyzerTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/KeywordAnalyzerTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/KeywordAnalyzerTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/LockTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/LockTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/LockTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/LockTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.indexing.LockTest
+unittest.main(lia.indexing.LockTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/LockTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/LockTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/MultiFieldQueryParserTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/MultiFieldQueryParserTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/MultiFieldQueryParserTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/MultiFieldQueryParserTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.advsearching.MultiFieldQueryParserTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.advsearching.MultiFieldQueryParserTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/MultiFieldQueryParserTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/MultiFieldQueryParserTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/MultiSearcherTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/MultiSearcherTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/MultiSearcherTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/MultiSearcherTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.advsearching.MultiSearcherTest
+unittest.main(lia.advsearching.MultiSearcherTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/MultiSearcherTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/MultiSearcherTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/PhrasePrefixQueryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/PhrasePrefixQueryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/PhrasePrefixQueryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/PhrasePrefixQueryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,10 @@
+
+# sample needs to be rewritten to use MultiPhraseQuery
+
+#import os, sys, unittest, lucene
+#lucene.initVM(lucene.CLASSPATH)
+#
+#sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+#
+#import lia.advsearching.PhrasePrefixQueryTest
+#unittest.main(lia.advsearching.PhrasePrefixQueryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PhrasePrefixQueryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PhrasePrefixQueryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/PhraseQueryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/PhraseQueryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/PhraseQueryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/PhraseQueryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.searching.PhraseQueryTest
+unittest.main(lia.searching.PhraseQueryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PhraseQueryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PhraseQueryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,13 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.analysis.positional.PositionalPorterStopAnalyzerTest import \
+     PositionalPorterStopAnalyzerTest
+
+PositionalPorterStopAnalyzerTest.main()
+
+import lia.analysis.positional.PositionalPorterStopAnalyzerTest
+unittest.main(lia.analysis.positional.PositionalPorterStopAnalyzerTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/PrefixQueryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/PrefixQueryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/PrefixQueryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/PrefixQueryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.searching.PrefixQueryTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.searching.PrefixQueryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PrefixQueryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/PrefixQueryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/QueryParserTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/QueryParserTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/QueryParserTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/QueryParserTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.searching.QueryParserTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.searching.QueryParserTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/QueryParserTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/QueryParserTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/README
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/README?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/README (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/README Thu Jan  8 19:28:33 2009
@@ -0,0 +1,33 @@
+
+This directory contains most of the sample code from the "Lucene In Action"
+book by Erik Hatcher and Otis Gospodnetic. To purchase an electronic or
+printed copy of the book, visit http://www.manning.com/hatcher2
+
+The samples that were not ported depend on some third party java code not
+available to PyLucene or is related to remote searching which is not
+supported by PyLucene at this time.
+
+R E Q U I R E M E N T S
+-----------------------
+  * python 2.4
+  * PyLucene 2.0+
+  * for the FileIndexer.py sample, some text extraction is handled by third
+    party programs invoked as a sub-process. The code assumes that these
+    programs are on the PATH:
+    - PDF files: 
+      pdftotext and pdfinfo, both available from http://www.foolabs.com/xpdf
+    - MS Word files: antiword
+      antiword available from http://www.winfield.demon.nl
+    - RTF files:
+      not implemented
+
+I N S T A L L A T I O N
+-----------------------
+Before any of the samples can be run, some Lucene indexes need to be
+created by running 'index.py':
+   - python index.py
+
+R U N N I N G
+-------------
+Each of the files in this directory should be run from the command line:
+   - python BooleanQueryTest.py

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

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

Added: lucene/pylucene/trunk/samples/LuceneInAction/RangeQueryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/RangeQueryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/RangeQueryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/RangeQueryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.searching.RangeQueryTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.searching.RangeQueryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/RangeQueryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/RangeQueryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/ScoreTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/ScoreTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/ScoreTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/ScoreTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.searching.ScoreTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.searching.ScoreTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/ScoreTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/ScoreTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/Searcher.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/Searcher.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/Searcher.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/Searcher.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.meetlucene.Searcher import Searcher
+Searcher.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/Searcher.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/Searcher.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/SecurityFilterTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/SecurityFilterTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/SecurityFilterTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/SecurityFilterTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.advsearching.SecurityFilterTest
+unittest.main(lia.advsearching.SecurityFilterTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SecurityFilterTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SecurityFilterTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/SnowballTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/SnowballTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/SnowballTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/SnowballTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.tools.SnowballTest
+unittest.main(lia.tools.SnowballTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SnowballTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SnowballTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/SortingExample.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/SortingExample.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/SortingExample.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/SortingExample.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+from lia.advsearching.SortingExample import SortingExample
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+SortingExample.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SortingExample.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SortingExample.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/SpanQueryTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/SpanQueryTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/SpanQueryTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/SpanQueryTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.advsearching.SpanQueryTest
+unittest.main(lia.advsearching.SpanQueryTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SpanQueryTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SpanQueryTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/SpecialsFilterTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/SpecialsFilterTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/SpecialsFilterTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/SpecialsFilterTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,12 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+import lia.extsearch.filters.SpecialsFilterTest
+from lucene import System
+
+System.setProperty("index.dir", os.path.join(baseDir, 'index'))
+unittest.main(lia.extsearch.filters.SpecialsFilterTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SpecialsFilterTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SpecialsFilterTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerAlternativeTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerAlternativeTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerAlternativeTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerAlternativeTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,13 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.analysis.stopanalyzer.StopAnalyzerAlternativeTest import \
+     StopAnalyzerAlternativeTest
+
+StopAnalyzerAlternativeTest.main()
+
+import lia.analysis.stopanalyzer.StopAnalyzerAlternativeTest
+unittest.main(lia.analysis.stopanalyzer.StopAnalyzerAlternativeTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerAlternativeTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerAlternativeTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+import lia.analysis.stopanalyzer.StopAnalyzerTest
+unittest.main(lia.analysis.stopanalyzer.StopAnalyzerTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/StopAnalyzerTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerTest.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerTest.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerTest.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,11 @@
+
+import os, sys, unittest, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.analysis.synonym.SynonymAnalyzerTest import SynonymAnalyzerTest
+SynonymAnalyzerTest.main()
+
+import lia.analysis.synonym.SynonymAnalyzerTest
+unittest.main(lia.analysis.synonym.SynonymAnalyzerTest)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerViewer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerViewer.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerViewer.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerViewer.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,10 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+from lia.analysis.synonym.SynonymAnalyzerViewer import SynonymAnalyzerViewer
+SynonymAnalyzerViewer.main([sys.argv[0], os.path.join(baseDir,
+                                                      'indexes', 'wordnet')])

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerViewer.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/SynonymAnalyzerViewer.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/T9er.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/T9er.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/T9er.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/T9er.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.tools.T9er import T9er
+T9er.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/T9er.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/T9er.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/VerboseIndexing.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/VerboseIndexing.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/VerboseIndexing.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/VerboseIndexing.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,8 @@
+
+import os, sys, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+from lia.indexing.VerboseIndexing import VerboseIndexing
+VerboseIndexing.main(sys.argv)

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/VerboseIndexing.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/VerboseIndexing.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/education/pedagogy/amae.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/education/pedagogy/amae.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/education/pedagogy/amae.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/education/pedagogy/amae.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=A Modern Art of Education
+isbn=0854402624
+author=Rudolf Steiner
+pubmonth=198106
+subject=education philosophy psychology practice Waldorf
+url=http://www.amazon.com/exec/obidos/tg/detail/-/0854402624
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/health/alternative/chinese/ishal.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/health/alternative/chinese/ishal.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/health/alternative/chinese/ishal.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/health/alternative/chinese/ishal.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=Imperial Secrets of Health and Longevity
+isbn=0936185511
+author=Bob Flaws
+pubmonth=199401
+subject=diet chinese medicine qi gong health herbs
+url=http://www.bluepoppy.com/acb/showdetl.cfm?&DID=8&Product_ID=1696&CATID=11
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/philosophy/eastern/ttc.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/philosophy/eastern/ttc.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/philosophy/eastern/ttc.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/philosophy/eastern/ttc.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=Tao Te Ching \u9053\u5FB7\u7D93
+isbn=0060812451
+author=Stephen Mitchell
+subject=taoism
+pubmonth=198810
+url=http://www.amazon.com/exec/obidos/tg/detail/-/0060812451

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/ai/geb.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/ai/geb.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/ai/geb.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/ai/geb.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=G\u00F6del, Escher, Bach: an Eternal Golden Braid
+isbn=0465026567
+author=Douglas Hofstadter
+pubmonth=197903
+subject=artificial intelligence number theory mathematics music
+url=http://www.amazon.com/exec/obidos/tg/detail/-/0465026567
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/education/ms.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/education/ms.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/education/ms.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/education/ms.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=Mindstorms
+isbn=0465046290
+author=Seymour Papert
+pubmonth=198001
+subject=children computers powerful ideas LOGO education
+url=http://www.papert.org/
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jdwa.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jdwa.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jdwa.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jdwa.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+author=Erik Hatcher,Steve Loughran
+title=Java Development with Ant
+isbn=1930110588
+pubmonth=200208
+subject=apache jakarta ant build tool junit java development
+url=http://www.manning.com/antbook

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jia.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jia.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jia.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/jia.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=JUnit in Action
+isbn=1930110995
+pubmonth=200310
+author=Vincent Massol,Ted Husted
+subject=junit unit testing mock objects
+url=http://www.manning.com/massol
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/lia.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/lia.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/lia.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/lia.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=Lucene in Action
+isbn=tbd
+pubmonth=200406
+author=Otis Gospodnetic,Erik Hatcher
+subject=lucene search
+url=http://www.manning.com/lucene

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/methodology/epe.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/methodology/epe.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/methodology/epe.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/methodology/epe.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=Extreme Programming Explained
+isbn=0201616416
+author=Kent Beck
+pubmonth=199910
+subject=extreme programming agile test driven development methodology
+url=http://www.amazon.com/exec/obidos/tg/detail/-/0201616416
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tia.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tia.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tia.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tia.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=Tapestry in Action
+isbn=1932394117
+author=Howard Lewis-Ship
+pubmonth=200403
+subject=tapestry web user interface components
+url=http://www.manning.com/lewisship
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tpp.properties
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tpp.properties?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tpp.properties (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/data/technology/computers/programming/tpp.properties Thu Jan  8 19:28:33 2009
@@ -0,0 +1,6 @@
+title=The Pragmatic Programmer
+isbn=020161622X
+author=Dave Thomas,Andy Hunt
+pubmonth=199910
+subject=pragmatic agile methodology developer tools
+url=http://www.pragmaticprogrammer.com/ppbook/index.shtml
\ No newline at end of file

Added: lucene/pylucene/trunk/samples/LuceneInAction/index.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/index.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/index.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/index.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1,21 @@
+
+import os, sys, tarfile, lucene
+lucene.initVM(lucene.CLASSPATH)
+
+baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
+sys.path.append(baseDir)
+
+from lia.common.TestDataDocumentHandler import TestDataDocumentHandler
+
+TestDataDocumentHandler.createIndex(os.path.join(baseDir, 'data'),
+                                    os.path.join(baseDir, 'index'),
+                                    False)
+
+tar = tarfile.open(os.path.join(baseDir, 'indexes.tar.gz'), "r:gz")
+while True:
+    member = tar.next()
+    if member is None:
+        break
+    print member.name
+    tar.extract(member, baseDir)
+tar.close()

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/index.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/index.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: lucene/pylucene/trunk/samples/LuceneInAction/indexes.tar.gz
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/indexes.tar.gz?rev=732916&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/indexes.tar.gz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lucene/pylucene/trunk/samples/LuceneInAction/lia/__init__.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/LuceneInAction/lia/__init__.py?rev=732916&view=auto
==============================================================================
--- lucene/pylucene/trunk/samples/LuceneInAction/lia/__init__.py (added)
+++ lucene/pylucene/trunk/samples/LuceneInAction/lia/__init__.py Thu Jan  8 19:28:33 2009
@@ -0,0 +1 @@
+# lia package

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/lia/__init__.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lucene/pylucene/trunk/samples/LuceneInAction/lia/__init__.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message