Modify

Ticket #18 (closed defect: fixed)

Opened 5 years ago

Last modified 17 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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.