Marty Schoch
2479ddef2e
fixed errcheck issues
2016-01-13 17:10:13 -05:00
slavikm
680be52f87
Implemented boolean field support
2016-01-11 17:18:03 -08:00
Marty Schoch
8efbd556a3
fix indexing bug with data coming from arrays
...
fixes #295
2015-12-21 14:59:32 -05:00
Steve Yen
2d4cd7a696
go fmt index_text.go
2015-11-23 09:28:09 -08:00
Marty Schoch
97735ac2b6
set github issue number in testcase name
2015-11-23 08:41:34 -05:00
Mark Mindenhall
17d8391b2f
Fixes datetime mapping from JSON, using DateTimeFieldMapping
2015-11-20 19:15:35 -07:00
Patrick Mezard
498e4a0de7
simplify FieldMapping.analyzerForField()
...
I stumbled onto that while trying to understand how analyzers are
resolved. The new code looks simpler to me and removes useless calls to
DocumentMapping.defaultAnalyzerName() when an analyzer is set at
FieldMapping level.
The slight change to TestStoredFieldPreserved avoids a stacktrace when
the test fails.
2015-10-02 15:45:43 +02:00
Patrick Mezard
7db27aeba1
implement document static mappings
...
DocumentMapping.Dynamic was ignored by everything but the marshalling
code.
Issue #235
2015-09-29 11:32:36 +02:00
Marty Schoch
cddf90c0ee
don't allow operations on empty doc id
...
fixes #239
2015-09-28 17:00:08 -04:00
Marty Schoch
f81b2be334
major refactor of bleve configuration
...
see #221 for full details
2015-09-16 17:10:59 -04:00
Marty Schoch
3682c25467
update to correctly work with composite fields
...
also updated search results to return array positions
2015-07-31 11:16:11 -04:00
Marty Schoch
2af47cea75
fix query string query syntax when term starts with a number
...
fixes #207
2015-05-21 15:43:13 -04:00
Marty Schoch
5b8c9f2d73
added unit test for bug #207
2015-05-21 07:49:41 -04:00
Marty Schoch
8f70def63b
properly use the stored array positions when loading a document
...
fixes #205
2015-05-15 15:47:54 -04:00
Marty Schoch
328bc73ed0
clarify Batch is not threadsafe in docs
...
in some limited cases we can detect unsafe usage
in these cases, do not trip over ourselves and panic
instead return a strongly typed error upside_down.UnsafeBatchUseDetected
also, introduced Batch.Reset() to allow batch reuse
this is currently still experimental
closes #195
2015-05-15 15:04:52 -04:00
Marty Schoch
7b871fde6a
add test comparing search that matches everyting with doc count
2015-05-09 14:51:07 -04:00
Marty Schoch
6f28f3e5bd
check error returned in test to make errcheck happy
2015-05-08 08:40:46 -04:00
Marty Schoch
57cd67fa88
fix data race on index metadata (docCount)
...
closes #198
2015-05-08 08:07:20 -04:00
Marty Schoch
056d74901e
fix test to actually work reliably
2015-04-08 11:17:34 -04:00
Marty Schoch
8581e73cef
added String method for Batch
...
also changed Batch methods to pointer receiver
closes #180
2015-04-08 10:41:42 -04:00
Marty Schoch
539aeb8dc7
fix errors identified by errcheck
...
part of #169
2015-04-07 18:05:41 -04:00
Marty Schoch
56c4a09de1
fix issues identified by errcheck
...
part of #169
2015-04-07 15:39:56 -04:00
Marty Schoch
93e01a803e
fix issues identified by errcheck
...
part of #169
2015-04-07 14:52:00 -04:00
Marty Schoch
52712b9537
add missing index close causing tests to sometimes fail
2015-04-03 16:41:11 -04:00
Sathyanarayanan Gunasekaran
5c7aa21643
Add test for index.Stats
2015-03-19 14:06:59 -04:00
Sathyanarayanan Gunasekaran
d9a7a2e3a0
Add test for index.FieldDictPrefix
2015-03-19 14:06:59 -04:00
Sathyanarayanan Gunasekaran
5b4ee3e598
Add test for index.FieldDictRange
2015-03-19 14:06:59 -04:00
Marty Schoch
522f9d5cc7
significant change to index format, support dictionary rows
...
this introduces disk format v4
now the summary rows for a term are stored in their own
"dictionary row" format, previously the same information
was stored in special term frequency rows
this now allows us to easily iterate all the terms for a field
in sorted order (useful for many other fuzzy data structures)
at the top-level of bleve you can now browse terms within a field
using the following api on the Index interface:
FieldDict(field string) (index.FieldDict, error)
FieldDictRange(field string, startTerm []byte, endTerm []byte) (index.FieldDict, error)
FieldDictPrefix(field string, termPrefix []byte) (index.FieldDict, error)
fixes #127
2015-03-10 16:22:19 -04:00
Marty Schoch
af356acff0
changed batch behavior
...
now created through the index itself
mapping problems reported early at the time
data is added to the batch, previously these
were not reported until the batch was executed
2015-03-09 08:20:39 -04:00
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
Steve Yen
d442713de6
typo in storage type error message
2015-01-06 09:18:36 -08:00
Marty Schoch
5978f50b8c
added ability to log slow searches
...
closes #88
2014-12-28 19:34:16 -08:00
Silvan Jegen
ef18dfe4cd
Fix typos in comments and strings
2014-12-18 18:43:12 +01:00
Marty Schoch
f845dfbeb7
fix missing close in index test
2014-12-01 12:51:01 -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
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
5486c519b6
added index tests
2014-11-21 16:47:20 -05: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
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
8be0652dc8
better String() impl when request.Size=0
...
closes #107
2014-10-10 18:08:20 -07:00
Marty Schoch
53b25195d6
further refactoring of index mappings
2014-09-03 16:40:10 -04:00
Marty Schoch
bbc6fadf69
changed error constants to camel case
...
all caps constants are not idiomatic go
2014-09-02 14:14:05 -04:00
Marty Schoch
77c998a7a2
made config private and fixed broken test
2014-08-29 15:32:36 -04:00
Marty Schoch
0e26a6233e
new test for numeric queries
...
first runs a query with both ends of a numeric range
then runs same query as 2 separate unbounded queries
joined together with an and
2014-08-25 22:38:43 -04:00
Marty Schoch
e8959d03ae
added build tag 'icu' to enable functionality dependent on it
2014-08-25 12:22:01 -04:00
Marty Schoch
21ef6e9878
added build tag for things depending on libstemmer
2014-08-25 12:06:10 -04:00
Marty Schoch
27f001bc14
overhauled top-level New/Open API
...
New is now used to create new indexes
Open is used to open existing indexes
calls to Open no longer specify a mapping because the mapping
is serialized and stored along with the index
2014-08-20 16:58:20 -04:00
Marty Schoch
41914181ae
fix handling of indexing dates which we cannot represent
...
closes #72
2014-08-19 09:55:26 -04:00