0
0
Commit Graph

317 Commits

Author SHA1 Message Date
Marty Schoch
fdcb6fc13a added benchmark for term facet processing 2014-12-01 12:49:33 -05:00
Marty Schoch
860a6c3169 added tests for facet builds and constant scorer 2014-11-26 21:09:00 -05:00
Marty Schoch
f677e11c5d renamed misspelled filename 2014-11-26 21:08:14 -05:00
Marty Schoch
6c7237ade9 added test for null kvstore 2014-11-26 15:50:57 -05:00
Marty Schoch
a2c3fa262a add more test cases of index
tests fields, highlighting, document field loading
2014-11-26 15:36:58 -05:00
Marty Schoch
453d4cf770 change to always return stored fields in UTC 2014-11-26 15:36:34 -05:00
Marty Schoch
62277f82a9 added tests for http handlers 2014-11-26 11:42:50 -05:00
Marty Schoch
0d2114a06b fix typos and bug removing from aliases 2014-11-26 11:42:33 -05:00
Marty Schoch
fcab645f96 add test to cover kana/ideographic case 2014-11-26 08:42:40 -05:00
Marty Schoch
8ad0f64459 upgrade to current forestdb api 2014-11-25 21:52:35 -05:00
Marty Schoch
d5c1f4a9ab refactored store tests 2014-11-25 21:52:23 -05:00
Marty Schoch
65fe69d705 added integration tests for facets 2014-11-25 17:18:16 -05:00
Marty Schoch
72ee4147e6 added more index crud test 2014-11-25 16:23:48 -05:00
Marty Schoch
896cfd3b38 added more index crud 2014-11-25 15:56:43 -05:00
Marty Schoch
0355525d93 added another set of tests for IndexAlias with single Index 2014-11-25 14:56:42 -05:00
Marty Schoch
5fa93c8540 added index alias tests for multiple aliases 2014-11-25 14:25:56 -05:00
Marty Schoch
b3841fa335 added more tests for MultiSearch 2014-11-25 13:50:15 -05:00
Marty Schoch
6141a5aad3 make batch internals private
closes #119
2014-11-25 11:11:28 -05:00
Marty Schoch
67beaca6d6 fix to phrase/phrase match search involving stop words
closes #122
2014-11-25 10:07:54 -05:00
Marty Schoch
316970df13 better fix for returning on first error
closes #126
2014-11-25 10:04:15 -05:00
Marty Schoch
3c886276ed fix error message typo 2014-11-24 17:14:44 -05:00
Marty Schoch
69d69e4516 fix panic in MultiSearch when all indexes return error
fixes #126
2014-11-24 17:12:16 -05:00
Marty Schoch
5486c519b6 added index tests 2014-11-21 16:47:20 -05:00
Marty Schoch
a8ca4d67a0 improving test coverage of search 2014-11-21 15:37:09 -05:00
Marty Schoch
a313928be2 adding scripts for new code coverage 2014-11-21 14:02:17 -05:00
Marty Schoch
12ec3173fa added integration test for fuzzy search 2014-11-21 14:01:48 -05:00
Marty Schoch
560990d29c Merge pull request #125 from Shugyousha/simplereturn
Remove unneeded else clauses
2014-11-20 14:45:57 -05:00
Silvan Jegen
e3a2d3b58b Remove unneeded else clauses 2014-11-20 20:34:05 +01:00
Marty Schoch
68a2b9614d refactored integration tests into separate package
also made integration tests declarative
you can now easily define new datasets/mappings/searches/results
2014-11-19 15:58:15 -05:00
Marty Schoch
eb16b3c563 properly return multi-value fields in an array 2014-11-19 15:58:15 -05:00
Marty Schoch
19305c6b5f fix bug which prevented size=0 via JSON 2014-11-19 15:58:15 -05:00
Marty Schoch
d673f3404d Merge pull request #124 from miku/bleve_bulkindex
adding bleve_bulkindex utility
2014-11-19 14:03:46 -05:00
Martin Czygan
95ae51f59d adding bleve_bulkindex utility
Usage:

    bleve_bulkindex -index path file.ldj [file2.ldj, ...]

