Sha256: 6d29d9ebcc5dbc81ed9fcf5e6f87418c46ef8a8b146cc06c62e7ff8ee28b5d14

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require 'java'
require 'rubygems'
require 'active_support'

Dir[File.expand_path(File.dirname(__FILE__) + "/*.jar")].each { |path| require path.split('/').last.gsub('.jar', '') }
import org.apache.lucene.document.Field
import org.apache.lucene.store.FSDirectory
import org.apache.lucene.index.IndexWriter
import org.apache.lucene.analysis.standard.StandardAnalyzer
import org.apache.lucene.queryParser.standard.StandardQueryParser

import org.apache.lucene.search.IndexSearcher
import org.apache.lucene.search.BooleanClause
import org.apache.lucene.search.BooleanQuery
import org.apache.lucene.search.MatchAllDocsQuery
import org.apache.lucene.search.WildcardQuery

import org.apache.lucene.search.highlight.QueryScorer
import org.apache.lucene.search.highlight.Highlighter

import org.apache.lucene.util.Version

APP_ROOT ||= RAILS_ROOT if defined?(RAILS_ROOT)
APP_ENV ||= RAILS_ENV if defined?(RAILS_ENV)

%w(analyzer document index query searcher term writer).each { |name| require "active_lucene/#{name}" }

module ActiveLucene
  ID = 'id'
  ALL = '_all'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_lucene-0.5.0 lib/active_lucene.rb