Ticket #18 (closed defect: fixed)

Opened 4 years ago

Last modified 11 months ago

:create_if_missing does not work (0.3.2)

Reported by: ferret@… Owned by: somebody
Priority: major Milestone: milestone3
Component: component1 Version: 2.0
Keywords: GjDIDiMMWKDZzCZ Cc:

Description

require 'rubygems'
require 'ferret'

include Ferret

index = Index::Index.new(
  :path => '/tmp/ferret-test/',
  :auto_flush => true,
  :create_if_missing => true,
  :default_search_field => ['subject']
)

gives me the following exception:

/opt/local/lib/ruby/gems/1.8/gems/ferret-0.3.2/lib/ferret/store/fs_store.rb:41:in `initialize': There is no directory: /tmp/ferret-test/. Use create = true to create one (RuntimeError)

Attachments

Add/Change #18 (:create_if_missing does not work (0.3.2))

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.