where file.ldj is a line-delimited JSON,
each representing a document. docIDs are autogenerated.
2014-11-19 19:46:24 +01:00
Marty Schoch
4f61bbfede add ability to configure color for ANSI highlighter
closes #123
2014-11-19 09:27:57 -05:00
Marty Schoch
d452b2a10e add support for dictionary based compound word filter
partially addresses #115
2014-11-18 15:18:42 -05:00
Marty Schoch
47bc7caec3 added getRollbackID() and rollbackTo() to the ForestDB store 2014-11-04 08:34:49 -05:00
Marty Schoch
5f40396ce8 removes dependency on mux from bleve.http
handlers now use varLookupFunc's to get variable values from
the request object.  this allows applications to use whatever
mux/router they want, and extracting variables like
indexName and docID is up to the caller-provided function

closes #113
2014-10-31 14:44:15 -04:00
Marty Schoch
3f83149ed3 adding back the forestdb kv store impl 2014-10-31 09:42:32 -04:00
Marty Schoch
c7443fe52b refactored API a bit
more things can return error now
in a couple of places we had to swallow errors because they didn't
fit the existing API.  in these case and proactively in a few
others we now return error as well.

also the batch API has been updated to allow performing
set/delete internal within the batch
2014-10-31 09:40:23 -04:00
Marty Schoch
84d1cdf216 fix go vet issues 2014-10-29 09:31:03 -04:00
Marty Schoch
51a59cb05c initial impl of Index Aliases
an IndexAlias allows you easily work with one logical Index
while changing the actual Index its pointing to behind the scenes
Changing which actual Index is backing an IndexAlias can be done
atomically so that your application smoothly transitions from
one Index to another.
A separate use of IndexAlias is allowed when the IndexAlias is
defined to point to multiple Indexes.  In this case only the
Search() operation is supported, but the Search will be run
on each of the underlying indexes in parallel, and the results
will be merged.
2014-10-29 09:22:11 -04:00
Marty Schoch
3a0263bb72 finished initial impl of fuzzy search
you can do a manual fuzzy term search using the FuzzyQuery struct
or, more suitable for most users the MatchQuery now supports
some fuzzy options.  Here you can specify fuzziness and
prefix_length, to turn the underlying term search into a fuzzy
term search.  This has the benefit that analysis is performed
on your input, just like the analyzed field, prior to computing
the fuzzy variants.

closes #82
2014-10-24 13:39:48 -04:00
Marty Schoch
78467c0836 refactored yacc parsing code to be threadsafe, removed mutex 2014-10-23 15:56:59 -04:00
Marty Schoch
d485b0ef26 initial impl of fuzzy search 2014-10-23 13:02:29 -04:00
Steve Yen
91501262b6 typo with NewListIndexesHandler/NewCreateIndexHandler 2014-10-22 16:40:21 -07:00
Marty Schoch
0500a572af exposed Get/Set/Delete Internal methods
these are to be used to store side-channel information
along with the index
2014-10-22 16:03:55 -04:00
Marty Schoch
40a8154bab changed en analyzer to use pure go components
behavior should be similar with unicode segmentation
and a porter stemmer
2014-10-21 16:38:58 -04:00
Marty Schoch
c4d1782689 new pure go porter stemmer integrated
renamed original libstemmer porter to "stemmer_porter_classic"
new pure go stemmer is "stemmer_porter"
2014-10-20 16:55:24 -04:00
Marty Schoch
cf3643f292 added pure go tokenizer to do unicode word boundary segmentation 2014-10-17 18:07:48 -04:00
Marty Schoch
dcb90ad176 added benchmark for tokenizing English text 2014-10-17 18:07:01 -04:00