You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2015/10/01 04:13:10 UTC

[9/9] lucy git commit: Merge branch 'LUCY-284-go-host-doc'

Merge branch 'LUCY-284-go-host-doc'

It is convenient to be able to use host data types as documents, as they
fit more easily into host idioms than Doc objects. The primary routines
which need to support such types are Indexer's AddDoc() and Hit's
Next(), but it also makes sense to use a Go type internally within Doc.

The three types supported as documents are:

*   Doc objects (within their Go struct wrappers)
*   Go structs (field names mapped case-insensitively)
*   Go `map[string]interface{}`

This closes #21.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/4f37426b
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/4f37426b
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/4f37426b

Branch: refs/heads/master
Commit: 4f37426bf61ad3b3f1644f678dcbd91e38ee4da9
Parents: 91d34ea 1b97823
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Wed Sep 30 19:06:36 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Wed Sep 30 19:06:36 2015 -0700

----------------------------------------------------------------------
 go/build.go            |   1 +
 go/lucy/document.go    |  50 ++++++++
 go/lucy/index.go       |  96 +++++++++++-----
 go/lucy/index_test.go  |  39 +++++++
 go/lucy/lucy.go        | 273 +++++++++++++++++++++++++++++++-------------
 go/lucy/search.go      |  98 ++++++++--------
 go/lucy/search_test.go |  54 +++++++++
 7 files changed, 452 insertions(+), 159 deletions(-)
----------------------------------------------------------------------