0
0
Commit Graph

334 Commits

Author SHA1 Message Date
Marty Schoch
0ddfa774ec clean up logging to use package level *log.Logger
by default messages go to ioutil.Discard
2014-12-28 12:14:48 -08:00
Marty Schoch
a3a891fdb2 create new child requests in MultiSearch
This change avoides data race on the Size and From fields.
fixes #130
2014-12-28 09:23:47 -08:00
Marty Schoch
68712cd142 support for accessing the underlying index/store impls
now you can access the underlying index/store implementations
using the Advanced() method.  this is intedned for advanced
usage only, and can lead to problems if misused.

also, there is a new method NewUsing(...) which allows callers
of the top-level API to choose which underlying k/v store they
want to use.
2014-12-27 13:23:46 -08:00
Marty Schoch
38bdcbeb62 update to new forestdb iterator api 2014-12-27 13:15:14 -08:00
Marty Schoch
59b014d35b Merge pull request #133 from Shugyousha/typos
Fix typos in comments and strings
2014-12-18 13:06:43 -05:00
Silvan Jegen
ef18dfe4cd Fix typos in comments and strings 2014-12-18 18:43:12 +01:00
Marty Schoch
fc33752c80 moved levenshtein code outside of fuzzy searcher
should allow easier reuse
2014-12-12 13:23:06 -05:00
Marty Schoch
5bfbcda97d typo in comment 2014-12-12 13:23:06 -05:00
Marty Schoch
b97da21d5c Merge pull request #132 from avsej/master
Update "code.google.com" import paths
2014-12-09 17:39:04 -05:00
Sergey Avseyev
a8351be5a6
Update protobuf imports 2014-12-10 01:24:59 +03:00
Sergey Avseyev
570109a983
Update "code.google.com" import paths
https://github.com/couchbase/sync_gateway/issues/492
2014-12-10 01:17:49 +03:00
Marty Schoch
c641ea694a Merge branch 'Shugyousha-termfacetrefactor' 2014-12-01 13:00:30 -05:00
Marty Schoch
efebc07106 fix slice allocation to be size 0 cap len(fb.termsCount) 2014-12-01 12:59:30 -05:00
Marty Schoch
15fd80289e Merge branch 'termfacetrefactor' of github.com:Shugyousha/bleve into Shugyousha-termfacetrefactor 2014-12-01 12:58:05 -05:00
Marty Schoch
f845dfbeb7 fix missing close in index test 2014-12-01 12:51:01 -05:00
Marty Schoch
fdcb6fc13a added benchmark for term facet processing 2014-12-01 12:49:33 -05:00
Silvan Jegen
f7343462b8 Use a slice instead of a list
By replacing the container/list with a slice we can make use of
sort.Sort and subslicing to get our top-N termfacet results.
2014-11-29 16:13:10 +01:00
Silvan Jegen
412049d63c Remove unneeded import statements 2014-11-29 14:25:24 +01: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