NeowayLabs / neosearch

Full Text Search Library
30 stars 4 forks source link

Support date types #31

Closed i4ki closed 9 years ago

i4ki commented 9 years ago

For now that we have metadata associated directly with documents we can implement this feature.

The usage can be like below:

    idx := index.New(...)

    metadata := index.Metadata{
        "updateAt": index.Metadata{
            "type": "date",
            "format": "YYYY-mm-dd",
        },
    }

    idx.Add(1, []byte(`{"name": "John Doe", "updateAt": "2015-06-29"}`), metadata)

See: #25