fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some refactoring & documentation changes in search.
[wolnelektury.git]
/
apps
/
search
/
views.py
diff --git
a/apps/search/views.py
b/apps/search/views.py
index
6dcaf74
..
ff348a5
100644
(file)
--- a/
apps/search/views.py
+++ b/
apps/search/views.py
@@
-12,7
+12,7
@@
from catalogue.models import Book, Tag, Fragment, TAG_CATEGORIES
from catalogue.fields import dumps
from catalogue.views import JSONResponse
from catalogue import forms
from catalogue.fields import dumps
from catalogue.views import JSONResponse
from catalogue import forms
-from search import
Multi
Search, JVM, SearchResult
+from search import Search, JVM, SearchResult
from lucene import StringReader
from suggest.forms import PublishingSuggestForm
from lucene import StringReader
from suggest.forms import PublishingSuggestForm
@@
-46,7
+46,7
@@
def hint(request):
if len(prefix) < 2:
return JSONResponse([])
JVM.attachCurrentThread()
if len(prefix) < 2:
return JSONResponse([])
JVM.attachCurrentThread()
- s =
Multi
Search()
+ s = Search()
hint = s.hint()
try:
hint = s.hint()
try:
@@
-94,7
+94,7
@@
def foo(s, q, tag_list=None):
def main(request):
results = {}
JVM.attachCurrentThread() # where to put this?
def main(request):
results = {}
JVM.attachCurrentThread() # where to put this?
- srch =
Multi
Search()
+ srch = Search()
results = None
query = None
results = None
query = None