Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES backended filer support kv ops. #1449

Merged
merged 3 commits into from Sep 4, 2020
Merged

Conversation

taozix
Copy link

@taozix taozix commented Sep 4, 2020

No description provided.

@chrislusf
Copy link
Collaborator

Is there any way to tell Elastic not to index the content?

https://www.elastic.co/guide/en/elasticsearch/reference/current/enabled.html#enabled

@chrislusf
Copy link
Collaborator

separate into an elastic_store_kv.go file

Index(indexKV).
Type(indexType).
Id(id).
Do(context.Background())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is already a ctx parameter. No need to use context.Background(). Same for other places.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be without indexing if totally no need to query.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only need to fetch the value by the key.

deleteResult, err := store.client.Delete().
Index(indexKV).
Type(indexType).
Id(id).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use key here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will cause problem if key contains '/'.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to worry about that.

ruitao.liu added 2 commits September 4, 2020 17:34
@chrislusf chrislusf merged commit ca5d8e0 into seaweedfs:master Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants