You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2013/07/01 01:17:14 UTC
svn commit: r1498194 - in /lucene/pylucene/branches/pylucene_4_3/samples:
FacetExample.py IndexFiles.py PorterStemmerAnalyzer.py SearchFiles.py
TermPositionVector.py ThreadIndexFiles.py manindex.py mansearch.py
Author: vajda
Date: Sun Jun 30 23:17:13 2013
New Revision: 1498194
URL: http://svn.apache.org/r1498194
Log:
added missing -Djava.awt.headless=true in samples initVM() calls
Modified:
lucene/pylucene/branches/pylucene_4_3/samples/FacetExample.py
lucene/pylucene/branches/pylucene_4_3/samples/IndexFiles.py
lucene/pylucene/branches/pylucene_4_3/samples/PorterStemmerAnalyzer.py
lucene/pylucene/branches/pylucene_4_3/samples/SearchFiles.py
lucene/pylucene/branches/pylucene_4_3/samples/TermPositionVector.py
lucene/pylucene/branches/pylucene_4_3/samples/ThreadIndexFiles.py
lucene/pylucene/branches/pylucene_4_3/samples/manindex.py
lucene/pylucene/branches/pylucene_4_3/samples/mansearch.py
Modified: lucene/pylucene/branches/pylucene_4_3/samples/FacetExample.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/FacetExample.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/FacetExample.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/FacetExample.py Sun Jun 30 23:17:13 2013
@@ -320,5 +320,5 @@ class FacetExample(object):
if __name__ == '__main__':
- lucene.initVM()
+ lucene.initVM(vmargs=['-Djava.awt.headless=true'])
FacetExample.main(sys.argv)
Modified: lucene/pylucene/branches/pylucene_4_3/samples/IndexFiles.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/IndexFiles.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/IndexFiles.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/IndexFiles.py Sun Jun 30 23:17:13 2013
@@ -95,7 +95,7 @@ if __name__ == '__main__':
if len(sys.argv) < 2:
print IndexFiles.__doc__
sys.exit(1)
- lucene.initVM()
+ lucene.initVM(vmargs=['-Djava.awt.headless=true'])
print 'lucene', lucene.VERSION
start = datetime.now()
try:
Modified: lucene/pylucene/branches/pylucene_4_3/samples/PorterStemmerAnalyzer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/PorterStemmerAnalyzer.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/PorterStemmerAnalyzer.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/PorterStemmerAnalyzer.py Sun Jun 30 23:17:13 2013
@@ -57,7 +57,7 @@ if __name__ == '__main__':
if len(sys.argv) < 2:
print IndexFiles.__doc__
sys.exit(1)
- lucene.initVM()
+ lucene.initVM(vmargs=['-Djava.awt.headless=true'])
print 'lucene', lucene.VERSION
start = datetime.now()
try:
Modified: lucene/pylucene/branches/pylucene_4_3/samples/SearchFiles.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/SearchFiles.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/SearchFiles.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/SearchFiles.py Sun Jun 30 23:17:13 2013
@@ -42,7 +42,7 @@ def run(searcher, analyzer):
if __name__ == '__main__':
- lucene.initVM()
+ lucene.initVM(vmargs=['-Djava.awt.headless=true'])
print 'lucene', lucene.VERSION
base_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
directory = SimpleFSDirectory(File(os.path.join(base_dir, INDEX_DIR)))
Modified: lucene/pylucene/branches/pylucene_4_3/samples/TermPositionVector.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/TermPositionVector.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/TermPositionVector.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/TermPositionVector.py Sun Jun 30 23:17:13 2013
@@ -10,7 +10,7 @@ from org.apache.lucene.index import \
IndexWriterConfig, IndexWriter, DirectoryReader
if __name__ == '__main__':
- lucene.initVM()
+ lucene.initVM(vmargs=['-Djava.awt.headless=true'])
directory = RAMDirectory()
iconfig = IndexWriterConfig(Version.LUCENE_CURRENT, LimitTokenCountAnalyzer(StandardAnalyzer(Version.LUCENE_CURRENT), 100))
Modified: lucene/pylucene/branches/pylucene_4_3/samples/ThreadIndexFiles.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/ThreadIndexFiles.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/ThreadIndexFiles.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/ThreadIndexFiles.py Sun Jun 30 23:17:13 2013
@@ -29,7 +29,7 @@ if __name__ == '__main__':
if len(sys.argv) < 2:
print IndexFiles.__doc__
sys.exit(1)
- env=lucene.initVM()
+ env=lucene.initVM(vmargs=['-Djava.awt.headless=true'])
print 'lucene', lucene.VERSION
def fn():
Modified: lucene/pylucene/branches/pylucene_4_3/samples/manindex.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/manindex.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/manindex.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/manindex.py Sun Jun 30 23:17:13 2013
@@ -85,7 +85,7 @@ if __name__ == '__main__':
print "Usage: python manindex.py <index dir>"
else:
- lucene.initVM()
+ lucene.initVM(vmargs=['-Djava.awt.headless=true'])
directory = SimpleFSDirectory(File(sys.argv[1]))
analyzer = StandardAnalyzer(Version.LUCENE_CURRENT)
analyzer = LimitTokenCountAnalyzer(analyzer, 10000)
Modified: lucene/pylucene/branches/pylucene_4_3/samples/mansearch.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_3/samples/mansearch.py?rev=1498194&r1=1498193&r2=1498194&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_4_3/samples/mansearch.py (original)
+++ lucene/pylucene/branches/pylucene_4_3/samples/mansearch.py Sun Jun 30 23:17:13 2013
@@ -36,7 +36,7 @@ from org.apache.lucene.store import Simp
from org.apache.lucene.util import Version
if __name__ == '__main__':
- lucene.initVM()
+ lucene.initVM(vmargs=['-Djava.awt.headless=true'])
def usage():
print sys.argv[0], "[--format=<format string>] [--index=<index dir>] [--stats] <query...>"