Marty Schoch
521d6101fd
fix issue identified by go vet
2015-01-19 15:50:07 -05:00
Marty Schoch
7e3ba85b9d
added test and fixed behavior to ensure correct value is stored
...
optimization introduced last week inadvertently meant we were
not preserving the original byte values of text fields that
were stored
2015-01-19 15:40:18 -05:00
Marty Schoch
3ea1894dea
fix rendering of non-text fields
2015-01-19 15:39:43 -05:00
Marty Schoch
3e4969efbc
change defaul fuzziness to 2 as that is more common
2015-01-19 14:08:22 -05:00
Marty Schoch
3e72949563
Merge branch 'StreamBoat-fix_ptr_handling'
2015-01-16 17:49:37 -05:00
Marty Schoch
50090dd199
added test for mapping struct with pointer to string
2015-01-16 17:49:01 -05:00
Marty Schoch
141585b806
Merge branch 'fix_ptr_handling' of https://github.com/StreamBoat/bleve into StreamBoat-fix_ptr_handling
2015-01-16 17:48:25 -05:00
Marty Schoch
8776d6c2b9
change behavior to ignore fields with JSON struct tag "-"
...
closes #146
2015-01-16 17:44:23 -05:00
Marty Schoch
89b1e2b18e
add unit test for handling of JSON struct tag "-"
...
see #146
2015-01-16 17:44:23 -05:00
Steve Yen
782ad94e01
added debug tag for metrics KVStore
2015-01-16 11:18:40 -08:00
Marty Schoch
eebc8e7825
more debuging around forestdb snapshots
2015-01-16 14:18:28 -05:00
Marty Schoch
ba978ea27e
improving log messages
2015-01-16 14:07:47 -05:00
Marty Schoch
8afbd485f9
also print out the requested stored fields
2015-01-16 13:35:43 -05:00
Marty Schoch
09fe749913
default to autocompaction for forestdb
2015-01-16 13:35:43 -05:00
Steve Yen
12dc2aff93
add go1.4 build tag to cznicb KVStore
...
This is because github.com/cznic/b depends on sync.Pool.
2015-01-15 15:54:25 -08:00
Steve Yen
11ee0209ad
no leading zeros for metrics CSV output
2015-01-15 15:09:53 -08:00
Steve Yen
202191201c
added WriteCSV() to metrics KVStore
2015-01-15 14:11:15 -08:00
Steve Yen
9be4e217bc
metrics KVStore tracks perf metrics on a wrapped KVStore
2015-01-15 11:42:41 -08:00
Peter Fern
7480409cc4
Process pointer fields, rather than trying to walk them
...
Pointers may be references to any type, existing logic will only handle
types understood by `walkDocument`, instead pass the deref'd element to
`processProperty`, where it can get passed back to `walkDocument` if
necessary, or be processed as a regular field.
2015-01-15 16:15:50 +11:00
Marty Schoch
530613a239
rewrite map access to take advantage of optimization
2015-01-14 12:57:34 -05:00
Marty Schoch
890b1abfe6
new version of lower case filter which tries to avoid copying bytes
2015-01-14 11:34:30 -05:00
Marty Schoch
7cc544adf2
switched to bytes.ToLower for minor speedup
2015-01-14 09:28:57 -05:00
Marty Schoch
f000092201
added benchmark for lowercase filter
2015-01-14 09:28:57 -05:00
Steve Yen
ea0a8657f3
added cznicb in-memory kvstore (no reader isolation)
2015-01-13 17:35:28 -08:00
Marty Schoch
568a068105
added top-level config to optionally include forestdb support
2015-01-13 17:33:41 -05:00
Marty Schoch
362d240b09
added configurable options to leveldb
2015-01-13 16:24:51 -05:00
Steve Yen
d6e6f655c9
initialize forestdb config if provided
2015-01-13 12:03:24 -08:00
Steve Yen
db82eae3f4
go fmt
2015-01-13 11:04:45 -08:00
Steve Yen
1fa80ffc40
pass config to forestdb Open()
2015-01-13 11:04:02 -08:00
Steve Yen
3a00a968f2
close levigo's read & write options
2015-01-12 18:42:19 -08:00
Steve Yen
c20726bb93
close levigo.Options when db is closed
2015-01-12 18:42:19 -08:00
Marty Schoch
ed06dd0581
switching to unicode tokenizer now that its faster than regexp
2015-01-12 18:04:34 -05:00
Marty Schoch
0a4844f9d0
change unicode tokenizer to use direct segmenter api
2015-01-12 17:57:45 -05:00
Steve Yen
603c3af8bb
added gtreap in-memory, copy-on-write KVStore
2015-01-12 11:26:21 -08:00
Marty Schoch
d68c52e621
adding forestdb benchmark
2015-01-12 12:56:37 -05:00
Marty Schoch
07453af0e4
Merge pull request #141 from sacheendra/customanalyzer
...
adds handling of []string type attributes to custom analyzer
2015-01-07 14:19:15 -05:00
Sacheendra Talluri
4b3967a68e
rewrite custom analyzer without using reflect
2015-01-08 00:25:16 +05:30
Sacheendra Talluri
4abf2a638e
adds handling of []string type attributes to custom analyzer
2015-01-08 00:08:20 +05:30
Marty Schoch
0356479e85
Merge pull request #139 from sacheendra/examples
...
adds examples for mapping functions and special field * in docs
2015-01-07 10:59:49 -05:00
Sacheendra Talluri
7caf4fbcd1
adds mention of special field * in docs
2015-01-07 18:49:13 +05:30
Sacheendra Talluri
78c4c3435d
adds examples for defining mappings
2015-01-07 18:43:09 +05:30
Steve Yen
ae3600aeea
expose forestdb rollback methods
2015-01-06 18:59:02 -08:00
Steve Yen
5467e0a385
forestdb registered name fixed
2015-01-06 17:36:05 -08:00
Marty Schoch
1368d7b3b4
NewUsing persists the provided config to index meta
...
new method OpenUsing allows user to override values
in the persisted config
example would be opening the index, but using a different
buffer size for leveldb (not actually supported yet, but that
is the idea)
closes #138
2015-01-06 17:19:46 -05:00
Steve Yen
d442713de6
typo in storage type error message
2015-01-06 09:18:36 -08:00
Marty Schoch
ede3177c1e
Merge pull request #137 from sacheendra/examples
...
adds examples for most query functions
2015-01-05 18:48:18 -05:00
Sacheendra Talluri
bf9b30840e
adds error handling to examples
2015-01-05 13:07:13 +05:30
Sacheendra Talluri
e099d140e0
Merge branch 'master' into examples
2015-01-03 22:36:41 +05:30
Sacheendra Talluri
1653fdec22
adds examples for most query functions
2015-01-03 22:35:45 +05:30
Marty Schoch
4c269a9f44
when generating parser, run go fmt on the lexer
...
closes #136
2015-01-02 10:02:20 -08:00