repo.or.cz
/
ebuildfind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
switched back to whoosh with haystack
[ebuildfind.git]
/
search_indexes.py
blob
3c897ad1ff090019e3e540feb85456e27d688930
1
import
datetime
2
from
haystack
import
indexes
3
from
haystack
import
site
4
from
models
import
Ebuild
5
6
class
EbuildIndex
(
indexes
.
SearchIndex
):
7
text
=
indexes
.
CharField
(
document
=
True
,
use_template
=
True
)
8
site
.
register
(
Ebuild
,
EbuildIndex
)