0
0
Commit Graph

74 Commits

Author SHA1 Message Date
Marty Schoch
2968d3538a major refactor, apologies for the large commit
removed analyzers (these are now built as needed through config)
removed html chacter filter (now built as needed through config)
added missing license header
changed constructor signature of filters that cannot return errors
filter constructors that can have errors, now have Must variant which panics
change cdl2 tokenizer into filter (should only see lower-case input)
new top level index api, closes #5
refactored index tests to not rely directly on analyzers
moved query objects to top-level
new top level search api, closes #12
top score collector allows skipping results
index mapping supports _all by default, closes #3 and closes #6
index mapping supports disabled sections, closes #7
new http sub package with reusable http.Handler's, closes #22
2014-07-30 12:30:38 -04:00
Marty Schoch
8150146dc7 added tests 2014-07-22 08:54:33 -04:00
Marty Schoch
d7341524aa trying to fix compilation on drone 2014-07-21 18:00:59 -04:00
Marty Schoch
737dcb6118 fixing c++ issues on drone.io 2014-07-21 17:49:53 -04:00
Marty Schoch
b629636424 new tokenizer which uses cld2 to guess the field's language 2014-07-21 17:21:31 -04:00
Marty Schoch
aade85a6e8 fix broken test 2014-07-21 17:08:18 -04:00
Marty Schoch
70a8b03bed added support for composite fields 2014-07-21 17:05:55 -04:00
Marty Schoch
1f17195e7d fix bug when using Advance() on boolean search
showed up when nesting booleans within booleans
2014-07-21 16:48:51 -04:00
Marty Schoch
24b4348f7a fix bug in phrase search on composite fields
now correctly finds phrases in any of the contributing fields
2014-07-21 16:48:01 -04:00
Marty Schoch
d3466f3919 refactored field from struct to interface 2014-07-14 14:47:05 -04:00
Marty Schoch
f225d484b3 overhauled search
many bugs fixed in existing search
phrase query updated to support gaps in term sequence
new query types
all,none,match,phrase match
and new query syntax search, like google search:
+/-(optional field qualifier:)<term or quoted phrase>
2014-07-11 14:49:59 -04:00
Marty Schoch
5a33825091 removed score caching, was breaking results 2014-07-11 14:45:32 -04:00
Marty Schoch
a7107e27f4 added support for document mapping 2014-07-11 14:26:56 -04:00
Marty Schoch
e8c078c7cc enhanced jsonpointer shredder to be functional 2014-07-11 14:26:25 -04:00
Marty Schoch
1fac31ac9c fix bug in simple highlighter
when requesting highligh of a field with matches would crash
2014-07-11 14:25:32 -04:00
Marty Schoch
2c86a731b4 added DocIdReader to Index interface
added more debug capabilities
removed hard-coded limitation on number of fields in doc
2014-07-11 14:24:28 -04:00
Marty Schoch
bdfa85761a fix test to correspond with overlapping highlights fix 2014-07-03 15:00:18 -04:00
Marty Schoch
f3cdea9b5a fix unused import 2014-07-03 14:55:38 -04:00
Marty Schoch
cc77b074fe added phrase search 2014-07-03 14:54:50 -04:00
Marty Schoch
ef690e0ead add html fragment formatter 2014-07-03 14:54:12 -04:00
Marty Schoch
238f3af4bd change higlight api to store in document match 2014-07-03 14:53:44 -04:00
Marty Schoch
8ae8718517 fix bug in identifying overlapping fragments 2014-07-03 14:52:42 -04:00
Marty Schoch
fda861d4e7 add formatted printing of stored rows
fix critcal bug in prefix matching on stored row keys
2014-07-03 14:51:06 -04:00
Marty Schoch
9bebbec267 added support for stored fields and highlighting results 2014-06-26 11:43:13 -04:00
Marty Schoch
4af76f539d fewer allocations building byte array encodings 2014-05-19 11:02:15 -04:00
Marty Schoch
ed308eb253 tweaking perf of gouchstore 2014-05-16 15:00:51 -04:00
Marty Schoch
1b8c353787 adding some benchmarking 2014-05-16 10:09:05 -04:00
Marty Schoch
eac4dee56d fix bug in Get impl of ForestDB store 2014-05-16 10:08:23 -04:00
Marty Schoch
1c4726c16d added build tag to include forestdb (not yet public) 2014-05-15 10:32:07 -04:00
Marty Schoch
456b002d64 adding store implementation for forestdb 2014-05-15 10:25:45 -04:00
Marty Schoch
cd5ea0991f refactored store tests to share common code 2014-05-15 10:18:43 -04:00
Marty Schoch
d48eee948e refactored index to separate out kv storage
now how pluggable options for
leveldb
gouchstore
in memory only
2014-05-09 16:37:04 -04:00
Marty Schoch
ba442d2669 added a must not clause to improve coverage 2014-04-25 13:13:36 -06:00
Marty Schoch
1a05662f47 changed values to increase test coverage 2014-04-25 13:09:14 -06:00
Marty Schoch
293fdb4c19 improved coverage 2014-04-25 13:04:09 -06:00
Marty Schoch
940f7c4e5d fix nil checking and add test for nested boolean query 2014-04-25 12:47:15 -06:00
Marty Schoch
e5bb94774b add test for boolean not satisfying enough shoulds 2014-04-25 11:59:06 -06:00
Marty Schoch
26e55db5e9 better testing of boolean search 2014-04-25 11:24:10 -06:00
Marty Schoch
c80f7f4042 added boolean search 2014-04-25 10:45:23 -06:00
Marty Schoch
4ed5cda99c added a nested disjunction test 2014-04-25 10:33:42 -06:00
Marty Schoch
ce87f46403 improving coverage in top score collector 2014-04-25 10:28:02 -06:00
Marty Schoch
267811a6d2 cover another case in the merge 2014-04-25 09:44:07 -06:00
Marty Schoch
4affede801 added test for merge locations 2014-04-25 09:40:55 -06:00
Marty Schoch
8e71daa4e3 added support for disjunction search 2014-04-25 09:31:28 -06:00
Marty Schoch
5de10307d8 added test for more complex nested conjunction 2014-04-25 09:01:27 -06:00
Marty Schoch
b6ba2efdef added test for nested conjunction searches 2014-04-24 16:22:12 -06:00
Marty Schoch
b78b1988a7 added tests to cover untested code
fixed bug in conjunction next impl
2014-04-24 16:09:50 -06:00
Marty Schoch
0be5cffd21 subsequent calls to advance on the same key
should keep returning the same thing
only increment on initial call
2014-04-24 16:08:28 -06:00
Marty Schoch
55644a695d add test for one member of conjunction no matches 2014-04-24 10:35:50 -06:00
Marty Schoch
aa53d0b340 added conjunction term search/query/score 2014-04-24 10:24:19 -06:00