isomorfeus-ferret 0.12.0 → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 640f7cdb49df03f056f6c1a99ede0d18aee007f09d7ead12ddac15d95f45cfcb
4
- data.tar.gz: 2089beb5f98c3c3c504da4438db9060ed53883f100ea7dcd283bd3f4521d8d6a
3
+ metadata.gz: 4d83ed3220ef717537ff6fc985d38d04dbd16efbb114291a03b18b4becb05238
4
+ data.tar.gz: 3a676708b69c0a2572a97a18d01c7cc9b6df5d707de9086e977c2fd632f68d5c
5
5
  SHA512:
6
- metadata.gz: 538f86f27a69b4e491a88ead851da9f5e3480c13619586c22a15b7da5fc41165a861cd4b4c00dba5d313dd1580a01f74c086e75ffd06744abfe49be9339aa5f2
7
- data.tar.gz: 20687382ceb881d0fd1f96641d888df0d896fe9e3b2ec3d34c99b39d006e2b8ce3acfd2d334b96bc3321a8aadf4a404881d2eb5728271938c53a0eb509b9fb84
6
+ metadata.gz: 6f21cdaf931448cfa83ee5d7cf5341baec63483c27e1dce0fcedf4a0077928ee22dff78e5db21753a1580812aacd741ea7a46d2e620e1f69a9773ca391d0e295
7
+ data.tar.gz: 275268875b54d896bd21f645b8e3ed45fb4241c37de2ce1350c8615fe3b6932e149348a4f7301b8ed8a320568e96811e2a04f306ad882cc0c24751f309f927af
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
- # isomorfeus-ferret
1
+ <h1 align="center">
2
+ <img src="https://github.com/isomorfeus/isomorfeus-ferret/blob/master/Logo.png?raw=true" align="center" width="216" height="234" />
3
+ <br/>
4
+ &nbsp;&nbsp;&nbsp;Isomorfeus Ferret<br/>
5
+ </h1>
2
6
 
3
- Convenient and well performing indexing and search.
7
+ Convenient and well performing document store, indexing and search.
4
8
 
5
9
  ### Community and Support
6
10
  At the [Isomorfeus Framework Project](http://isomorfeus.com)
@@ -9,7 +13,7 @@ At the [Isomorfeus Framework Project](http://isomorfeus.com)
9
13
 
10
14
  Isomorfeus-Ferret is a revived version of the original ferret gem created by Dave Balmain.
11
15
  During revival many things havbe been fixed, now all tests pass, no crashes and it
12
- successfully compiles and runs with rubys >3. Its no loger a goal to have
16
+ successfully compiles and runs with rubys >3. Its no longer a goal to have
13
17
  a c library available, but instead the usage is meant as ruby gem with a c extension only.
14
18
 
15
19
  It should work on *nixes and *nuxes and also works on Windows.
@@ -2651,6 +2651,9 @@ frb_sea_search_internal(FrtQuery *query, VALUE roptions, FrtSearcher *sea)
2651
2651
  FrtPostFilter post_filter_holder;
2652
2652
  FrtPostFilter *post_filter = NULL;
2653
2653
 
2654
+ int ex_code = 0;
2655
+ const char *msg = NULL;
2656
+
2654
2657
  if (Qnil != roptions) {
2655
2658
  if (Qnil != (rval = rb_hash_aref(roptions, sym_offset))) {
2656
2659
  offset = FIX2INT(rval);
@@ -2701,8 +2704,17 @@ frb_sea_search_internal(FrtQuery *query, VALUE roptions, FrtSearcher *sea)
2701
2704
  }
2702
2705
  }
2703
2706
 
2704
- td = sea->search(sea, query, offset, limit, filter, sort, post_filter, 0);
2705
- if (filter) frt_filt_deref(filter);
2707
+ FRT_TRY
2708
+ td = sea->search(sea, query, offset, limit, filter, sort, post_filter, 0);
2709
+ if (filter) frt_filt_deref(filter);
2710
+ default:
2711
+ ex_code = xcontext.excode;
2712
+ msg = xcontext.msg;
2713
+ FRT_HANDLED();
2714
+ FRT_XENDTRY
2715
+
2716
+ if (ex_code && msg) { frb_raise(ex_code, msg); }
2717
+
2706
2718
  return td;
2707
2719
  }
2708
2720
 
@@ -350,7 +350,7 @@ static FrtInStream *fs_open_input(FrtStore *store, const char *filename)
350
350
  return is;
351
351
  }
352
352
 
353
- #define LOCK_OBTAIN_TIMEOUT 10
353
+ #define LOCK_OBTAIN_TIMEOUT 50
354
354
 
355
355
  static int fs_lock_obtain(FrtLock *lock)
356
356
  {
@@ -474,7 +474,7 @@ Metrowerks:
474
474
  # define POSH_CPU_SPARC 1
475
475
  #endif
476
476
 
477
- #if defined ARM || defined __arm__ || defined _ARM
477
+ #if defined ARM || defined __arm__ || defined _ARM || __aarch64__
478
478
  # define POSH_CPU_STRONGARM 1
479
479
  # define POSH_CPU_STRING "ARM"
480
480
  #endif
@@ -39,7 +39,7 @@ module Isomorfeus
39
39
  # object. Using a multiple field key will slow
40
40
  # down indexing so it should not be done if
41
41
  # performance is a concern. A single field key (or
42
- # id) should be find however. Also, you must make
42
+ # id) should be fine however. Also, you must make
43
43
  # sure that your key/keys are either untokenized
44
44
  # or that they are not broken up by the analyzer.
45
45
  # auto_flush:: Default: false. Set this option to true if you
@@ -395,7 +395,7 @@ module Isomorfeus
395
395
  # starting at +:start_doc+ and stopping when +:limit+ matches have been
396
396
  # found. It returns an array of the matching document numbers.
397
397
  #
398
- # There is a big performance advange when using this search method on a
398
+ # There is a big performance advantage when using this search method on a
399
399
  # very large index when there are potentially thousands of matching
400
400
  # documents and you only want say 50 of them. The other search methods need
401
401
  # to look at every single match to decide which one has the highest score.
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Ferret
3
- VERSION = '0.12.0'
3
+ VERSION = '0.12.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-ferret
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Search for Isomorfeus.
55
+ description: Indexed document store and search for Isomorfeus based on ferret.
56
56
  email:
57
57
  - jan@kursator.com
58
58
  executables: []
@@ -285,6 +285,7 @@ licenses:
285
285
  - MIT
286
286
  metadata:
287
287
  github_repo: ssh://github.com/isomorfeus/gems
288
+ source_code_uri: https://github.com/isomorfeus/isomorfeus-ferret
288
289
  post_install_message:
289
290
  rdoc_options: []
290
291
  require_paths:
@@ -300,8 +301,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
301
  - !ruby/object:Gem::Version
301
302
  version: '0'
302
303
  requirements: []
303
- rubygems_version: 3.2.15
304
+ rubygems_version: 3.3.3
304
305
  signing_key:
305
306
  specification_version: 4
306
- summary: Search for Isomorfeus.
307
+ summary: Indexed document store for Isomorfeus.
307
308
  test_files: []