Marty Schoch
3bc165d77b
renamed/moved examples/bleve_index_json to utils/bleve_index
2014-09-01 16:14:29 -04:00
Marty Schoch
7c0ea53ea2
added utility bleve_create
2014-09-01 14:54:47 -04:00
Marty Schoch
5d435bd022
moved bleve_query from examples to utils
2014-09-01 14:45:02 -04:00
Marty Schoch
ac6176f14c
removed old example from gitignore
2014-09-01 14:37:22 -04:00
Marty Schoch
68a332bc5a
fix broken test crashing
2014-09-01 14:36:46 -04:00
Marty Schoch
97f6b3980b
moved beer-sample and associated data to its own repo
2014-09-01 14:27:52 -04:00
Marty Schoch
831b82832e
added ability to pring mapping
2014-09-01 14:17:05 -04:00
Marty Schoch
f28d00de87
fix so index mapping properly registers analysis on deserialization
2014-09-01 14:16:31 -04:00
Marty Schoch
1dcd06e412
add ability to define custom analysis as part of index mapping
...
now, as part of your index mapping you can create custom
analysis components. these custome analysis components
are serialized as part of the mapping, and reused
as you would expect on subsequent accesses.
2014-09-01 13:55:23 -04:00
Marty Schoch
2ee7289bc8
major refactor of search package
...
this started initially to relocate highlighting into
a self contained package, which would then also use
the registry
however, it turned into a much larger refactor in
order to avoid cyclic imports
now facets, searchers, scorers and collectors
are also broken out into subpackages of search
2014-09-01 11:15:38 -04:00
Marty Schoch
209f808722
improve go docs at the top level
...
part of #79
2014-08-31 10:55:22 -04:00
Marty Schoch
862205f184
fix deadlock
...
Search() would attempt to reacquire mutex when invoking Document()
should instead call index.Document(), read mutex is already
acquired
closes #87
2014-08-30 14:49:16 -04:00
Marty Schoch
ac0c2b05fe
reproduce bug #87
2014-08-30 14:49:02 -04:00
Marty Schoch
76660c0d13
removed a few more public methods
2014-08-30 00:13:46 -04:00
Marty Schoch
8c6427959c
made more of index mapping private
2014-08-30 00:06:16 -04:00
Marty Schoch
2ea1f526e7
made more mapping methods private
2014-08-29 23:50:47 -04:00
Marty Schoch
85b21f8864
change to make generated lexer private
2014-08-29 23:31:40 -04:00
Marty Schoch
5f4ea4d749
make date and numeric range stucts private
2014-08-29 23:30:44 -04:00
Marty Schoch
bc8e4a81b8
made parse query string private
2014-08-29 19:31:09 -04:00
Marty Schoch
7bfad18d40
moved byte array converts into the analysis package
2014-08-29 19:23:21 -04:00
Marty Schoch
9487a46188
fix broken test
2014-08-29 18:19:42 -04:00
Marty Schoch
f2c781fa21
refactor to make all the query classes private
2014-08-29 18:14:12 -04:00
Marty Schoch
607b038283
refactored boolean query to only depend on query
2014-08-29 16:27:32 -04:00
Marty Schoch
77c998a7a2
made config private and fixed broken test
2014-08-29 15:32:36 -04:00
Marty Schoch
7313e7247e
renamed SyntaxQuery QueryStringQuery
...
also made IndexMeta private
2014-08-29 15:19:02 -04:00
Marty Schoch
635ae2b401
made more constants private
2014-08-29 14:43:06 -04:00
Marty Schoch
5c4d5e230f
made parsing token constants private
2014-08-29 14:37:38 -04:00
Marty Schoch
d0f4146789
added package level godoc
2014-08-29 14:28:38 -04:00
Marty Schoch
37d3f0205d
cleanup spacing between license and package
2014-08-29 14:18:36 -04:00
Steve Yen
a60ff96457
mention of license in README
...
For the folks like me who are too lazy to make just
one more click on LICENSE.
2014-08-29 07:34:15 -07:00
Marty Schoch
35ed406a8f
changed coveralls badge to blevesearch
2014-08-28 16:53:23 -04:00
Marty Schoch
b56b26cb02
changed drone badge to point to new org
2014-08-28 15:58:37 -04:00
Marty Schoch
1161361bea
rename imports from couchbaselabs to blevesearch
2014-08-28 15:38:57 -04:00
Marty Schoch
e6ee7a11c4
fix broken tests
2014-08-28 14:57:27 -04:00
Marty Schoch
949accc3e4
change default fragment size to 200, also behavior if no matches
...
now if there are no matches, but you requested highlight for the
field we return a single fragment containing the first <fragsize>
bytes. this works well for cases where you want to display a
field highlighted, but still show it even if there were no
matches in that same field
2014-08-28 14:46:30 -04:00
Marty Schoch
c9423aa24b
change default highlighter to return 1 fragment
2014-08-28 14:45:51 -04:00
Marty Schoch
6086f191f6
support range queries in syntax query
...
using syntax like:
+abv:>50 or +abv<=7
closes #52
2014-08-25 23:24:26 -04:00
Marty Schoch
08633379ae
make same changes to disjunction, and make nil safe
2014-08-25 23:22:35 -04:00
Marty Schoch
367e4f53a7
made conjuction queries compatible with interface
2014-08-25 22:40:06 -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
2898123ec1
fix bug advancing numeric searcher
2014-08-25 22:38:11 -04:00
Marty Schoch
680de03e65
query syntax now accepts floats for boost
2014-08-25 20:09:53 -04:00
Marty Schoch
78db88897c
added control over inclusive/exclusive numeric/date ranges
2014-08-25 17:47:27 -04:00
Marty Schoch
ef59abe4c9
added build tag 'leveldb' to enable this kv store
...
by default we now use the pure go boltdb kv store
it is less tested at this point but appears to work
test pass, and moves us closer to the goal of being
able to just "go get" bleve
2014-08-25 15:18:24 -04:00
Marty Schoch
45a7a6dd8e
fix two missing Close calls holding iterators open
2014-08-25 15:13:15 -04:00
Marty Schoch
8bcf6adb60
changed close of read only tx to Rollback from Commit
...
i was seeing deadlocks before this change
using Rollback to close read only tx is what the
built-in View() impl does, so i think its safe
2014-08-25 15:11:21 -04:00
Marty Schoch
d67ee483ba
change default bucket name to bleve
2014-08-25 15:11:04 -04:00
Marty Schoch
bea0a06827
easier to tweak mapping
2014-08-25 15:09:05 -04:00
Marty Schoch
1e04edf478
better error handling
2014-08-25 15:08:23 -04:00
Marty Schoch
e7a8a1fbe6
fixing test
2014-08-25 12:34:16 -04:00