def _remove_book_from_index_handler(sender, instance, **kwargs):
""" remove the book from search index, when it is deleted."""
import search
- search.JVM.attachCurrentThread()
idx = search.Index()
idx.open(timeout=10000) # 10 seconds timeout.
try:
def update_index(sender, instance, **kwargs):
import search
print "update pd index %s [update %s]" % (instance, 'created' in kwargs)
- search.JVM.attachCurrentThread()
idx = search.Index()
idx.open()
try:
-#import lucene
-#from index import Index, Search, ReusableIndex, SearchResult, JVM, IndexChecker, IndexStore
from index import Index, Search, SearchResult
# set to 'new' or 'old' to skip time-consuming test
# for TeX morefloats library version
LIBRARIAN_PDF_MOREFLOATS = None
-
-# Max memory used by search
-JVM_MAXHEAP = '256m'