Guest User

Untitled

a guest
Mar 9th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1.  
  2. # Auto-generated at Wed Nov 14 21:18:03 -0800 2007.
  3. # Hand modifications will be overwritten.
  4. # /Users/lriley/Documents/src/nms4/config/ultrasphinx/development.base
  5. indexer {
  6. mem_limit = 256M
  7. }
  8. searchd {
  9. read_timeout = 5
  10. max_children = 300
  11. log = /opt/local/var/db/sphinx/log/searchd.log
  12. port = 3312
  13. max_matches = 100000
  14. query_log = /opt/local/var/db/sphinx/log/query.log
  15. pid_file = /opt/local/var/db/sphinx/log/searchd.pid
  16. address = 0.0.0.0
  17. }
  18.  
  19. # Source configuration
  20.  
  21. source tags
  22. {
  23. strip_html = 0
  24. sql_range_step = 20000
  25. index_html_attrs =
  26. sql_query_post =
  27.  
  28. type = pgsql
  29. sql_query_pre = CREATE OR REPLACE FUNCTION hex_to_int(varchar) RETURNS int4 AS ' DECLARE h alias for $1; exec varchar; curs refcursor; res int; BEGIN exec := ''SELECT x'''''' || h || ''''''::int4''; OPEN curs FOR EXECUTE exec; FETCH curs INTO res; CLOSE curs; return res; END;' LANGUAGE 'plpgsql' IMMUTABLE STRICT;
  30.  
  31. sql_db = nms_dev
  32. sql_host = localhost
  33. sql_pass = hacked
  34. sql_user = lriley
  35. sql_query_range = SELECT MIN(id), MAX(id) FROM tags
  36. sql_query = SELECT (tags.id * 1 + 0) AS id, 'Tag' AS class, 0 AS class_id, tags.name AS name FROM tags WHERE tags.id >= $start AND tags.id <= $end
  37.  
  38. sql_group_column = class_id
  39. sql_str2ordinal_column = name
  40. sql_query_info = SELECT * FROM tags WHERE tags.id = (($id - 0) / 1)
  41. }
  42.  
  43.  
  44. # Index configuration
  45.  
  46. index complete
  47. {
  48. source = tags
  49. charset_type = utf-8
  50. charset_table = 0..9, A..Z->a..z, -, _, ., &, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F,U+C5->U+E5, U+E5, U+C4->U+E4, U+E4, U+D6->U+F6, U+F6, U+16B, U+0c1->a, U+0c4->a, U+0c9->e, U+0cd->i, U+0d3->o, U+0d4->o, U+0da->u, U+0dd->y, U+0e1->a, U+0e4->a, U+0e9->e, U+0ed->i, U+0f3->o, U+0f4->o, U+0fa->u, U+0fd->y, U+104->U+105, U+105, U+106->U+107, U+10c->c, U+10d->c, U+10e->d, U+10f->d, U+116->U+117, U+117, U+118->U+119, U+11a->e, U+11b->e, U+12E->U+12F, U+12F, U+139->l, U+13a->l, U+13d->l, U+13e->l, U+141->U+142, U+142, U+143->U+144, U+144,U+147->n, U+148->n, U+154->r, U+155->r, U+158->r, U+159->r, U+15A->U+15B, U+15B, U+160->s, U+160->U+161, U+161->s, U+164->t, U+165->t, U+16A->U+16B, U+16B, U+16e->u, U+16f->u, U+172->U+173, U+173, U+179->U+17A, U+17A, U+17B->U+17C, U+17C, U+17d->z, U+17e->z,
  51. min_word_len = 1
  52. stopwords =
  53. path = /opt/local/var/db/sphinx//sphinx_index_complete
  54. docinfo = extern
  55. morphology = stem_en
  56. }
Add Comment
Please, Sign In to add comment