Sha256: 5bd0c0bb24f7e764dca8a6f52c7e2673902c6218e6435d137d076f9c1b0a4597
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 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 if defined? RAILS_ROOT APP_ROOT = RAILS_ROOT APP_ENV = RAILS_ENV else APP_ROOT ||= '.' APP_ENV ||= 'default' end %w(analyzer document index query searcher term writer).each { |name| require "active_lucene/#{name}" } module ActiveLucene ID = 'id' ALL = '_all' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_lucene-0.5.2 | lib/active_lucene.rb |
active_lucene-0.5.1 | lib/active_lucene.rb |