Marty Schoch
55c43ae6c2
make DocCount() on IndexAlias consistent with partial results
...
it will now return the partial count of nodes that did
respond without error
2016-02-23 12:54:55 -05:00
Marty Schoch
5408083ab5
from JSON parsing regexp/wildcard queries defaulted to boost of 0
...
having boost of 0 led to invalid scores of NaN
added integration test for wildcard query
added ability to run single integration test at a time
added assertion that scoare is not NaN/+Inf/-Inf
2016-02-23 09:22:39 -05:00
Marty Schoch
214b67ad66
SearchResult now includes a Status section
...
the Status section can report on the number of total/fail/success
indexes when querying across multiple indexes through IndexAlias
Further, searching an IndexAlias will now return partial results,
the burden is on the caller to check the number of failed
indexes and decide how to handle this situation.
2016-02-22 16:50:40 -05:00
Steve Yen
a29dd25a48
upside_down dict row value size accounts for large uvarint's
...
This is somewhat unlikely, but if a term is (incredibly) popular, its
uvarint count value representation might go beyond 8 bytes.
Some KVStore implementations (like forestdb) provide a BatchEx cgo
optimization that depends on proper preallocated counting, so this
change provides a proper worst-case estimate based on the max-unvarint
of 10 bytes instead of the previously incorrect 8 bytes.
2016-02-22 11:52:51 -08:00
Steve Yen
dd1718fa78
index/store/moss uses AllocMerge() instead of Merge()
...
Performance optimization. Before this change, by using Merge()
instead of AllocMerge(), moss's internal batch buf's would be
wastefully, dramatically grown during append()'s to a mis-sized buf.
2016-02-22 11:48:02 -08:00
ikawaha
fcebff60e9
Add a test case
2016-02-21 19:59:52 +09:00
ikawaha
4fe7688431
Use a small version of kagome
2016-02-21 19:58:36 +09:00
Steve Yen
ea1a52464d
more index/store/moss err handling
2016-02-20 14:25:42 -08:00
Steve Yen
eb315fa500
integrate index/store/moss KV store
2016-02-20 14:25:42 -08:00
Marty Schoch
74a52f94bb
prefix,regexp, and fuzzy searchers failed to close fieldDict
2016-02-20 15:41:12 -05:00
Marty Schoch
1af0568036
Merge pull request #340 from MachineShop-IOT/master
...
Fix masking of error when creating index (minor error reporting fix)
2016-02-18 12:09:23 -05:00
Mark Mindenhall
bae3db1c55
Fix masking of error when creating index
2016-02-17 10:31:27 -07:00
Marty Schoch
1006bf54b4
try to close indexes at end of http handler test
2016-02-09 16:26:03 -05:00
Marty Schoch
208b700e17
add missing build tag guarding cznicb benchmark
2016-02-09 15:57:35 -05:00
Marty Schoch
e523bf757e
test slow timer with different way to avoid windows 15ms timer
2016-02-09 15:48:08 -05:00
Marty Schoch
9a1e6e1905
fix some test failures on windows
2016-02-09 13:33:11 -05:00
Marty Schoch
ebb7d2d076
added ability to limit the max number of disjunction clauses
...
set DisjunctionMaxClauseCount to a non-zero value to enforce
the limit
2016-02-08 17:21:03 -05:00
Marty Schoch
71ba2ea40c
Merge pull request #148 from StreamBoat/handle_numerics
...
Handle numeric fields other than float64 in processProperty
2016-02-05 13:44:27 -05:00
Marty Schoch
40c1a8e835
Merge branch 'slavikm-master2'
2016-02-05 13:10:28 -05:00
Marty Schoch
c07fa47551
added test case to verify boost is working
2016-02-05 13:10:01 -05:00
Marty Schoch
c5fe9da05c
Merge branch 'master' of https://github.com/slavikm/bleve into slavikm-master2
2016-02-05 12:47:40 -05:00
Marty Schoch
40c95513b7
add support for including kvstore stats
2016-02-05 12:26:19 -05:00
slavikm
c1ce8910d7
pass the boost value into the term searcher
2016-02-03 14:49:11 -08:00
Marty Schoch
f38e3e1b24
remove temporary error and replace with permanent check
2016-02-03 10:23:49 -05:00
Marty Schoch
c5dea9e882
fix accessing store via Advanced() method which was broken
2016-02-02 11:54:18 -05:00
Marty Schoch
a236737a68
temporary workaround to avoid crashing when an index is not
...
behaving consistent with the API contracts
2016-02-01 12:31:26 -05:00
Marty Schoch
47ac091581
fix go vet issues
2016-01-29 13:27:22 -05:00
Marty Schoch
d95c9c1063
optionally set MappingJSONStrict to true for strict parsing
...
in strict parsing mode, unrecognized keys in the mapping will
cause errors. this is partial at the moment and does not
include the custom analysis components.
2016-01-29 13:18:54 -05:00
Ben Campbell
47dbd85551
Merge branch 'master' into documenting
2016-01-29 09:31:30 +13:00
Marty Schoch
710d06e974
add support for native C merge operators
2016-01-27 17:51:07 -05:00
Marty Schoch
10e2207179
adding logging for unexplained observed behavior MB-17298
...
it would appear that a document lookup for an id fails
but that is a document id that was returned as a search hit
since we're using a stable snapshot, this should not happen
2016-01-25 10:45:58 -05:00
Steve Yen
d97e3caf4f
fix comment typo
2016-01-22 09:04:24 -08:00
Marty Schoch
96577606c3
honor the enabled=false flag at the top-level of doc mapping
...
fixes #331
2016-01-21 19:16:16 -05:00
Marty Schoch
f0d6abff6f
more correct fix, handles case where validate is called
2016-01-21 17:26:24 -05:00
Steve Yen
311a503d47
Merge pull request #330 from steveyen/WIP-perf-20160121
...
metrics implements BatchEx correctly
2016-01-21 13:29:49 -08:00
Steve Yen
d5de1d3da1
metrics implements BatchEx correctly
2016-01-21 11:00:41 -08:00
Marty Schoch
0bddafb9e1
properly anchor regexp patterns to end of term
...
added integration tests for regexp anchoring
fixes #329
2016-01-21 13:44:38 -05:00
Marty Schoch
fc34a97875
copy locations on merge for more safe/predictable behavior
...
fixes #328
2016-01-19 14:21:48 -05:00
Steve Yen
035d9d0e40
unneeded cast and parens
2016-01-17 00:16:05 -08:00
Marty Schoch
1335eb2a7b
Merge pull request #322 from steveyen/WIP-perf-20160113
...
KVReader.MultiGet and KVWriter.NewBatchEx API's
2016-01-15 14:28:59 -05:00
Marty Schoch
fa7e3f811b
Merge pull request #325 from opennota/master
...
Fix some typos
2016-01-15 09:40:12 -05:00
opennota
8517feb1c6
Fix some typos
2016-01-15 05:46:27 +07:00
Marty Schoch
f5344b191a
Merge pull request #324 from Shugyousha/trivial
...
Trivial cleanup
2016-01-14 10:51:06 -05:00
Silvan Jegen
329d8e00cd
Fix error string
2016-01-14 16:42:01 +01:00
Silvan Jegen
d326898f7b
Remove unneeded brackets
2016-01-14 16:41:41 +01:00
Steve Yen
6849e538be
upside_down and firestorm use new NewBatchEx() API
...
With this change, the upside_down batchRows() and firestorm
batchRows() now use the new KVWriter.NewBatchEx() API, which can
improve performance by reducing the number of cgo hops.
2016-01-13 23:08:20 -08:00
Steve Yen
d94ccf2d74
added KVWriter.NewBatchEx() method
2016-01-13 16:19:04 -08:00
Steve Yen
fb048f6c64
added KVReader.MultiGet() method
2016-01-13 15:12:10 -08:00
Steve Yen
8dc067b1d9
go fmt
2016-01-13 15:11:50 -08:00
Steve Yen
fe39b3fd13
avoid fieldTermFreqs loop if no composite fields
2016-01-13 14:45:04 -08:00