Marty Schoch
bd22b664c4
print branch name to output
2015-11-23 09:08:40 -05:00
Marty Schoch
89af187fb0
set branch to master to fix goveralls badge
2015-11-23 08:54:47 -05:00
Marty Schoch
16eecd50b4
Merge branch 'MachineShop-IOT-datetimefm'
2015-11-23 08:42:10 -05: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
Marty Schoch
a1ce44fcd4
Merge pull request #284 from pmezard/add-indexmapping-fieldanalyzer
...
mapping_index: add IndexMapping.FieldAnalyzer()
2015-11-19 12:55:27 -05:00
Marty Schoch
46534d79ea
Merge pull request #285 from pmezard/phrase-queries-need-term-vectors
...
mapping_field: document IncludeTermVectors
2015-11-19 12:53:38 -05:00
Patrick Mezard
1591ed1839
mapping_field: document IncludeTermVectors
...
And mention it is required for phrase and match phrase queries to
succeed.
Fix #280
2015-11-19 15:38:16 +01:00
Patrick Mezard
ff41dfec3d
mapping_index: add IndexMapping.FieldAnalyzer()
...
It returns the name of the analyzer used on a field, which can be passed
to IndexMapping.AnalyzeText().
Fix #282
2015-11-19 11:20:32 +01:00
Ben Campbell
994f4b4d11
added some godoc documentation for the en analyzer
2015-11-18 15:28:57 +13:00
Marty Schoch
7dd52a5463
Merge pull request #279 from pmezard/expose-row-attributes
...
row: expose TermFrequencyRow term and freq fields
2015-11-17 12:24:16 -05:00
Patrick Mezard
e85c9c542e
row: expose TermFrequencyRow term and freq fields
...
Rows content is an implementation detail of bleve index and may change
in the future. That said, they also contains information valuable to
assess the quality of the index or understand its performances. So, as
long as we agree that type asserting rows should only be done if you
know what you are doing and are ready to deal with future changes, I see
no reason to hide the row fields from external packages.
Fix #268
2015-11-17 17:21:26 +01:00
Patrick Mezard
03b78deb5c
index: do not mention locking in DumpAll documentation
...
The behaviour depends on the nature of the KVStore.
2015-11-13 17:01:18 +01:00
Marty Schoch
236cc156c5
Merge pull request #277 from marksamman/patch-1
...
Update NumericRangeQuery comments
2015-11-12 22:40:36 +00:00
Mark Samman
b3a1e21c12
Update NumericRangeQuery comments
2015-11-12 22:16:10 +01:00
Marty Schoch
7b22332b06
Merge pull request #271 from pmezard/docid-query
...
query_docid: add DocIDQuery to filter by document identifiers
2015-11-12 15:52:36 +00:00
Marty Schoch
bfbc2a6244
Merge pull request #273 from pmezard/document-token-map
...
token_map: document it along with stop_token_filter
2015-11-12 15:40:40 +00:00
Marty Schoch
eee4482964
Merge pull request #272 from kevgs/boltdb_optimize
...
BoltDB wrapper nano optimization which makes code a bit prettier too
2015-11-12 15:39:37 +00:00
Patrick Mezard
ff03874f19
token_map: document it along with stop_token_filter
2015-11-05 14:07:54 +01:00
Kosov Eugene
45e670b99b
BoltDB wrapper nano optimization which makes code a bit prettier too
2015-11-05 00:27:28 +03:00
Patrick Mezard
19230b2f8a
searcher_docid: catch DocIDReader.Close() possible error
2015-11-04 19:24:01 +01:00
Patrick Mezard
ff7234d893
query_docid: add DocIDQuery to filter by document identifiers
2015-11-04 18:41:16 +01:00
Marty Schoch
74c309a7c2
Merge pull request #270 from pmezard/fix-elision-filter
...
Fix elision filter
2015-11-04 07:36:59 -05:00
Patrick Mezard
eb26402924
elision_filter: correctly strip multi-bytes quotation marks
2015-11-04 10:59:10 +01:00
Patrick Mezard
bae2079eb2
token_filters: fix typo in right single quotation mark name
2015-11-04 10:29:56 +01:00
Patrick Mezard
97529b1925
index: document DumpAll, DumpDoc and DumpFields methods
2015-11-03 18:11:02 +01:00
Marty Schoch
a873c76edc
Merge pull request #265 from avsej/simplify-phrase-api
...
Simplify JSON API for phrase query
2015-11-02 15:42:41 -05:00
Sergey Avseyev
8609e7af08
Simplify JSON API for phrase query
...
New API looks like this:
{"query":{"terms":["watered","down"],"field":"desc"}}
instead of
{"query":{"terms":[{"term":"watered","field":"desc"},{"term":"down","field":"desc"}]}}
So that it eliminats accidental errors by supplying terms with different
fields, or different type of query
2015-11-02 21:08:11 +03:00
Marty Schoch
4791625b9b
Merge pull request #262 from pmezard/index-and-tokenizer-doc-and-fix
...
Index and tokenizer doc and fix
2015-11-02 11:51:21 -05:00
Marty Schoch
30651065e9
fix panic on insufficiently sized buffer
...
adds test case to reproduce original problem
fixes #264
2015-10-30 18:25:38 -04:00
Patrick Mezard
0579d58263
mapping_test: fix TestMappingWithTokenizerDeps now patterns are required
2015-10-29 20:07:00 +01:00
Marty Schoch
2bd3ef4080
copy relevant k/v pairs before advancing underlying iterator
2015-10-28 12:23:54 -04:00
Marty Schoch
d1b07f4909
fix dump methods to properly copy keys and values
2015-10-28 12:06:44 -04:00
Marty Schoch
01526e971f
Merge branch 'master' into firestorm
2015-10-28 11:26:01 -04:00
Patrick Mezard
f95f1d29a0
exception: fail if pattern is empty, name tokenizer in error
2015-10-27 18:53:03 +01:00
Patrick Mezard
54a85fa96a
registry: improve error message upon forgotten "type" property
...
Registering a custom tokenizer while forgetting its "type" used to
return:
error: unable to determine type
It now says:
error: cannot resolve 'foo' tokenizer type: 'type' property is not defined
2015-10-27 18:53:03 +01:00
Patrick Mezard
8b17787a65
analysis: document "exception" tokenizer, and Tokenizer interface
2015-10-27 18:53:03 +01:00
Patrick Mezard
f2b3d5698e
index: document TermFieldReader interface
2015-10-27 18:53:03 +01:00
Patrick Mezard
3df789d258
index: document empty strings behaviour when calling DocIDReader()
2015-10-27 18:53:03 +01:00
Marty Schoch
1a978a4591
fix go vet issues and cleanup reader/iterator
2015-10-26 16:41:58 -04:00
Marty Schoch
f0d282f5f8
add test case for seeing prefix iterators outside of range
...
similar to #256 except for prefix iterators
includes fix for boltdb and gtreap which had incorrect behavior
2015-10-26 16:14:29 -04:00
Marty Schoch
0ba164322b
Merge pull request #261 from pmezard/improve-bleve-dump
...
bleve_dump: improve online help and error handling
2015-10-26 11:04:55 -04:00
Patrick Mezard
bc977048f7
bleve_dump: improve online help and error handling
...
I was expecting:
$ bleve_dump -index /index -docID 123 -fields html
to print only the terms for "html" field in specified document. The
command now detects extra arguments and flag collisions.
2015-10-26 10:37:13 +01:00
Marty Schoch
f649998490
Merge pull request #257 from pmezard/pretty-print-queries
...
query: add DumpQuery to expand string query and format them as JSON
2015-10-23 09:28:36 -04:00
Patrick Mezard
c9619f0359
query: add DumpQuery to expand string query and format them as JSON
...
This is convenient to see either complicated queries build
programmatically, or to make sure the query parser does what it is
expected to do.
Note only queries made of bleve basic queries are supported. If we
wanted to support external queries, for instance string queries with an
alternative parser, I suggest to introduce some kind of:
type ExpandableQuery interface {
Query
Expand(*IndexMapping) (Query, error)
}
and type assert to that instead of *queryStringQuery.
2015-10-23 14:52:42 +02:00
Ben Campbell
63fdce74f0
Merge branch 'master' into sedtweak
2015-10-21 09:41:12 +13:00
Marty Schoch
89bc8c3a93
Merge pull request #253 from pmezard/document-index-interfaces
...
doc: document DocIDReader, and some Index bits
2015-10-20 14:47:35 -04:00
Patrick Mezard
5100e00f20
doc: DocIDReader.Advance() is no longer implementation dependent
2015-10-20 20:32:23 +02:00
Patrick Mezard
2fa334fc27
doc: talk about "documents" not "indexed or stored documents"
2015-10-20 20:24:24 +02:00
Patrick Mezard
b174c137fd
doc: document DocIDReader, and some Index bits
2015-10-20 20:24:24 +02:00