xapian 1.2.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/extconf.rb +6 -0
- data/util.i +220 -0
- data/xapian.rb +315 -0
- data/xapian_wrap.cc +32965 -0
- data/xapian_wrap.h +124 -0
- metadata +58 -0
data/xapian_wrap.h
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 2.0.5
|
4
|
+
*
|
5
|
+
* This file is not intended to be easily readable and contains a number of
|
6
|
+
* coding conventions designed to improve portability and efficiency. Do not make
|
7
|
+
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
+
* interface file instead.
|
9
|
+
* ----------------------------------------------------------------------------- */
|
10
|
+
|
11
|
+
#ifndef SWIG_Xapian_WRAP_H_
|
12
|
+
#define SWIG_Xapian_WRAP_H_
|
13
|
+
|
14
|
+
namespace Swig {
|
15
|
+
class Director;
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
class SwigDirector_PostingSource : public Xapian::PostingSource, public Swig::Director {
|
20
|
+
|
21
|
+
public:
|
22
|
+
SwigDirector_PostingSource(VALUE self);
|
23
|
+
virtual ~SwigDirector_PostingSource();
|
24
|
+
virtual Xapian::doccount get_termfreq_min() const;
|
25
|
+
virtual Xapian::doccount get_termfreq_est() const;
|
26
|
+
virtual Xapian::doccount get_termfreq_max() const;
|
27
|
+
virtual Xapian::weight get_weight() const;
|
28
|
+
virtual Xapian::docid get_docid() const;
|
29
|
+
virtual void next(Xapian::weight min_wt);
|
30
|
+
virtual void skip_to(Xapian::docid did, Xapian::weight min_wt);
|
31
|
+
virtual bool check(Xapian::docid did, Xapian::weight min_wt);
|
32
|
+
virtual bool at_end() const;
|
33
|
+
virtual Xapian::PostingSource *clone() const;
|
34
|
+
virtual std::string name() const;
|
35
|
+
virtual std::string serialise() const;
|
36
|
+
virtual Xapian::PostingSource *unserialise(std::string const &s) const;
|
37
|
+
virtual void init(Xapian::Database const &db);
|
38
|
+
virtual std::string get_description() const;
|
39
|
+
};
|
40
|
+
|
41
|
+
|
42
|
+
class SwigDirector_MatchDecider : public Xapian::MatchDecider, public Swig::Director {
|
43
|
+
|
44
|
+
public:
|
45
|
+
SwigDirector_MatchDecider(VALUE self);
|
46
|
+
virtual bool operator ()(Xapian::Document const &doc) const;
|
47
|
+
virtual ~SwigDirector_MatchDecider();
|
48
|
+
};
|
49
|
+
|
50
|
+
|
51
|
+
class SwigDirector_ExpandDecider : public Xapian::ExpandDecider, public Swig::Director {
|
52
|
+
|
53
|
+
public:
|
54
|
+
SwigDirector_ExpandDecider(VALUE self);
|
55
|
+
virtual bool operator ()(std::string const &term) const;
|
56
|
+
virtual ~SwigDirector_ExpandDecider();
|
57
|
+
};
|
58
|
+
|
59
|
+
|
60
|
+
class SwigDirector_MatchSpy : public Xapian::MatchSpy, public Swig::Director {
|
61
|
+
|
62
|
+
public:
|
63
|
+
SwigDirector_MatchSpy(VALUE self);
|
64
|
+
virtual ~SwigDirector_MatchSpy();
|
65
|
+
virtual void operator ()(Xapian::Document const &doc, Xapian::weight wt);
|
66
|
+
virtual Xapian::MatchSpy *clone() const;
|
67
|
+
virtual std::string name() const;
|
68
|
+
virtual std::string serialise() const;
|
69
|
+
virtual Xapian::MatchSpy *unserialise(std::string const &s, Xapian::Registry const &context) const;
|
70
|
+
virtual std::string serialise_results() const;
|
71
|
+
virtual void merge_results(std::string const &s);
|
72
|
+
virtual std::string get_description() const;
|
73
|
+
};
|
74
|
+
|
75
|
+
|
76
|
+
class SwigDirector_Stopper : public Xapian::Stopper, public Swig::Director {
|
77
|
+
|
78
|
+
public:
|
79
|
+
SwigDirector_Stopper(VALUE self);
|
80
|
+
virtual bool operator ()(std::string const &term) const;
|
81
|
+
virtual ~SwigDirector_Stopper();
|
82
|
+
virtual std::string get_description() const;
|
83
|
+
};
|
84
|
+
|
85
|
+
|
86
|
+
struct SwigDirector_ValueRangeProcessor : public Xapian::ValueRangeProcessor, public Swig::Director {
|
87
|
+
|
88
|
+
public:
|
89
|
+
SwigDirector_ValueRangeProcessor(VALUE self);
|
90
|
+
virtual ~SwigDirector_ValueRangeProcessor();
|
91
|
+
virtual Xapian::valueno operator ()(std::string &begin, std::string &end);
|
92
|
+
};
|
93
|
+
|
94
|
+
|
95
|
+
struct SwigDirector_StemImplementation : public Xapian::StemImplementation, public Swig::Director {
|
96
|
+
|
97
|
+
public:
|
98
|
+
SwigDirector_StemImplementation(VALUE self);
|
99
|
+
virtual ~SwigDirector_StemImplementation();
|
100
|
+
virtual std::string operator ()(std::string const &word);
|
101
|
+
virtual std::string get_description() const;
|
102
|
+
};
|
103
|
+
|
104
|
+
|
105
|
+
class SwigDirector_KeyMaker : public Xapian::KeyMaker, public Swig::Director {
|
106
|
+
|
107
|
+
public:
|
108
|
+
SwigDirector_KeyMaker(VALUE self);
|
109
|
+
virtual std::string operator ()(Xapian::Document const &doc) const;
|
110
|
+
virtual ~SwigDirector_KeyMaker();
|
111
|
+
};
|
112
|
+
|
113
|
+
|
114
|
+
class SwigDirector_Compactor : public Xapian::Compactor, public Swig::Director {
|
115
|
+
|
116
|
+
public:
|
117
|
+
SwigDirector_Compactor(VALUE self);
|
118
|
+
virtual ~SwigDirector_Compactor();
|
119
|
+
virtual void set_status(std::string const &table, std::string const &status);
|
120
|
+
virtual std::string resolve_duplicate_metadata(std::string const &key, size_t num_tags, std::string const tags[]);
|
121
|
+
};
|
122
|
+
|
123
|
+
|
124
|
+
#endif
|
metadata
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xapian
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.18.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Palmer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |
|
14
|
+
This gem is built directly from the source code provided in
|
15
|
+
the `xapian-bindings` release provided on
|
16
|
+
xapian.org/download. As such, it is small (doesn't embed
|
17
|
+
whole copies of Xapian) and builds against whatever version
|
18
|
+
of Ruby you're installing it in. On the other hand, you do
|
19
|
+
need to have the xapian-core development libraries and
|
20
|
+
headers already installed.
|
21
|
+
email:
|
22
|
+
- mpalmer@hezmatt.org
|
23
|
+
executables: []
|
24
|
+
extensions:
|
25
|
+
- extconf.rb
|
26
|
+
extra_rdoc_files: []
|
27
|
+
files:
|
28
|
+
- extconf.rb
|
29
|
+
- util.i
|
30
|
+
- xapian.rb
|
31
|
+
- xapian_wrap.cc
|
32
|
+
- xapian_wrap.h
|
33
|
+
homepage:
|
34
|
+
licenses:
|
35
|
+
- GPL
|
36
|
+
metadata: {}
|
37
|
+
post_install_message:
|
38
|
+
rdoc_options: []
|
39
|
+
require_paths:
|
40
|
+
- "."
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
requirements: []
|
52
|
+
rubyforge_project:
|
53
|
+
rubygems_version: 2.2.2
|
54
|
+
signing_key:
|
55
|
+
specification_version: 4
|
56
|
+
summary: Xapian bindings
|
57
|
+
test_files: []
|
58
|
+
has_rdoc:
|