установка Sphinx

Discussion in 'Windows' started by BRR, 26 Aug 2012.

  1. BRR

    BRR New Member

    Joined:
    4 Jun 2012
    Messages:
    31
    Likes Received:
    1
    Reputations:
    0
    не могу установить Sphinx. вот такая ошибка
    версия sphinx-2.0.5
    Code:
    C:\Sphinx\bin>indexer --all --config C:\Sphinx\sphinx.conf.in
    Sphinx 2.0.5-release (r3308)
    Copyright (c) 2001-2012, Andrew Aksyonoff
    Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
    
    using config file 'C:\Sphinx\sphinx.conf.in'...
    indexing index 'testing-index'...
    FATAL: failed to open C:/Sphinx/data/testing-index/.spl: No such file or directo
    ry, will not index. Try --rotate option.
    
    C:\Sphinx\bin>
    
    

    конф
    Code:
    source testing-index
    {
      type          = mysql
      sql_host        = localhost
      sql_user        = root
      sql_pass        = 
      sql_db              = sphinx
      sql_port        = 3306
    
      # main document fetch query
      # mandatory, integer document ID field MUST be the first selected column
      sql_query   =  SELECT id, title,  description, views FROM table_name
      sql_attr_uint    = title
      sql_attr_uint    = description
      sql_attr_uint    = views
      
      # document info query, ONLY for CLI search (ie. testing and debugging)
      # optional, default is empty
      # must contain $id macro and must fetch the document by that id
      sql_query_info    = SELECT * FROM table_name WHERE id=$id
    }
    
    index testing-index
    {
      # document source(s) to index
      # multi-value, mandatory
      # document IDs must be globally unique across all sources
      source      = testing-index
    
      # index files path and file name, without extension
      # mandatory, path must be writable, extensions will be auto-appended
      path      = C:/Sphinx/data/testing-index/
    
      # document attribute values (docinfo) storage mode
      # optional, default is 'extern'
      # known values are 'none', 'extern' and 'inline'
      docinfo      = extern
    
      # memory locking for cached data (.spa and .spi), to prevent swapping
      # optional, default is 0 (do not mlock)
      # requires searchd to be run from root
      mlock      = 0
    
      # morphology   = stem_en, stem_ru, soundex
      morphology    = stem_en
    
      # minimum indexed word length
      # default is 1 (index everything)
      min_word_len    = 1
    
      charset_type    = utf-8
      html_strip    = 1
      stopwords    = C:\Sphinx\stop_words.txt 
    }
    
    база

    Code:
    --
    -- База данных: `sphinx`
    --
    
    -- --------------------------------------------------------
    
    --
    -- Структура таблицы `table_name`
    --
    
    CREATE TABLE IF NOT EXISTS `table_name` (
      `id` int(125) NOT NULL DEFAULT '0',
      `title` text NOT NULL,
      `description` text NOT NULL,
      `views` text NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    --
    -- Дамп данных таблицы `table_name`
    --
    
    INSERT INTO `table_name` (`id`, `title`, `description`, `views`) VALUES
    (1, '1', '1', '1');
    
    
    создал папку C:\Sphinx\date\testing-index и внутри testing-index.spl и ещо делал rotate все равно такая же ошибка...

    вчем проблема?
     
  2. barnaki

    barnaki Elder - Старейшина

    Joined:
    2 Nov 2008
    Messages:
    676
    Likes Received:
    140
    Reputations:
    4
    обычно в чем проблема написано в логах. но по крайней мере он раньше был только под unix системы. а у тебя тут явная винда в конфигах. а нет уже и под винду есть. но в любом случае. копай логи . гугли ошибки.
     
  3. BRR

    BRR New Member

    Joined:
    4 Jun 2012
    Messages:
    31
    Likes Received:
    1
    Reputations:
    0
    попробую
     
  4. VY_CMa

    VY_CMa Green member

    Joined:
    6 Jan 2012
    Messages:
    917
    Likes Received:
    492
    Reputations:
    724
    Сколько помню сфинкс, он всегда был был как под линукс так и под винду, возможно дело в привилегиях, если работа идет в W7
     
    _________________________