Advertisement
Guest User

Untitled

a guest
Oct 8th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. var query = "select filename, snippet (filename, " + tbSearch.Text. + ", query_mode=1) AS snip from content where match ('" + tbSearch.Text.ToString() + "')";
  2.  
  3. source mssql
  4. {
  5. type = mssql
  6. sql_host = aszh-notesqlexpress
  7. sql_db = DBDocs
  8. mssql_winauth = 1
  9. #mssql_unicode = 1
  10. sql_user =
  11. sql_pass =
  12. #lemmatizer_base = C:Sphinxlemm
  13.  
  14. }
  15.  
  16. source content_base : mssql
  17. {
  18. sql_query =
  19. select
  20. FileId, FileName, FileContent
  21. from FilesList
  22.  
  23. #sql_attr_uint = FileId
  24. sql_field_string = FileName
  25. #sql_field_string = FileContent
  26. sql_attr_string = FileContent
  27. }
  28. common
  29. {
  30. lemmatizer_base = C:Sphinxlemm
  31.  
  32. }
  33. index content
  34. {
  35. source = content_base
  36. path = c:Sphinxdataindexcontent
  37. #charset_type = utf-8
  38. morphology = lemmatize_ru_all
  39.  
  40. #lemmatizer_base = C:Sphinxlemm
  41.  
  42. }
  43.  
  44. indexer
  45. {
  46. mem_limit = 500M
  47. }
  48.  
  49. searchd
  50. {
  51. #max_matches = 500000
  52. listen = 9306:mysql41
  53. pid_file = c:/sphinx/data/searchd.pid
  54. log = c:/sphinx/data/log/log.txt
  55. query_log = c:/sphinx/data/log/query_log.txt
  56. binlog_path = c:/sphinx/data/binlog/
  57. #lemmatizer_base = c:/sphinx/lemm
  58. #morphology = stem_ru
  59. mysql_version_string = 5.0.0
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement