0
0
Fork 0
Commit Graph

31 Commits

Author SHA1 Message Date
Gibheer e2d93d203b added #each to the storage 2011-07-22 16:31:22 +02:00
Gibheer 1d2035c637 added a binary tree storage 2011-06-16 13:18:43 +02:00
Gibheer 61b962fea3 * fixed a small bug with ruby 1.9.2 and #<=>
* this method is implemented for every object, so another check is
  needed
2011-06-16 13:16:56 +02:00
Gibheer f0dbb9e39f built a simple storage engine based on a hash and an abstract class to
have an interface for the next one
2011-06-16 13:15:56 +02:00
Gibheer 6d2ffb8ec7 added an analyzer to get the all chunks out of content
this will be used for building the index
2011-06-10 20:45:16 +02:00
Gibheer 9fa082d8d9 a simple stemmer which should work for very simple things
it should get extended in the feature to do all the stuff for english
languages
2011-06-10 15:30:20 +02:00
Gibheer 8e6c5fa321 remove the abstract stemmer class, because we only need an interface 2011-06-10 15:29:31 +02:00
Gibheer aa153bc68c added an abstract stemmer and an implementation of a simple stemmer 2011-06-10 00:40:03 +02:00
Gibheer e590b071b8 fixed a typo 2011-06-09 21:27:32 +02:00
Gibheer 0cb40b86f2 it is now building a small block out of the term parameters 2011-06-08 08:14:03 +02:00
Gibheer 41ec65a7a2 - Polecat is now a module and can be included
- a dependency to FileUtils was missing
2011-06-07 06:41:55 +02:00
Gibheer 73a4ae21c8 because of a missing ! the relationship per :or returned false documents 2011-06-06 20:34:52 +02:00
Gibheer 68306d1f08 Document was replaced with Virtus, an attribute Gem from solnic
see http://github.com/solnic/virtus for more informations
2011-06-06 18:47:01 +02:00
Gibheer ffa9e96a9f searches are now done with Queries, which contain Terms 2011-06-06 16:08:37 +02:00
Gibheer 80151adab2 delete the old index, because it's obselete 2011-05-31 20:34:09 +02:00
Gibheer 329f4d6d4b it's now possible to search on the default field 2011-05-30 22:23:38 +02:00
Gibheer 9a1c4eff90 fixed a bug in IndexReader#read which returned a hash instead of an
array
2011-05-30 22:22:52 +02:00
Gibheer 3e12494e44 * changed the method IndexSearcher#initialize to only use hashes
* added IndexSearcher#search for strings only
2011-05-30 21:56:02 +02:00
Gibheer d5057a5a26 * new basis for the save and load system of the index
* the old index will disappear and IndexSearcher will be the interface
  for searching through the index
2011-05-30 18:36:51 +02:00
Gibheer 1f9817960a added a new spec for IndexWriter#write 2011-05-26 21:41:42 +02:00
Gibheer bd8230c4fc specs for the index writer, which is responsible for writing the
documents into the index dir
2011-05-26 21:18:46 +02:00
Gibheer b9caf75d53 put Document and DocumentResource into the Polecat namespace 2011-05-24 14:41:09 +02:00
Gibheer b171eeaa3d the index is now using the documents for searching 2011-05-24 11:12:38 +02:00
Gibheer 720228945f the index is now using the marshal format for reading and writing the
data
2011-05-23 20:54:28 +02:00
Gibheer f0ea1944da test with all rubies 2011-05-20 15:29:53 +02:00
Gibheer cae9cd392b you have to flush the index to write the data to the file 2011-05-10 15:44:13 +02:00
Gibheer 2ce1f3b9cb find terms in lines 2011-05-10 14:38:02 +02:00
Gibheer 4274de4f02 returns all lines, which have a match 2011-05-10 14:36:37 +02:00
Gibheer 99fa77b82b check, if the index dir has an index 2011-05-09 15:32:58 +02:00
Gibheer b771e23219 initial commit with an already somewhat working index 2011-05-07 22:02:28 +02:00
Gibheer 93cf6efa0d Initial commit to polecat. 2011-05-07 19:32:28 +02:00