Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var query = "select filename, snippet (filename, " + tbSearch.Text. + ", query_mode=1) AS snip from content where match ('" + tbSearch.Text.ToString() + "')";
- source mssql
- {
- type = mssql
- sql_host = aszh-notesqlexpress
- sql_db = DBDocs
- mssql_winauth = 1
- #mssql_unicode = 1
- sql_user =
- sql_pass =
- #lemmatizer_base = C:Sphinxlemm
- }
- source content_base : mssql
- {
- sql_query =
- select
- FileId, FileName, FileContent
- from FilesList
- #sql_attr_uint = FileId
- sql_field_string = FileName
- #sql_field_string = FileContent
- sql_attr_string = FileContent
- }
- common
- {
- lemmatizer_base = C:Sphinxlemm
- }
- index content
- {
- source = content_base
- path = c:Sphinxdataindexcontent
- #charset_type = utf-8
- morphology = lemmatize_ru_all
- #lemmatizer_base = C:Sphinxlemm
- }
- indexer
- {
- mem_limit = 500M
- }
- searchd
- {
- #max_matches = 500000
- listen = 9306:mysql41
- pid_file = c:/sphinx/data/searchd.pid
- log = c:/sphinx/data/log/log.txt
- query_log = c:/sphinx/data/log/query_log.txt
- binlog_path = c:/sphinx/data/binlog/
- #lemmatizer_base = c:/sphinx/lemm
- #morphology = stem_ru
- mysql_version_string = 5.0.0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement