NeowayLabs / neosearch

Full Text Search Library
30 stars 4 forks source link

Support for nested documents #25

Closed i4ki closed 9 years ago

i4ki commented 9 years ago

Today NeoSearch supports the following types of field values:

See the link below: https://github.com/NeowayLabs/neosearch/blob/master/lib/neosearch/index/index.go#L347

We need improve this for a more robust document hierarchy. For example, we need support for index the document below:

{
    "cnpj": "01458782000170",
    "companyName": "Example company",
    "creationDate": "1996-09-27T07:00:00Z",
    "status": {
        "date": "2005-11-03T08:00:00Z",
        "description": "ACTIVE",
        "especial": {}
    },
    "address": {
        "district": "some place",
        "city": "some city",
        "state": "AA",
        "zipcode": "52211",
        "street": "some street",
        "number": 23132
    },
    "info": {
        "hasEmail": false,
        "hasTel": false,
        "hasDomain": false
    },
    "employee": [
        {
            "name": "John doe",
            "age": 25
        },
        {
            "name": "Mary Doe",
            "age": 22
        }
    ]
}

The document above requires the following of features:

I will create an issue to each one of this features, and I will remain this issue open until we get this document indexed.