Skip to content

Instantly share code, notes, and snippets.

View ryszard's full-sized avatar

Ric (Ryszard) Szopa ryszard

View GitHub Profile
<fieldType
name="trigram"
stored="true"
class="solr.StrField">
<analyzer type="index">
<tokenizer
class="solr.analysis.NGramTokenizerFactory"
minGramSize="3"
maxGramSize="5"
/>
import threading
import time
class Unblocker(threading.Thread):
"""Release `lock` after `t` seconds.
"""
def __init__(self, lock, t):
self.lock = lock
self.time = t
(richard garibaldi):~/SetJam/setjam/setjam% ./manage.pyTraceback (most recent call last):
File "./manage.py", line 15, in <module>
execute_manager(settings)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/core/management/__init__.py", line 338, in execute_manager
setup_environ(settings_mod)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/core/management/__init__.py", line 316, in setup_environ
project_module = __import__(project_name, {}, {}, [''])
File "/Users/richard/SetJam/setjam/setjam/../setjam/__init__.py", line 33, in <module>
getattr(settings, 'LOG_FILE', "logs/setjam.log"),
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/conf/__init__.py", line 28, in __getattr__