Добавлен коостяк для подсказок

This commit is contained in:
Jack Stdin
2016-01-15 15:15:10 +03:00
parent 8156fa3d8d
commit 1e861f7285
7 changed files with 220 additions and 65 deletions

View File

@@ -3,7 +3,7 @@
import optparse
from aore.aoutils.aoupdater import AoUpdater
from aore.miscutils.sphinx import configure_sphinx
from aore.miscutils.sphinx import SphinxHelper
from aore.fias.search import SphinxSearch
@@ -42,7 +42,10 @@ def main():
update_base(options.source, int(options.update_count))
if options.sphinx and options.indexer_path:
configure_sphinx(options.indexer_path)
sphinxh = SphinxHelper()
sphinxh.configure_indexer(options.indexer_path)
if __name__ == '__main__':
main()
sph = SphinxSearch()
sph.get_suggest('апасьево')
#main()