typesense / typesense-go

Go client for Typesense: https://github.com/typesense/typesense
Apache License 2.0
222 stars 56 forks source link

Add no index option to field type #66

Closed jesko-plitt closed 3 years ago

jesko-plitt commented 3 years ago

Change Summary

This PR replaces #61.

I added the missing index field to the Field struct. The typesense documentation (https://typesense.org/docs/0.20.0/api/collections.html#with-pre-defined-schema) describes a index option that can be set on fields:

Declaring a field as non-indexable You can ensure that a field is not indexed by setting "index": false. This is useful when used along with auto schema

I did not get the whole openapi-codegen thing working. It always created a lot of changes (even when I did not do any changes to the openapi.yml file). Maybe you can help me out on that 😃

PR Checklist

v-byte-cpu commented 3 years ago

I'm sorry, in the settings of cloud.drone.io the "Disable forks" option was checked, I disabled it and pipeline https://cloud.drone.io/typesense/typesense-go/121 started.

jesko-plitt commented 3 years ago

@v-byte-cpu Thanks a lot. I will have a look at it and fix the errors that are shown.